Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Port Number

 
Sanjeev Shahi
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Can anyone tell me how to find which port number is assigned?
Thanks,
ss
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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

k
 
Roshan Dehipitiarachchi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic