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

IP address Find in Java || Java Network Programming

1 min read
0
0
486

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

Fish Inventory Shop Management System in Angular

This article explain how to make a Fish Inventory Management App in Angular.this app expla…