Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By JimDrew
#64467 Thanks for the info. I did make the changes and it compiles without an error, but it still doesn't switch ports.

I am using the v2.3.0 libraries.

Have you actually tried changing listening ports? "Something" is happening, because when I switch ports (either assigning it or using your setPort method), the new port takes a long time to timeout (and then not available) and the old port comes back immediately as not available.
User avatar
By martinayotte
#64468 The added function setPort() is changing the listening port !
As I said, I've proved this morning that it is switching port with my Telnet TCP server !
But of course, it doesn't close the current Clients, you have to close them yourself.
And then, if your try to open new Client, you will see that server only listen to new port, not on the old one.
User avatar
By martinayotte
#64480 I don't understand : if you don't have any clients before the port switch, why do you need to do port switch if the server could have been initialized with the new port from the beginning ?

For troubleshooting, unfortunately, I can't help much more, since on my side I did the test in less than 5 minutes and it worked right away without issue.