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

IP address Find in Java || Java Network Programming

1 min read
0
0
479

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

Creating a Calculator in WPF with C# – Step-by-Step Tutorial

In this tutorials will teach how to make a calculator using wpf C# application step by ste…