fix port parameter

Port wasn't being passed to the connection.