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

[REBOL] Re: Opening Specific Ports

From: mattsmac::hotmail at: 11-Nov-2003 8:10

No, basically, if you have a server running, say on port 8000 and you connect to it via a client the client will connect on a random local port to that remote port. Doing a probe on the connection verifies this. What I want to do is have the client connect via a specified port, so that if you do a probe on the client connection it will look something like: local-ip: <client's IP Address> remote-ip: <server's IP Address> local-port: 9000 remote-port: 8000 So that I can have some control on how the client connects to the server Matt ------------------------------------------------------ Hi Matt, first off I have to say I am not a network pro by any means, but what I think I hear you saying you want to do, sounds alot like the FTP protocal. server listens client connects ;this will be the control port client opens local "Port Of Choose" ; say 8005 client sends server the "Port Of Choose" number server connects to client:8005 server inserts whatever into client:POC client is happy On Mon, 10 Nov 2003, Matt MacDonald wrote:
>I realize this, but I still need to know how to do it. I can handle any >conflicts that arise, I just need to know the code to make it happen. > >Matt >------------- > >On Mon, 10 Nov 2003, Matt MacDonald wrote: > > > > >Anybody else have any thoughts on this? Or is this an impossibility? > > > >Matt > >I will not claim impossibile, but can gaurentee it could not work in >some cases. specificaly when the client is already using the port you >specify. > > > > > > > >From: "Matt MacDonald" <[mattsmac--hotmail--com]> > > >Reply-To: [rebol-list--rebol--com] > > >To: [rebol-list--rebol--com] > > >Subject: [REBOL] Re: Opening Specific Ports > > >Date: Mon, 10 Nov 2003 09:35:47 -0500 > > > > > > > > >I understand how to do that, but what I want to do is have the client > > >computer connect to a server port (in your case 9005) and also control > >what > > >port the client uses to make that connection. For instance say >something > > >like: > > > > > >server: > > >l: open tcp://:9005 > > >s: first l > > > > > >client: > > >c: open tcp://:(ip-address):9005 on 8005 > > > > > >So that I know that the client computer will always be opening port >8005 > >to > > >connect to port 9005 on the server. > > > > > >Matt > > > > > >-------------------------------------------------------- > > > > > >Matt MacDonald wrote: > > > > > > >How can I control what port (on the client side) gets opened when > > > >connecting to a TCP server? I know you can control which port on the > > > >server it connects to, but not where it connects from. > > > > > > > >Matt > > > > > > > > > > > > > > > > > > >console 1: > > > > > >server: open tcp://:9005 > > >conn: first wait server > > > > > >console 2: > > >client: open tcp://172.0.0.1:9005 > > >probe client > > > > > >watch for following object words: > > > local-port: 1786 > > > remote-port: 9005 > > > > > >HTH, > > >-pekr-
_________________________________________________________________ Compare high-speed Internet plans, starting at $26.95.