In article <[email protected]>, Djames Suhanko <[email protected]> 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 > mySocket = socket.socket ( socket.AF_INET, socket.SOCK_DGRAM ) > mySocket.bind ( ( '', 514 ) ) > > data, addr = mySocket.recvfrom(100) > print data What happens when you print addr? -- http://mail.python.org/mailman/listinfo/python-list
