Code example for ServerSocket

Methods: getInetAddress, getLocalPort

0
		this.newServerMode = newMode;
		this.switchServerMode = true;
		 
		// Ping ourselves to make sure we don't stick in the ServerSocket accept. 
		PingRequestThread pingThread = 
				new PingRequestThread(this.listener.getInetAddress().getHostAddress(), 
				this.listener.getLocalPort(), this.instanceName);
		pingThread.start();
	} 
 
	public String getGamerHost() {
		return serverMode.getHostAddress();
	} 
}