Port Fowarding?

slrranma

Chieftain
Joined
Nov 26, 2005
Messages
1
I have been getting alot of problems connecting to games like everyone else and so i decided maybe it's the router of course. SO my question is, What ports do i foward for civ 4? thanks!
 
I'm not sure. It seems to work either way.

In your Program Files -> Firaxis -> Civ4 folder there is a configuration file.
It lists a 'port = x' variable.

It is default to 2056. I'm pretty sure I need to forward this to host, but not necessarily connect.

As I host a game and watch the ip hits come in, there are a lot on port 29900.

It's hard to say, but I'd sure as hell like to see an explanation from Firaxis.

-I'm mailing Sid Meiers a turd for Christmas.

-Pros
 
All you gotta do is forward 2056.

If you're using iptables, make sure you -j ACCEPT it on BOTH the INPUT and and the FORWARD chain.
 
So
iptables -A FORWARD -p tcp --dport 2056 -j ACCEPT
iptables -A INPUT -p tcp --dport 2056 -j ACCEPT


That going to do it, or do you think

iptables -t nat -A PREROUTING -p tco --dport 2056 --to-destination [WINDOWS BOX]

is necessary?

Cool,

Thanks,

Pros

(Sid Meier still get a turd in his stocking!)
 
Here's my /etc/sysconfig/iptables:

...
*nat
...
# CIV IV
-A PREROUTING -p tcp --dport 2056 -i eth2 -j DNAT --to 192.168.0.16
-A PREROUTING -p udp --dport 2056 -i eth2 -j DNAT --to 192.168.0.16
...
COMMIT
...
*filter
...
-A FORWARD -j RH-Firewall-1-INPUT <---- making INPUT and FORWARD the same chain
...
# Civ IV
-A RH-Firewall-1-INPUT -p tcp --dport 2056 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 2056 -j ACCEPT
...
COMMIT


Now I did that on both tcp and udp cuz I don't know which one CIV uses. Should be tcp, but they're morons, so you never know.
 
I looked in the manual, the official website, the take2 site, the readme, on the side of my box and I googled - despite all this, it wasn't until I searched here that I found this info.

Having hosts is SO important, pretty big dose of amateur hour if this info isn't available in any official capacity?
 
Holy moly gents! - I know what youve written is probably of use to me with my similar problem (I cant connect multiplayer) but I have no idea what you are on about!!!

Would you please educate this poor simple soul by explaining what I should do!?

I have posted on the cant connect topic as well. Firaxis are proving as much use as tits on a fish on this one.
 
Illumination: They are speaking in evil Linux terms. I was trying to figure it out as well :(
 
There is a place on this site where a guy lists a bunch of ports. I am not sure where it is, but I once copied it and the list is as follows:

TCP:
2056 - used to connect to games (EXTREMELY IMPORTANT!)
6667 - used for chat
29900 - GP Connection Manager (from lobby to game - pretty important I should think!)
28910 - Master Server List Request (game list)

UDP
13139 - used, but I do not know what exactly it does
2056 - used to connect to games (EXTREMELY IMPORTANT!)
6500 - used by server (aka the battle coordinator)
2300-2400 - a random selected port in this range will be used to initialize the game (important as it exactly

However, there was a number of other ports to open if I remember correctly.

I must also add that I have STILL experienced problems although I have been hosting with these ports - and more - open. Both problems with Direct IP and Lobby. It seems that if ONE player has an issue with a firewall or likewise it effects the other players.
 
Back
Top Bottom