public static NetworkPort remotePort ( String hostname , int port ) { return new RemoteNetworkPort ( hostname , port , NetworkPort . Type . TCP ) ; }
Creates a type - safe tcp port pointing ot a remote host and port .