I have an app that needs to start the HTTP server. Once the app receives a new IP address and port number for the http server, I need to restart it with the new settings. My code uses a call to naHSDefaultSetting() to get the server settings, which I modify with the port number. Then I call NAHSStartServer() to start the server. This works good for the initial startup, but once I have my new IP address and port number, I have only managed to find a way to release the IP using naIamRelease(). I do not see a way to change the port assignemnt for the HTTP server and then restart it. NAHSStartServer() has no effect if called again after the server is already started. Does anyone know how I can get around this?
I am also having the same issue with the telnet server, starting it with a defined port and then being able to change the port later.