Hi all,
I am tryng to send some data from a PC to the Mobile phone. I am using the following code on the phone, but it gives me an error.

from socket import *

# Set the socket parameters
port = 19001
host = u"localhost"
buf = 1024
addr = (host,port)
print "creating socket....."
# Create socket and bind to address
print "binding socket....."
print "DONE"
# Receive messages

Traceback (most recent call last):
File "<console>", line 1, in ?
File "<string>", line 1, in bind
error: (22, 'Invalid argument')

Any idea??
Is there any possibility to get the IP address of the phone somehow??

Thanks for help