Correctly listen for socket connections from outside.