Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: forcibly closing sockets/unbinding ports - win32

by McD (Chaplain)
on Jun 08, 2003 at 21:08 UTC ( [id://264161]=note: print w/replies, xml ) Need Help??


in reply to forcibly closing sockets/unbinding ports - win32

Win32 or otherwise, I don't think there's a way to force a process to relinquish a port it's listening on, short of terminating the process.

However, you might be able to work around it. You could write a small app that binds to port 110 itself, then spawns/executes/otherwise launches program X, then relinquishes port 110.

This depends on program X successfully going on it's merry way if it fails to bind to port 110, which may or may not be the case.

Good luck.

Peace,
-McD
  • Comment on Re: forcibly closing sockets/unbinding ports - win32

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://264161]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-26 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found