Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : Switching ports with Indy HttpServer
| Subject: | Switching ports with Indy HttpServer |
| Posted by: | "Jim Rowell" (spam@rowellelectric.ca) |
| Date: | Mon, 30 May 2005 23:41:30 |
Using Indy9 TIdHttpServer with D7 & 2005....
I've built a quicky embedded server in my app so its users can connect to it
via a browser for remote monitoring. Works great but I'd like to be able to
switch the server's listening port via the preferences dialog.
The problem I'm running into is that the port only changes on the next
restart of the program.
I'm setting the server component's active property to false then switching
the DefaultPort property to the desired port #.
I presume I could free and recreate it but surely there's a less drastic
method.
What's the proper method?
TIA
Jim Rowell