Author Topic: How to make server private  (Read 9444 times)

0 Members and 2 Guests are viewing this topic.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
How to make server private
« on: March 26, 2010, 06:44:02 pm »
Each time I open the VC:MP server and play on it, several other players join my server...  How do they know my server?  So it means my server get announced to master server? How do I disable this (in config.cfg? wat to put )...

I dont want to put password on my server but just want to make sure it does not announce to master server list.

But I have one more doubt.. My router has NAT features and I DID NOT port forward the ports.. then how was the outside players able to join in my server when I did not port forward at all???  ???

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: How to make server private
« Reply #1 on: March 26, 2010, 07:08:56 pm »
Try putting announce 0 line in your server.cfg. If that doesn't work - simply remove announce.exe file from your server dir. It will prevent your server from being listed in "Internet" tab.

It is also impossible for internet players to connect to a machine with no external IP and without port forwarding. If you do not forward ports, that means that the machine running server has an external IP, making it avaliable to internet.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
Re: How to make server private
« Reply #2 on: March 26, 2010, 07:17:17 pm »
Yes , my machine does have external IP and is dynamic... but Im still puzzled why they are able to connect when I dont forward ports...  Normally, services that require others to connect to my machine is blocked by my router unless that specific port is forwarded... i think.

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: How to make server private
« Reply #3 on: March 26, 2010, 07:28:46 pm »
How exactly is your local network organized?

Internet - Router - Server_Machine
                 |
           Random_PCs?

If it is organized like the one above, that means that your router has an external IP, not the machine you run VC:MP server on. That would mean you have the port forwarded.

If it's not and your VC:MP machine is directly (well, through ISP) connected to internet, then your ports don't have to be forwarded.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
Re: How to make server private
« Reply #4 on: March 26, 2010, 07:39:46 pm »
I am not sure.. My machine which runs VC:MP server is connected to an ADSL modem/router which is then connected to the Internet..

If VC:MP PC is "directly" connected to internet , it needs a modem/router to connect to internet, right? Whats the difference? Both are same?!

Sorry for my confusion.. but I feel I really need to get this straight..

Offline ramandu

  • Street Thug
  • *
  • Posts: 16
    • View Profile
Re: How to make server private
« Reply #5 on: March 26, 2010, 08:07:13 pm »
the more secure, the better, turn your old pc's into complete hardware gateways between you and the internet.

Internet - Router - Gateway - Managed Switch - Server_Machine
                                                |
                                            Switch  Switch Switch             
                                                |       |        |
                                              PCs    PCs    PCs

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: How to make server private
« Reply #6 on: March 26, 2010, 08:18:13 pm »
If VC:MP PC is "directly" connected to internet , it needs a modem/router to connect to internet, right? Whats the difference? Both are same?!
Modem and router are two different things. Modem (modulator-demodulator) is used to encode transmited and decode received data. Router, on the other hand, is technically a computer. It can act as a switch, firewall or even act as a server machine with an external IP (like on the scheme I've shown).

So, it depends on how does your "modem/router" act. If it's just a modem, then it passes data directly to one of your PC's adapters with an external IP and you don't need any forwarding.

If your ADSL modem is also a router, then it is likely that it has an external IP which your computer uses through a local IP. In this case your computer can only be accessed from the internet if ports are forwarded on your router.

If you didn't forward anything and people are able to connect, then you don't have a router at all, just a modem.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
Re: How to make server private
« Reply #7 on: March 27, 2010, 05:01:29 am »
I suspect my ADSL modem to be a router because it has NAT forwarding setttings and built in security features..

Also, when I once made a web server (port 80) , people could not view it through my external IP until I port forwarded 80 from my internal IP of my server machine.

So its not just an adsl modem... right?

Btw , I think internet users was able to get in my server because I have enabled the NAT-DMZ feature in my router? Is it? See the screenshot below


Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: How to make server private
« Reply #8 on: March 27, 2010, 09:49:34 am »
Since your computer has only a local IP, ports must be forwarded it order to reach it from internet. Though, afaik, enabling DMZ results in all ports being forwarded.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
Re: How to make server private
« Reply #9 on: March 27, 2010, 04:14:25 pm »
Yup I recently just enabled DMZ...  So now it all makes sense!

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: How to make server private
« Reply #10 on: March 27, 2010, 04:24:49 pm »
btw if you still want to have a "private" server, you can also set a password ;)

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: How to make server private
« Reply #11 on: March 27, 2010, 04:30:13 pm »
I dont want to put password on my server

Plus, passwords do not work with pawn servers afaik.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
Re: How to make server private
« Reply #12 on: March 27, 2010, 07:22:10 pm »
pawn servers? you mean VC:MP servers that load pawno scripts or equivalent?

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: How to make server private
« Reply #13 on: March 27, 2010, 07:32:51 pm »
The servers which use pawn scripts and .cfg file rather than mrc scripts and .ini file.

Offline Power-Inside

  • Street Thug
  • *
  • Posts: 20
  • The Power-Inside
    • View Profile
    • Power-Inside's Blog
Re: How to make server private
« Reply #14 on: March 28, 2010, 07:04:24 am »
Ok so the same VC:MP server executable can be made to use .cfg and pawn scripts and .ini files and mrc scripts?

So I have my server using .cfg config file... that means if I need to use password , it wont work on it? :(