I have a small one sided message sender that works while I specify the IP to connect to in code, however, I am having trouble allowing the socket to accept connections from any IP. Here is the line that is the problem.
mySocket = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
mySocket.bind ( ( '', 2727 ) )
The ''
is for localhost, and it works if I manually enter IP, eg '192.168.1.106'
, however, how can I leave it open to all? Or am I using the wrong connection type for this?