Home Java IP address Find in Java || Java Network Programming

IP address Find in Java || Java Network Programming

1 min read
0
0
485

This tutorial will teach you  Java Networking programming step step.first we look at the concept of Ip address.let we see how to find Ip Address of the machine.

Paste this Code inside the Find Button.this code use to identify the Ip Address of the Machine

       try 
        {
            InetAddress address = InetAddress.getLocalHost();
            String addressHost = address.getHostAddress();
            JOptionPane.showMessageDialog(this, addressHost);    
        } 
        catch (UnknownHostException ex) 
        {
            Logger.getLogger(IpAddess.class.getName()).log(Level.SEVERE, null, ex);
        }

i have attached the video link below. which will do this tutorials step by step.

 

 

Load More Related Articles
Load More By admin
Load More In Java

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Employee Working Hours Calculation System using C#.net

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the f…