Find out who is accessing my ServerSocketTag(s): Networking


Socket aSock = myServerSocket.accept();

System.out.println 
  ("Connection from : " 
     + aSock.getInetAddress().getHostAddress() 
     + ':' + aSock.getPort()); 

blog comments powered by Disqus