Allow remote_api client to connect to custom local port

http://play.golang.org/p/fMogPEfgc8