add ip and port fields