Showing results for 
Search instead for 
Did you mean: 

Telnet client

Go to solution

I have a Telnet service running on a TI microprocessor.  I need to send a hex string to a telnet server. I have opened Simple TCP - Client from the examples. The server is refusing my connection, error 63. I have included my modifications to the example code.

0 Kudos
Message 1 of 6
Accepted by topic author Gary_MavSysInc

I see you wired a constant of "23" to the "local port" input on TCP Open, which is probably not what you meant to do. Normally the local port can be left unwired, and since telnet normally runs on port 23, you might have meant to wire this constant to the "remote port or service" input, to which you've wired the string "telnet", which will only work if the telnet server is registered with the NI Services Locator. What happens if you wire the 23 constant to this input instead of the string?

Message 2 of 6

Error 66

0 Kudos
Message 3 of 6

@Gary_MavSysInc wrote:

Error 66

Connection closed by peer.  This usually occurs when you try to open an invalid port or you did not do a log on process correctly.  Start by setting the remote port to 23, as you were previously told.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 6

Can you connect to the server with a regular telnet client like the one that comes with Windows?

0 Kudos
Message 5 of 6

My bad, I had TeraTerm open under several other windows connected as telnet to the microprocessor (TI TIVA). Once I selected port 23, as pointed out by artle (sp?) above, the SW started working. I gave mr. artle (SP?) credit for the solution. Thank you all for your help, I greatly appreciate it.

0 Kudos
Message 6 of 6