Hello,
I am working with a project that requires that I be able to change the IP address of my ND+2 during runtime. I am running a HTTP server, on a separate thread. In order for the new IP to take, I need to be able to be able to completely close the instance of the server, and restart it. When I do this, I am getting a 10022 socket exception on my bind operation. From what I can see, this is caused by the old socket.accept sticking. I have tried closing this socket, setting it to null, setting my instance to null, aborting the thread and setting to null, explicitly designating the instance for garbage collection, and even a powerstate.reboot (both hard and soft). No matter what I do, I cannot seem to restart the server without that 10022 error. If I unplug the ND and plug it back in, it will take the new settings no problem. Any idea where to go with this next?
Thanks,
Brandon