socket changes to send proper port to pairing server