Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

chatting client - server using UDP

  Asked By: Gin    Date: May 07    Category: Java    Views: 4403

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 ;) )


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 = "".getBytes();

InetAddress IPAdd = InetAddress.getByAddress(myIP);

but it didn't work



1 Answer Found

Answer #1    Answered By: Edfu Massri     Answered On: May 07

visit foloowing site you will get examples there


Didn't find what you were looking for? Find more on chatting client - server using UDP Or get search suggestion and latest updates.