[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 127.0.0.1 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 192.168.1.100]
|
|
|
[your-router-inside 192.168.1.1]
[your-router-outside 67.175.100.73] ;your (dynamic) IP
|
|
|
[your-ISP's-gateway 67.175.100.1](gateway typically *.1)
|
|
|
< the internet >
|
|
|
[friends-ISP's ?.?.?.?]
|
|
|
[friends-router-outside ?.?.?.?] ; friends dynamic IP
[friends-router-inside 192.168.1.1]
|
|
|
[friends 192.168.1.101]
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 192.168.1.100 on its inside.
for just starting out it may be easier for you to just put a second
machine on your lan
[you1 192.168.1.100] ---- <switch/hub> --- [you2 192.168.1.99]
|
|
|
[your-router-inside 192.168.1.1]
[your-router-outside 67.175.100.73];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: