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

[tcp][ports] Well, here I am, asking this -again-

 [1/5] from: Izkata::Comcast::net at: 19-Oct-2004 19:59


Well, here I am again, with a similar question - http://www.rebol.net/cookbook/recipes/0028.html shows how to make 2 scripts connect to each other using Ports on a single computer... I found a site that tells me my own IP address - http://javascript.internet.com/user-details/ip-address.html - but still can't manage to get the two scripts to connect two computers over the internet... The Listen line of the Server side stays the same, right? : listen: open/direct/lines/no-wait tcp://:9097 And then the Client side is what I would change - connect-out: open/direct/lines/no-wait tcp://localhost:9097 - replacing the 'localhost with my IP. Those are the only changes I can think of... Am I missing something? I'd really appreciate being able to connect some scripts over the internet like this. Once I can, I can begin working on more of my game.. (If I get it up, many, many more people, especially those that are my age, will turn towards Tibia. I've already started a few offline parts off it, like a character walking around and stuff) ~I actually hope to create a beginning MMORPG with Rebol!~ -Adios says the Izzy Boy (^.-)

 [2/5] from: ammon::johnson::gmail::com at: 19-Oct-2004 20:07


The REBOL script is right, but if there are firewalls/routers inbetween the computers then you have to be sure that firewalls/routers are configured to forward the proper port(s) to the proper ip addresses... HTH ~~Ammon ;~> On Tue, 19 Oct 2004 19:59:24 -0500, Izkata <[izkata--comcast--net]> wrote:
> Well, here I am again, with a similar question - > http://www.rebol.net/cookbook/recipes/0028.html
<<quoted lines omitted: 20>>
> To unsubscribe from the list, just send an email to rebol-request > at rebol.com with unsubscribe as the subject.
-- Enjoy!! ~~Ammon ;~[) ~Sui Generis~

 [3/5] from: mauro:fontana:speedautomazione:it at: 20-Oct-2004 13:07


On Tue, 19 Oct 2004 19:59:24 -0500, Izkata <[Izkata--Comcast--net]> wrote:
> And then the Client side is what I would change - > connect-out: open/direct/lines/no-wait tcp://localhost:9097 > - replacing the 'localhost with my IP. > > Those are the only changes I can think of... Am I missing something?
Shouldn't you replace the localhost with the server IP address? Otherwise it is the same as localhost.

 [4/5] from: Izkata::Comcast::net at: 20-Oct-2004 6:06


> On Tue, 19 Oct 2004 19:59:24 -0500, Izkata <[Izkata--Comcast--net]> wrote: >>
<<quoted lines omitted: 5>>
> Shouldn't you replace the localhost with the server IP address? > Otherwise it is the same as localhost.
Well, my IP being the server side and the other one being the client side, I think we mean the same thing ^.-
> The REBOL script is right, but if there are firewalls/routers > inbetween the computers then you have to be sure that > firewalls/routers are configured to forward the proper port(s) to the > proper ip addresses...
I'll be able to try that in ohh 11 to 12 hours, after school is over for the day....

 [5/5] from: antonr::lexicon::net at: 21-Oct-2004 16:57


What's your setup? Do you have the two computers side by side? If you are on Windows you can open a dos console and type "ipconfig" to get your ip address.
> Well, my IP being the server side and the other one being the client side, > I think we mean the same thing ^.-
This is what my game server was doing: server-port: open/direct/no-wait/lines rejoin [tcp:// ":" port-id/text] ; waits for a connection from client connection-port: first server-port forever [ wait connection-port ; this waits for data message: load first connection-port ; do something with message ] and you have to invent some way to quit the loop. (I used a simple quit? flag). Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted