NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on June 08, 2009, 02:44:41 AM
-
Hallo,
There is a way to change the port at runt time ?
Thank you,
Robert
-
Mhhh I dont know if you can do it at runtime and do not imagine the reazon, but if what you want is a way to define the port outside the exe, then, define a variable as the port and at startup read it from an ini file, for exaple:
loc:port = getini('gmed','port',88,'.\gmed.ini')
Hope this helps
Alberto
-
Hi Robert,
I use what Alberto suggested.
It is possible to actually change the port while the app is running though.
You need to .Close the server, and then .Open it again with the new port value.
Cheers
Bruce
-
Hallo Bruce,
Now it works. Forgot about .Close the server :-)
Thank you Alberto for suggestion.
Regards,
Robert