In Java, you can use InetAddress.getLocalHost() to get the Ip Address of the current Server running the Java app and InetAddress.getHostName() to get Hostname of the current Server name. package …
Read Article about How to get Server IP Address and Hostname in Java →