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

Moderator: igrr

User avatar
By JimDrew
#64489 Well, your code works - but only with telnet.exe. I tried using PuttyTel and it acts the same as my code where when the switch occurs, it never responds to the port (there is a timeout). Totally different result from telnet.exe, and I am not sure why that can be.

What I need to do is simply change the port in the Setup() routine to one that is defined in my EEPROM. So, since the server has not yet been started you would think that I would just need:

Code: Select all        tcpserver.setPort(myport);


right before the:

Code: Select all        tcpserver.begin();
User avatar
By JimDrew
#64491 Ok... well I am a dummy. :)

Your setPort() works fine. I was using PuttyTel with port forwarding in my router and not changing the port after making the switch. Telnet.exe worked fine in all cases.

So, thank you very much for your help with this. I am hoping this thread will benefit other that want to change the port address from the default.
User avatar
By JimDrew
#64499 I made a bridge device where I need to be able to change the incoming port on the fly.

I think it might be that you can do a simple assign of the server instead of changing the port. That reacted the same as using the setPort() function. I think I will try that with telnet.exe to see if that works.