Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

chatting client - server using UDP

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

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

Share: 

 

1 Answer Found

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

visit foloowing site you will get examples there

http://www.javaalmanac.com/

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




Tagged: