Binding client socket to localhost