Made same port reusable for the socket connection.