add portNum to send_msg_app