Pages: [1]
  Print  
Author Topic: Behind NAT - What ports to forward?  (Read 16078 times)
zsolt
Nub


Cakes 0
Posts: 3


OA player


WWW
« on: May 28, 2008, 02:08:32 PM »

Hi, I want to run a 24/7 OpenArena server through the Internet. I have set up the configuration files (it worked through LAN), but I cannot connect to the server from another network (through the Internet). Firstly I want to ask, wich ports do I have to forward on the router? I have forwarded the default OpenArena port (on wich the server runs) on UDP and TCP, and its' not working. What other ports do I have to open to make the server connectable through the net, visible on the list and to be able to transfer files? Or it should work with that one forwarded port?

Please help me, thanks Smiley
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #1 on: May 28, 2008, 02:39:38 PM »

You only need one port forwarded. Typically UDP 27960.

I don't understand if you problem are that people cannot join from outside or that your game does not show on the server list.

There can be some problem getting it to show on the master list in some situations if you are behind a NAT since the master server might see the wrong port (the master server apparently uses the port it received the heartbeat from). Some NAT routers/software have a Quake 3 heartbeat hack to make it work.

You also need "+set dedicated 2" to have the server send heartbeats to the master server.
Logged

There are nothing offending in my posts.
zsolt
Nub


Cakes 0
Posts: 3


OA player


WWW
« Reply #2 on: May 28, 2008, 03:12:44 PM »

I'll try the "+set dedicated 2" command, thanks for it. But i can't connect to it by entering the IP address of the server. It's strange to me that I have to open just one port, because for example a CS server uses 5 TCP and UDP ports:
Code:
TCP 7002 out
TCP 5273 out
UDP 27010 out
UDP 27012 in and out
UDP 27015 in (if your server runs on this port)

And how does the server do the file transfers through UDP?

I have another idea why it should'n work. The router does not accept the ping requests, is it a serious problem, or I have to search the error in somewhere else?

Thanks for the answer.
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #3 on: May 28, 2008, 03:23:46 PM »

But i can't connect to it by entering the IP address of the server.
That is a problem and most likely a firewall NAT one.
It's strange to me that I have to open just one port.

And how does the server do the file transfers through UDP?

I have another idea why it should'n work. The router does not accept the ping requests, is it a serious problem, or I have to search the error in somewhere else?

The Quake engine does only require one incomming port and uses it both for information exchange, playing, pinging and file transfer.

While the server can transfer files over UDP, it is much faster to set HTTP/FTP redirect up. The web server hosting the HTTP or FTP server will of course need an extra port.

You don't have to worry about standard ping packets... they are not used. Only the one port. Try scanning from the outside to see if the port responds.

Logged

There are nothing offending in my posts.
zsolt
Nub


Cakes 0
Posts: 3


OA player


WWW
« Reply #4 on: May 28, 2008, 03:29:33 PM »

thanks a lot for the fast and straight answers  Smiley
Logged
Pages: [1]
  Print  
 
Jump to: