This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Socket Creation doubt?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Socket Creation doubt??

Anand Divakaran
Greenhorn

Joined: Jul 20, 2007
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Socket Creation doubt??
 
Similar Threads
socket creation doubt ?
Socket Creation doubt?
Lock server socket processor
socket.close
java.net.SocketException: Unrecognized Windows Sockets error: 10106: create