N
nooneinparticular314159
I'm trying the following:
InetAddress ServerAddress = null;
ServerIPAddressBytes =
IPMapper.GetIPAddressAsByteArray(ServerToConnectTo);
try{
ServerAddress.getByAddress(ServerIPAddressBytes);
} catch (UnknownHostException Exception) {
System.out.println("Client: UnknownHostException when
trying to create an InetAddress");
System.exit(-1);
}
where my GetIPAddressAsByteArray method will return a 4 byte array with
an IP address in it. Running this through my debugger, ServerAddress
apparently never changes from Null. It should be returning an
InetAddress object, but instead ServerAddress remains null. Any idea
why this is happening, and not returning an InetAddress?
Thanks!
InetAddress ServerAddress = null;
ServerIPAddressBytes =
IPMapper.GetIPAddressAsByteArray(ServerToConnectTo);
try{
ServerAddress.getByAddress(ServerIPAddressBytes);
} catch (UnknownHostException Exception) {
System.out.println("Client: UnknownHostException when
trying to create an InetAddress");
System.exit(-1);
}
where my GetIPAddressAsByteArray method will return a 4 byte array with
an IP address in it. Running this through my debugger, ServerAddress
apparently never changes from Null. It should be returning an
InetAddress object, but instead ServerAddress remains null. Any idea
why this is happening, and not returning an InetAddress?
Thanks!