Xpilot : Newbieguide  : Firewalls

Firewalls can be nasty things for games. Luckily you can set which ports XPilot should use to connect to servers or players. This way you only have to open up a small range of UDP-ports in the firewall.

For the server the best way to set the portrange is to edit the defaultsfile.
You can find out where the defaultsfile is (usually in the libdir) by typing

xpilots -dump | grep DEFAULT
Open the file in your favorite texteditor and add these two options
clientPortStart:    15346
clientPortEnd:    15365
15346 and 15365 are just examples, but useful nonetheless. Since the default initial-contact-port is 15345. You now only have to open the UDP-portrange 15345 to 15365 allow at most 20 players to join your server. If you want more players, just make the range a bit bigger. You may need root-access to edit the defaultsfile if it is located at /usr/X11/..... or something like that.

For the client the procedure is about the same, except you don't open the defaultsfile, but your .xpilotrc. Your .xpilotrc can be found in your homedirectory, but note that it's a hidden file. Open it in your favorite texteditor again and add these two lines

xpilot.clientPortStart:    15346
xpilot.clientPortEnd:    15365
Again, you can choose different values for 15346 and 15365, but with the default initial-contact-port being 15345...

If the firewalls isn't yours, just send a nice mail to root. If that doesn't work, send a not-so-nice mail. :-)


Error, corrupted file
Error, id 302 does not exist