Bookmark Topic Watch Topic
  • New Topic

Socket Creation doubt??

 
Anand Divakaran
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
HI,
I am trying to write a simple client server program, both the client and server program resides on the same local machine .
while creating a socket i dont know which port to mention
syntax
public Socket(InetAddress,int port)

How can i know which ports i can use .
i am working on my personal system so there is no question of admin problem
or restrictions
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
    Bookmark Topic Watch Topic
  • New Topic