Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [TCP] [Ports] Connecting Two Computers

From: tomc:darkwing:uoregon at: 3-Oct-2004 16:35

this answer implies at least your router is between the machines and your friends router as well. there are special ip addresses that are different from the normal addresses uaed by the internet. one such example is which may be used by every machine when it wants to talk to itself. other *special* addresses are the that begin with 192.168.*.* they are reserved for small private networks, or LANs (local area networks). since there are millions of these small lans these addresses are ONLY valid within the lan they are in. you have a lan. your friend has a lan. both lans draw IP from the same range of non-routable addresses. you could easly both have the same 192.168.*.* address. machines can only send data to other machines on the same subnet. so your friends machine tried to connect to port 9097 on a machine on HIS (assuming your friend is a he) lan not YOUR lan. here is your situation as far as I can guess. (also assuming your email is sent by the same ISP) (notice the inside and outside IPs on both routers are similar to the ip of the machines they connect to) [you] | | | [your-router-inside] [your-router-outside] ;your (dynamic) IP | | | [your-ISP's-gateway](gateway typically *.1) | | | < the internet > | | | [friends-ISP's ?.?.?.?] | | | [friends-router-outside ?.?.?.?] ; friends dynamic IP [friends-router-inside] | | | [friends] for this to work: your friend would need to know your (dynamic IP) your router would need to know that when it got traffic on a particular port (9097) from the outside to forward to the non routable address on its inside. for just starting out it may be easier for you to just put a second machine on your lan [you1] ---- <switch/hub> --- [you2] | | | [your-router-inside] [your-router-outside];your (dynamic) IP then they do not need the router to communicate because they are on the same subnet, you dont need to forward a port yet and you get to play. On Sun, 3 Oct 2004, Izkata wrote: