forwarding ports

These are old archives. They are kept for historic purposes only.
Post Reply
santa2452
Posts: 29
Joined: Thu Jun 14, 2007 7:23 pm
Location: Columbus
Contact:

forwarding ports

Post by santa2452 »

i cant forward pords because it asks me for server ip,can any one help me
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

You give it the IP of the computer Unreal is running on.
santa2452
Posts: 29
Joined: Thu Jun 14, 2007 7:23 pm
Location: Columbus
Contact:

Post 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
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

...

The LAN IP of your server.

Not the Internet IP of your router.
santa2452
Posts: 29
Joined: Thu Jun 14, 2007 7:23 pm
Location: Columbus
Contact:

Post by santa2452 »

I still cant connect using my ip please help
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
santa2452
Posts: 29
Joined: Thu Jun 14, 2007 7:23 pm
Location: Columbus
Contact:

Post by santa2452 »

it still wont work could it be that I dont have the right lan/wan ip
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post 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
santa2452
Posts: 29
Joined: Thu Jun 14, 2007 7:23 pm
Location: Columbus
Contact:

Post 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
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
santa2452
Posts: 29
Joined: Thu Jun 14, 2007 7:23 pm
Location: Columbus
Contact:

Post by santa2452 »

I do not have a server I run unreal and services off my computer
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
Post Reply