Page 1 of 1

forwarding ports

Posted: Thu Jun 14, 2007 7:32 pm
by santa2452
i cant forward pords because it asks me for server ip,can any one help me

Posted: Thu Jun 14, 2007 8:30 pm
by Jobe
You give it the IP of the computer Unreal is running on.

Posted: Sat Jun 16, 2007 4:50 pm
by santa2452
I tried that before i posted this topic but it says:

ip address must be on same subnet mask as the lan ip

Posted: Sat Jun 16, 2007 5:07 pm
by Jobe
...

The LAN IP of your server.

Not the Internet IP of your router.

Posted: Sat Jun 16, 2007 7:30 pm
by santa2452
I still cant connect using my ip please help

Posted: Mon Jun 18, 2007 6:43 am
by Dukat
In your LAN you have to connect to the LAN IP, not the WAN IP.
From the WAN you have to connect to the WAN IP, not the LAN IP.

Posted: Mon Jun 18, 2007 11:20 am
by santa2452
it still wont work could it be that I dont have the right lan/wan ip

Posted: Tue Jun 19, 2007 9:01 am
by JanisB
You can try iptables if you understand what are you doing...

Code: Select all

iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -A PREROUTING -j DNAT -p tcp -d IP1 --dport PORT1 --to IP2:PORT2
IP1:PORT1 are your WAN address:port, and IP2:PORT2 - LAN/somewhere else located IP:PORT

Posted: Tue Jun 19, 2007 5:39 pm
by santa2452
sorry that made me confused I have lan ip and it asking for sever ip i tried my ip but it says needs to be in subnet mask as lan or something like that..I put the routers ip and it doesnt forward the ports like it should i really need to use my ip to connect or noone else will be able to

Posted: Tue Jun 19, 2007 5:52 pm
by Jobe
Ok follow this diagram:

[server]----[router]----{internet}

server has an IP between it and the router

router has an IP between it and the internet

You set the IP that the port forwards to to be the IP on the server.

Posted: Tue Jun 19, 2007 5:56 pm
by santa2452
I do not have a server I run unreal and services off my computer

Posted: Tue Jun 19, 2007 6:53 pm
by Jobe
Unreal = server

Making your computer = server in my diagram.

Hence you forward the ports to your computers OWN IP.

To find that out in windows, click Start then Run, type "cmd.exe /k ipconfig"

In *nix type ifconfig.