Fixed use of remoteServerPort environment variable