I am trying to develop a system where there are different nodes that are run on different system or on different ports on the same system.
Now all the nodes create
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(); }