Code example for ServerSocket

Methods: getInetAddress

   public int getPort() { 
      return port;
   public String getAddress() {
      return serverSocket.getInetAddress().toString();
   public boolean isRunning() { 
      return connectionListener.isRunning();
   public String describe() {
      return "TCP on port " + port;
    * The listener interface for receiving connection events. The class that is interested in processing a connection event 
Contextual code suggestions in your IDE  Get Codota for Java