Linux Quake 4 Dedicated Server Port issues. Need Help

Muscles

Senior member
Jul 16, 2003
424
13
81
My cable provider is Brighthouse 15mpbs downstream and 2 mbps upstream. The router I'm using is the Dlink DI-624.

I'm trying to host a Quake 4 Dedicated server on my linux machine and I'm having trouble getting it to use the default Q4 port of 28004 over the WAN. When the server is up, clients on the LAN behind the router can connect to the dedicated server fine by specifying the internal ip address (192.168.0.100) on the default port of 28004. However, clients trying to connect from the internet see my dedicated linux server on my internet ip address which is right but the default port isn't the same as the port that is being used to connect on the LAN. Quake 4 seems to be randomly choosing a different port clients on the internet have to use to connect to the server. What do I have to do on the router so that Quake 4 uses the default port of 28004 over the WAN like it knows to do on the LAN?

The way I've been using port forwarding is:
1. Advanced Tab -> Virtual Server
2. Name: Quake4
Private ip: 192.168.0.100 (internal ip of linux box)
Protocol Type: Both (although Q4 only uses UDP however setting it do UDP only makes no difference)
Private Port: 28004
Public Port: 28004
Schedule: Always

Apparently I must be doing something wrong or I'm missing something somewhere else in the router settings because clients connecting from the net are using a port I haven't even manually opened (62040). It doesn't make any sense. Can anyone help shed some light? Any help is really appreciated.
 

Muscles

Senior member
Jul 16, 2003
424
13
81
All these IT professionals and no one can answer a simple port forwarding question?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Your router setup looks right. What port is the server telling your WAN clients to use?
 

Muscles

Senior member
Jul 16, 2003
424
13
81
I say the port in my original post however it's not always the same. 62040. So far it's always been in the 6000 range.

I want clients to be able to add my servers ip address to their game browser and them be able to see it. Right now if they try adding my ip address and the default port that it's supposed to be using (example: 248.15.30.60:28004) the server won't show up and they cannot connect to it. Basically me port forwarding the port Quake 4 is supposed to be using is completely pointless. Once I start the server, I have to ask one of my friends on the net to find my server in the in-game browser and connect to it to tell me what port Quake 4 is using over the internet. Then I have to go log back into my router and add the new port so clients can add it to their game browser to ping/see it and connect. It's not making any sense to me. What can I do to fix this?
 

Muscles

Senior member
Jul 16, 2003
424
13
81
Quake 4 server admins shouldn't have to do all this investigating to find out wtf port Quake 4 is using over the internet. If I specify Quake 4 to use the default port then it should be using it not just behind the router but on the net. Something is ass backwards and I want to know what it is.
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
Well the port may be getting changed when the server reports itself?

I've never taken a look at it though. I just though it ran on an open UDP port...forward port and you're done.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
try in quake 4 console/config:

net_ip 192.168.1.100
net_port 28004

if that doesn't work, I don't know.