On OS X, when creating a server socket on a specific port for all interfaces, a new server socket can bind to localhost with the same port and accept connection
localhost