06-30-2010 03:07 AM
I'm developing an application with push support, I've a background application which listens for push requests and a UI application.
My application is working fine on BES but I want to provide another feature to notify user whether the specified port is available or not. If the port is already bound then which application has acquired this port. Is there any API to find out the application name which is listening on a port?
Awaiting for your reply !!!
Solved! Go to Solution.
06-30-2010 04:24 AM
no, there is no such api. in my software i just try some more ports
06-30-2010 05:12 AM
Thanks for replyin Simon.
I know that there is no api to find out free port, but I want to display a error message to user if my app got PortBoundException along with the name of the other application which is using the same port. It will help the user to know the exact issue. I dont know how i can determine the application name, if you do then please tell me.
06-30-2010 05:23 AM
no, there (still) is no such api.
06-30-2010 06:52 AM
Thanks for confirming that there is no such API.
One more thing, my application is an autostart app and it registers for the listening port at each device reboot. So, if my application has acquired a port once then is it possible for another to acquire same port after rebooting the device?
06-30-2010 06:54 AM
yes, a reboot deletes all aquired ports