Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

free port?????

 
Ajay Singhal
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! friends
i've a problem in socket communication. the problem is that i want to get the free ports on the remote machine
how can i do that.
and i also want to check that on a remote computer a application is running on which port.
if u have any idea then reply back.

Ajay Singhal
 
Ravee Bhat
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ajay
Try opening a ServerSocket for a port in that m/c.
If an exception is thrown then the port is not free.
regards
ravee.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic