wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Port Number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Port Number" Watch "Port Number" New topic
Author

Port Number

Sanjeev Shahi
Ranch Hand

Joined: Feb 26, 2001
Posts: 83
Hi!
Can anyone tell me how to find which port number is assigned?
Thanks,
ss
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,

assigned to what ?
here is a portnumber list for default ports used.

k
Roshan Dehipitiarachchi
Greenhorn

Joined: Dec 11, 2001
Posts: 1
U can write a simple java program which trys to open a server socket on the port number u are interested and if it is assinged an exeption is thrown. U can even do this in a loop so U can check a range of port numbers.
sunhongfeng
Greenhorn

Joined: Dec 12, 2001
Posts: 3
i found in the list:
corba-iiop 683/tcp
iiop 535/tcp
please tell me what the difference between these two?
mark stone
Ranch Hand

Joined: Dec 18, 2001
Posts: 417
can you please send me the code for this. it would be greatly helpful.
thanks
Originally posted by Roshan Dehipitiarachchi:
U can write a simple java program which trys to open a server socket on the port number u are interested and if it is assinged an exeption is thrown. U can even do this in a loop so U can check a range of port numbers.
 
 
subject: Port Number