requests for a port from server before connecting and pushing data