Using localhost to create socket.io connection.