ip addresses

bpayne111

Well-known member
Joined
Feb 28, 2003
Messages
326
Location
BFE
i read a post by mooman_fl which discusses the problem of getting the external ip address of a router (that is not the correct term though...
 
an ip can have many ports. the router listens on 1 ip shared by many ccomputers or devices with ips. ip forwarding is when the router forwards an ip packet to one of those computers or devices.

So lets say I have a router and 4 machines -> (A, B, C, D). I run a webserver on A on port 80, ftp on B on port 21, a SMTP on C on port 25. Lets say the routers ip is 141.222.2.1.

no port fowarding:

me connecting to 141.222.2.1:80, 141.222.2.1:21, 141.222.2.1:25 will result in an unsuccessful connection. the router will refuse my connection because the router has no services running on those ports.


with port forwarding:
1) tell the router to forward/send all requests with a port# of 80 to computer A port 80, send all requests with a port# of 21 to computer B port 21, and all requests with a port# of 25 to computer C port 25.

So if 24.68.43.22 wants to connect to the router on port 80, the router will forward this data to computer A.

kinda get what Im saying?
 
yea kinda but it all seems a little wierd
so if i have a user behind a router that wants to host my program, what is required to get the router to allow it to connect to the host computer?
im begining to accept that i cant do this with code, so what kind of user input am i gonna need to make it work?

thanks
brandon
 
a readme file stating what port the server listens on is more than enough.

the user will probably know how to do port forwarding.
 
Back
Top