This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- what is the best way to check if a port is in use?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 09, 2008
09:03 AM
what is the best way to check if a port is in use?
Hi,
What is the best way to check if a port is in use? We have application that specifically running on a port, and we need to check to see no other programs are using it before install.
Thanks!
Billy
What is the best way to check if a port is in use? We have application that specifically running on a port, and we need to check to see no other programs are using it before install.
Thanks!
Billy
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 09, 2008
04:57 PM
Try to open a server socket (a listening socket) on that port; if it suceeds, the port is yours, if not the port is already taken. Of course, there is no guarantee that between the time you check and the time your application is installed and up and running, some other application will use that port. Ideally, your application is registered with IANA on a well known port.