SyntaxFix
Write A Post
Hire A Developer
Questions
This gets the IP address of your network if your machine is part of a network
try { System.out.println(InetAddress.getLocalHost().getHostAddress()); } catch (UnknownHostException e) { e.printStackTrace(); }