Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get TIdHTTPServer to bind

Status
Not open for further replies.

AncientHacker

Programmer
Oct 29, 2009
6
US
I have an app that starts up just fine and starts a HTTP server on port 8181. (using delphi indy TIdHTTPServer)

All that is fine.

But sometimes the app crashes and leaves a dangling listener apparently, because when I re-run the app it says "Bind-- port already in use".

Surely there is some way to usurp a dead server port.

Any ideas appreciated.
 
I would investigate why the app crashes.
This would prevent the bind problem.

when the app crashes, is it still in the process list (taskmanager)?

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top