03-10-2017 05:46 AM
hy everybody,
i'm trying to open a telnet connection with an external board by the follow command:
telnetHandle = InetTelnetOpen("192.168.1.10", 2347, 0);
"192.168.1.10" is the ID number of the board
2347 is the telnet port
I can open the connection with this settings with a tool (named putty) without any problems but in cvi i get Always the same error -22
can you help me?
Solved! Go to Solution.
03-13-2017 05:44 AM
The only strange thing I see in that command is the unusual port used, telnet uses port 23 by default. Are you sure the port is correct?
I can imagine there may be some problem with an internal firewall that blocks traffic on that port: could it be that you have explicitly opened/enabled that port for putty? If so, you could enable it for your program as well (but my antivirus understands when the program has been recompiled in debug mode and blocks me each time I rebuild my app in debug mode: I need to enable it again and again! )
03-17-2017 07:12 AM
the firewall blocked the traffic on that port!
thanks for your help
Solved