i am unable to create instance of InetAddress by using the static method
getByAddress(). Pls help me....
try
{
String sysIp = "192.9.200.244";
InetAddress ipAdd = InetAddress.getByAddress(sysIp.getBytes());
}
catch(UnknownHostException e)
{
System.out.println("UnknownHostException::"+e.getMessage());
System.out.println("*********Could not register for traps***********");
return;
}
I am getting the following output.
UnknownHostException::addr is of illegal length
*********Could not register for traps***********