Get IPAddress through java.


import java.net.*;
import java.io.*;

class IpAddress
{
public static void main(String args[])
{
try
{
BufferedReader kb = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter url :-> ");
String str = kb.readLine();
InetAddress ip = InetAddress.getByName(str);
System.out.println(ip.toString());
}
catch(Exception uhe)
{
uhe.printStackTrace();
}
}
}

Popular posts from this blog

Simple Sign up design. Android.

Cart page design in android.

Set Date on jDateChooser and retrieve record from database.