Advance Java Program Microproject
Advance Java Program Microproject
Advance Java Program Microproject
A MICRO-PROJECT REPORT ON
SUBMITED BY
Avishkar Khenat
UNDER GUIDANCE
Prof Mrs. ANKITA GADEKAR
P K TECHNICAL CAMPUS,CHAKAN
Avishkar Khenat
❖ IP Finder in Java
To create IP Finder in Java with the help of Networking, AWT/Swing
with event handling to avoid errors in the code. Let's see the
implementation for creating IP Finder in Java.
String url = "www.cogingninjas.com";
InetAddress iadds = InetAddress.getByName(url);
String ip = iadds.getHostAddress();
You can also try this code with Online Java Compiler
❖Run Code
• Working Example
Here is an example to demonstrate the working of IP Finder in Java.
It is implemented using java Swing.
import javax.swing.*;
import java.awt.event.*;
import java.net.*;
IPFinder() {
super("IP Finder - Coging Ninjas");
l = new JLabel("Enter URL:");
l.setBounds(50, 70, 150, 20);
❖ Run Code
▪
Output
• Frequently Asked Questions
➢What is an IP address in Java?
The IP address is a 32-bit or 128-bit unsigned number used by the
IP, a lower-level protocol on which protocols like UDP & TCP are
built. The InetAddress class represents an IP(Internet Protocol)
address in Java.