LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with InetTelnetOpen

Solved!
Go to solution

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?

 

 

0 Kudos
Message 1 of 3
(2,521 Views)
Solution
Accepted by topic author DamBalzani

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! Smiley Mad )



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(2,485 Views)

the firewall blocked the traffic on that port! 

 

thanks for your help

 

Solved

0 Kudos
Message 3 of 3
(2,456 Views)