ip-address

  1. K

    How to get computer's WAN IP address in Java?

    How do i get the Wide Area Network of my computer with Java? I try with this: ServerSocket ss = new ServerSocket(port); System.out.println(ss.getInetAddress().getHostAddress()); //wich return 0.0.0.0 then i try with this: System.out.println(InetAddress.getLocalHost().toString()); //which...
Top