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