servers.cfg

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
westrupp
Adept Poster
Posts: 89
Joined: Wed Aug 01, 2007 3:07 am

servers.cfg

Post by westrupp »

How I can release connections to inside network?

Example...

Players out from network connect with westrupp.no-ip.org port 5003
Players inside network 192.168.2.1 connect with local IP of pol...
Players inside network 192.168.1.1 connect with local IP of pol...

I want release all network, like 192.168.2.0/24

Thx.
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am

Re: servers.cfg

Post by xeon »

There's a nice directive to be used in servers.cfg, "--lan--".

Like this:

Code: Select all

GameServer
{
    Name    Server
    IP        --lan--
    Port    2596
}
From 096 documentation (http://docs.polserver.com/pol096/configfiles.php):
--lan-- attempts to find you non-routable LAN IP address, if any (i.e. '192.168.*.*' or '10.*.*.*').
Port is the listening port of the Game Server, not the login server (though they may be the same). See ListenPort in pol.cfg
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: servers.cfg

Post by RusseL »

Post Reply