I have another one if you don't mind
I'm writing a chatting client - server using UDP (if anyone has a source code,
please, i'm waiting ;) )
anyway
In the client, I need to specify the address of the server
InetAddress IPAddress = InetAddress.getByName("hostname");
but I need to put the IP directly
I found something like this following:
byte[] myIP = "194.170.15.187".getBytes();
InetAddress IPAdd = InetAddress.getByAddress(myIP);
but it didn't work