port doubling (or...)?

maximilianscherr MaximilianScherr at T-Online.de
Mon Jan 28 17:57:50 EST 2002


one big (?) problem:

the server needs to know the client ip to send packets back.
i want to do this:
client -send-> pyserver -send-> ultimaonlineserver -send-> client

how can i do this, like pretending the pyservers ip would be the 
client one.

Thanks in advance,

-Max

--- In python-list at y..., Cliff Wells <logiplexsoftware at e...> wrote:
> On Mon, 21 Jan 2002 22:48:51 -0000
> maximilianscherr wrote:
> 
> > > can you run the server on a diffrent port? you could filter 
> > incomming 
> > > requests on your server running on the original port and just 
pass 
> > along 
> > > the ones you not interested in to the original server.
> > > this could also be done with two machines, without changing 
ports.
> > > 
> > 
> > the uo client / server stuff works like this:
> > specify:
> > server: ip(s, yes ips,just checked), some port , mine: 5003
> > client: server ip, sertver port.
> > 
> > what can i do with this?,
> 
> The logic is very simple, the implementation less so, but still not 
too
> difficult:
> 
> - configure your uo server to listen on port A
> - configure your Python program to listen on port B
> - configure your uo client to transmit to port B
> - your Python server then accepts all packets on port B, and then 
forwards
> whatever ones it isn't interested in to port A
> - anything your Python program receives from port A it forwards to 
the
> client
> 
> Basically, to the server, it looks like your Python program is the 
client,
> and to the client, it looks like the Python program is the server.
> 
> 
> -- 
> Cliff Wells
> Software Engineer
> Logiplex Corporation (www.logiplex.net)
> (503) 978-6726 x308
> (800) 735-0555 x308
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list