Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

send a connection request to a server

  Asked By: Egidius    Date: Mar 03    Category: Java    Views: 804
  

I want to send a connection request to a server. Or u can say I hav IP address
of server and I want to connect to that server.Plz tell me how can I do this
through java code.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Yvonne Watkins     Answered On: Mar 03

You mean a TCP connection?

Socket socket = new Socket(InetAddress address, int port)

If not a TCP connection  UDP packets are supported (obviously) go check
the Java docs.

 
Didn't find what you were looking for? Find more on send a connection request to a server Or get search suggestion and latest updates.




Tagged: