Author Topic: Need to limit clients to only ONE paintball server  (Read 2263 times)

deliot

  • PGP
  • Posts: 4
Need to limit clients to only ONE paintball server
« on: October 25, 2011, 12:39:20 PM »
Hello,  I need to set up a private paintball server on a LAN where the clients can't access the internet or the other Paintball servers.  So I need my server (which I've set up and which already works) to be the ***ONLY*** paintball server that the players can see.

My Question:  How can I make it so the clients only see my server and no other servers.

Thanks in advance,
Dan


SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: Need to limit clients to only ONE paintball server
« Reply #1 on: October 25, 2011, 02:28:27 PM »
If you have a router or firewall you could block access to the server list URL, which I don't know off hand.  I will get it when I get home.

I think you might even be able to do it through the player configs.  I will look into it when I get home.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Need to limit clients to only ONE paintball server
« Reply #2 on: October 25, 2011, 02:53:50 PM »
I don't think thats possible atm.

You can block the serverlist (dplogin.com:27900 - udp), but there are two other things. At first, each client can connect manually to a server. Secondly, each client can start an own server (which will be in the local serverlist).

There is a server blacklist url in the code, but i don't know if it supports wildcards and if jitspoe has implemented some parts of it already.

deliot

  • PGP
  • Posts: 4
Re: Need to limit clients to only ONE paintball server
« Reply #3 on: October 25, 2011, 09:27:45 PM »
I was wondering if I messed with the HOSTS file on Windows if I could block the other servers?  Maybe redirect the global server to localhost or something?

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: Need to limit clients to only ONE paintball server
« Reply #4 on: October 26, 2011, 07:32:24 AM »
I suppose you could redirect dplogin.com to localhost with the host file.  You would have to do it on each users machine though.   Try it out

deliot

  • PGP
  • Posts: 4
Re: Need to limit clients to only ONE paintball server
« Reply #5 on: October 26, 2011, 12:12:05 PM »
This is a lab situation, and I have the ability to image the entire lab, so I can edit the HOSTS file and make the change stick.  It's an XP lab with Steadystate, so changes will be permanent.  I'll give that a go and report back on how it went.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Need to limit clients to only ONE paintball server
« Reply #6 on: October 26, 2011, 04:40:21 PM »
Redirecting dplogin.com to localhost will also prevent global login from working, just to clarify things.

deliot

  • PGP
  • Posts: 4
Re: Need to limit clients to only ONE paintball server
« Reply #7 on: October 28, 2011, 05:29:38 PM »
Hey everyone, 

I got this to work like a charm.  Thanks for the help and advice.

QUICK REVIEW: 
I want to set up the game behind a firewall on a private LAN.  I don't want players to see other paintball servers, just my server.  Also, I don't want them to do a global login.  This is both for "rules" reasons where I work, and to make it easy for players to hit the correct server right away.  Also, I can image the lab full of computers the same, so the settings will be consistent.

DIRECTIONS:
(1)  edit serverlist.dat found in the Paintball2 --> pball folder in Windows, and delete all server entries in the file.
(2)  on individual computers, edit the hosts file.  Add the following "mapping" at the end of the hosts file:

Code: [Select]
127.0.0.1       dplogin.com
127.0.0.1       www.dplogin.com

Blocking www.dplogin.com is probably not necessary, since blocking the first entry did the job, but I did it anyway just to make sure.  NOTE:  this will totally block the domain, including access to these forums, etc.  So the players can't visit this website for tips, etc...

That's all it took.  Once I "flushed" serverlist.dat, the only server that showed up was mine :-)

My private server is now ready to go for up to 34 players.

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: Need to limit clients to only ONE paintball server
« Reply #8 on: October 29, 2011, 06:17:06 PM »
Hey deliot,

If you want you can edit it to  dplogin.com/serverlist.php instead.  Then you should have access to global login and the forums, but the server list would still be blocked.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Need to limit clients to only ONE paintball server
« Reply #9 on: October 30, 2011, 04:48:19 AM »
Works only for the serverbrowser. The game doesn't use that serverlist.