add ip and port to log