port doubling (or...)?

Cliff Wells logiplexsoftware at earthlink.net
Tue Jan 29 01:22:28 CET 2002


On Mon, 28 Jan 2002 22:57:50 -0000
maximilianscherr wrote:

> 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.
> 

I don't think there's an easy way to accomplish this (or even a difficult
way) without being able to modify the server.  However, the data stream
going back should have a lot less overhead since the python program
wouldn't actually process it, but simply pass it through.

> 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
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list


-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308

"Then with your new power you'll accomplish all sorts of cool stuff 
 in no time, and We'll All Be Sorry.  At that point you can either 
 gloat a bit, and then relent, or go ahead and send the robot army 
 after us." - Quinn Dunkan




More information about the Python-list mailing list