Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm playing with a program on desktop. It's listening on port 5060.

However, I don't have anything sending to this location/host.

If I open my laptop's command line, is there a way to send a simple message to my desktop's ipaddress, on port 5060?

This is basically a simply chat program, for those asking what's going on. I'm sure there's more to understand about ports and sockets. So I'm positive there's some limitations to my simplicity.

share|improve this question

migrated from Dec 2 '12 at 11:33

This question came from our site for professional and enthusiast programmers.

This is TCP, right? If UDP, that changes the answer a bit. – selbie Dec 2 '12 at 7:42

You can try using telnet ipaddress port.

share|improve this answer
telnet client can be installed from Windows Control Panel->Programs&Features->Turn Windows Features or of off->Telnet client – selbie Dec 2 '12 at 7:41
They stopped to install it by default? Curses! – Matteo Italia Dec 2 '12 at 12:44

There is a netcat for windows ( Also I think ncat from the nmap project will do what you want.

share|improve this answer

For this type of testing, you probably want to locate and build the source code of a classic open source tool called netcat.

share|improve this answer

you can check its port number with this in cmd:

netstat -np | find "port #"

example: netstat -np TCP | find "5060"

share|improve this answer
Welcome to Superuser this doesn't answer the question of how to send a message over a port, this only explains how to use netstat – 50-3 Nov 14 '13 at 3:23
Hello and welcome to Your answer does not answer the posters question but instead explains the use of netstat as @50-3 wrote. The answer fields should be used to answer specific questions with specific solutions. – Mogget Nov 14 '13 at 7:11
Oh are right – user2962705 Dec 6 '13 at 17:13

You must log in to answer this question.