sending test string to tcp/ip server

C

cj2

I have a tcp/ip server that I need to send a test string to. I did this
several years back and used something in the windows command prompt.

Something like Telnet 192.168.xxx.xx:port ThisIsMyString

It sent the string to the ipaddress and port I typed in. I don't think
it was telnet however. What would I have used? Anyone have any ideas?
 
C

Colbert Zhou [MSFT]

Hello Chris,

------------------------------------------------------------------------
telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]]
-a Attempt automatic logon. Same as -l option except uses
the currently logged on user's name.
-e Escape character to enter telnet client prompt.
-f File name for client side logging
-l Specifies the user name to log in with on the remote system.
Requires that the remote system support the TELNET ENVIRON option.
-t Specifies terminal type.
Supported term types are vt100, vt52, ansi and vtnt only.
host Specifies the hostname or IP address of the remote computer
to connect to.
port Specifies a port number or service name.
-------------------------------------------------------------------------


From the help description, the telnet command can accept two parameter. The
first one is for host machine name, and the second one is for port. We
cannot add the colon between host and port and we cannot add the string
behind. The followings are the right order,

1. We first type "telnet" in the command line window and press Enter. So we
enter into a telnet session.
2. We then type "open 127.0.0.1 port" to connect to the server.
3. Once connected to the server, we can type anything to and press Enter to
send it.

I have a quick test in my side with a server created using codes in
http://bytes.com/groups/net-c/275416-c-mud-telnet-server. It works fine.

And I think the behavior here is also related to how you implement that
tcp/ip server.

Regards,
Colbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top