Computer NetworksNETWORKS

Java program to get IP address and Hostname

In this video, you will learn how to get the IP address and hostname of a local System in Java.
We will also learn how to find IP address for google website in this tutorial.

InetAddress class – https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html
getLocalHost() – https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getLocalHost()
getHostAddress() – https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getHostAddress()
getHostName() – https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getHostName()
getByName(String host) – https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getByName(java.lang.String)
Java tutorial – https://docs.oracle.com/javase/tutorial/

In this video you will learn:
– how to get the IP address and hostname of a local System in Java
– how to handle exception in java
– how to import package in java
– java.net package
– IP address in Java
– getLocalHost() in java
– getHostAddress() in java
– getHostName() in java
– getByName(String host) in java
– InetAddress class in java
– Exception handling in Java

Want to learn more from me?

Java examples complete Playlist :

Python examples complete Playlist :

#JavaProgramToGetIPAddress
#JavaProgramToGetIPAddressAndHostname
#JavaTutorial
#JavaTutorialForBeginners
#IPAddressInJava
#JavaDotNetPackage
#JavaExamples
#IPAddress
#InetAddressInJava

Subscribe to my other channel for random videos:
IndianBox : https://www.youtube.com/channel/UC_F45pOu0ZWTpkt3gw6x2jA/?sub_confirmation=1

Follow us on:
Facebook : https://www.facebook.com/TheProgrammingPortal/
Instagram : https://www.instagram.com/theprogrammingportal/

Support:
Patreon : https://www.patreon.com/TheProgrammingPortal

Keep Coding!

source

ip address

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

Leave a Reply

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