@Override public int portLocal(){
  Socket s=getSocket();
  if (s != null) {
    return s.getLocalPort();
  }
 else {
    return -1;
  }
}

@ Override public int portLocal ( ) { Socket s = getSocket ( ) ; if ( s != null ) { return s . getLocalPort ( ) ; } else { return - 1 ; } }
returns the server port that accepted the request .
