How To Get IP Address In Java


This is simple example to demonstrate the use of InetAddress.getLocalHost() API to retrieve the IP Address details of your local system or where ever the Java program is executed. If you write a server applications, this can be used for getting the server’s IP Address. Lets look at the example code to display the IP Address […]

How To Test Internet Connection Using Java


It is very often required to test the internet connection for performing some operations. If there is no internet connection established, then alternative logic will be executed. Java provides useful classes in package for connecting to the internet. Here I written a very simple example to test if your system is connected to internet. […]

How To Check Network Connection Using Java


It if often required to get the details of the network connection in your desktop. It will be useful if you could get the details of all the connected network details for the future operations. Java has set of classes in the package which is useful for the Java network programming. In this example […]

Please support the site
By clicking any of these buttons you help our site to get better