Dadaajp
Dadaajp
javax.swing.*; import
java.awt.event.*; import
java.net.*;
JLabel l;
JTextField tf;
JButton b;
IPFinder()
l.setBounds(50,70,150,20);;
tf=new JTextField();
tf.setBounds(50,100,200,20);
b.setBounds(50,150,80,30);
b.addActionListener(this);
add(l);
add(tf);
add(b);
setSize(300,300);
setLayout(null);
setVisible(true)
public void
actionPerformed(ActionEvent e)
{ String url=tf.getText();
try {
InetAddress
ia=InetAddress.getByName(ur
l); String
ip=ia.getHostAddress();
JOptionPane.showMessageDia
log(this,ip);
JOptionPane.showMessageDialog(this,e1.toString());
}
}
IP FINDING Frame which take and input for web site in the format fo so it will return
a IP address of that website it can be use for IP tracking device
12.0 Skill developed / learning outcomes of micro – project :
● Applications of IP Finder:
14.0 Conclusion