fix bug connecting to server using alt port