Re: Discovery IP in connection

2009-07-28 Thread Djames Suhanko
Thanks, all! I didn't tried to print addr. :-( sorry all. I'm learning python yet. Thanks again ! On Mon, Jul 27, 2009 at 8:23 PM, Piet van Oostrum wrote: >> Djames Suhanko (DS) wrote: > >>DS> Hello,all! >>DS>  I wrote a little programa that listening UDP packets. A can receive >>DS> the me

Re: Discovery IP in connection

2009-07-27 Thread Piet van Oostrum
> Djames Suhanko (DS) wrote: >DS> Hello,all! >DS> I wrote a little programa that listening UDP packets. A can receive >DS> the messages, but I can't see the the origin IP. >DS> How can I to get the remote IP address in connection? What do you think the addr is for in data, addr = mySocke

Re: Discovery IP in connection

2009-07-27 Thread Roy Smith
In article , Djames Suhanko wrote: > Hello,all! > I wrote a little programa that listening UDP packets. A can receive > the messages, but I can't see the the origin IP. > How can I to get the remote IP address in connection? > > My source: > > #!/usr/bin/env python > import socket > mySocke

Discovery IP in connection

2009-07-27 Thread Djames Suhanko
Hello,all! I wrote a little programa that listening UDP packets. A can receive the messages, but I can't see the the origin IP. How can I to get the remote IP address in connection? My source: #!/usr/bin/env python import socket mySocket = socket.socket ( socket.AF_INET, socket.SOCK_DGRAM ) my