add -remoteport commandline option