Remembers port and hostname in a connected socket.