Scorched3D Ports
Server Ports
| Port | Description
|
| 80 TCP | For server browsing registration (outgoing connections only).
|
| 27270 TCP | For game messages (incoming connections only).
This can be changed using the server settings.
|
| 27271 UDP | For server browsing (incoming connections only).
When the server port is changed will always be the server port + 1.
|
To run a server ports 27270 TCP and 27271 UDP (or whatever ports you choose
for the server) need to be accessible externally. When running a Scorched3D
server behind a firewall or NAT router it may be necersary to open and forward
these ports.
In Linux, using iptables, this can be done as follows:
/sbin/iptables -t nat -A PREROUTING -p udp -i eth0 -d xxx.xxx.xxx.xxx --dport 27270 -j DNAT --to 192.168.0.2:27270
/sbin/iptables -A FORWARD -p udp -i eth0 -d 192.168.0.2 --dport 27270 -j ACCEPT
/sbin/iptables -t nat -A PREROUTING -p udp -i eth0 -d xxx.xxx.xxx.xxx --dport 27271 -j DNAT --to 192.168.0.2:27271
/sbin/iptables -A FORWARD -p udp -i eth0 -d 192.168.0.2 --dport 27271 -j ACCEPT
This is assuming that eth0 is your external (internet) interface, and xxx.xxx.xxx.xxx is the external ip address. If you don't know your external IP address, you can find out here. Look at the top line on this page.. Change the "192.168.0.2" to match your internal (LAN) IP address.
For information on Windows' firewalls see Server Connection Troubleshooting
Hardware Routing Devices
There is no standard procedure to set up proper forwarding in hardware based routers, as in every model and brand has it's own interface wich differs from the others.
If you have no prior experience how to set up port forwarding in a router, the quickest solution is to look for the brand & model of your device and find an online tutorial how to do so.
An extensive guide for many devices can be found here.