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::edu at: 3-Oct-2004 2:20

On Sat, 2 Oct 2004, Izkata wrote:
> I think I asked this before, but couldn't find it... > > Alright, I found a TCP example of how to make 2 scripts communicate at > http://www.rebol.net/cookbook/recipes/0028.html > and it works fine for me. Then, when I try to modify it and make two > different computers connect to each other, the Client side gets an error > trying to connect to my IP Address. It can't find it or something.... > And yeah, the Server part is running while this happens.. > > ** Access Error: Cannot connect to 192.168.1.100 > ** Near: connect-out: open/direct/lines/no-wait tcp://192.168.1.100:9097 > > Server is still connecting to tcp://localhost:9097/ it seems like it > should > work, but if I'm waiting for another computer, does it? > > Also, I use a router... could that be a problem? > (I'm retrieving my IP by using "Insert IP Address" in AIM) >
are the two computers on the same subnet? is the router between the computers? is the router doing NAT? addresses that begin with 192.168.1.* or 10.0.0.* are "unroutable" (that is everyone with a lan uses the same sets of addresses so they are useless for the internet at large) your router may be able to shunt traffic on port 9097 to your computer running the server then the client will connect the routers ip. you can also open a dos shell and type ipconfig to get your machines ip. hope that helps