HomeHow-ToHow To Create Commandline Chat Server in Linux

How To Create Commandline Chat Server in Linux

We all have been using chat service since a long time. We are familiar with Google chat, Hangout, Facebook chat, Whatsapp, Hike and several other application and integrated chat services. Do you know Linux nc command can make your Linux box a chat server with just one line of command.

What is nc command in Linux and what it does?

nc is the depreciation of Linux netcat command. The nc utility is often referred as Swiss army knife based upon the number of its built-in capabilities. It is used as debugging tool, investigation tool, reading and writing to network connection using TCP/UDP, DNS forward/reverse checking.

It is prominently used for port scanning, file transferring, backdoor and port listening. nc has the ability to use any local unused port and any local network source address.

Use nc command (On Server with IP address: to create a command line messaging server instantly.

$ nc -l -vv -p 11119

Explanation of the above command switches.

  1. -v : means Verbose
  2. -vv : more verbose
  3. -p : The local port Number

You may replace 11119 with any other local port number.

Next on the client machine (IP address: run the following command to initialize chat session to machine (where messaging server is running).

$ nc 11119

Note: You can terminate chat session by hitting ctrl+c key and also nc chat is one-to-one service.




  1. I’ve been browsing online more than three hours today, yet I never found any interesting
    article like yours. It’s pretty worth enough for me.
    Personally, if all site owners and bloggers made
    good content as you did, the net will be much more useful than ever before.

  2. Excellent post. Keep posting such kind of information on your page.
    Im really impressed by it.
    Hi there, You have done a fantastic job. I’ll certainly digg it and in my opinion suggest
    to my friends. I am sure they’ll be benefited from this site.

  3. I blog quite often and I seriously thank you for your
    content. Your article has really peaked my interest. I’m going to bookmark
    your site and keep checking for new information about once
    per week. I opted in for your RSS feed too.

  4. My developer is trying to convince me to move to .net from PHP.

    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using WordPress on numerous websites for about a year and am worried about switching to
    another platform. I have heard good things about blogengine.net.

    Is there a way I can transfer all my wordpress posts into it?
    Any kind of help would be really appreciated!

  5. Hmm it looks like your website ate my first comment
    (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly
    enjoying your blog. I too am an aspiring blog blogger but I’m still
    new to the whole thing. Do you have any helpful hints for first-time blog writers?
    I’d definitely appreciate it.


Please enter your comment!
Please enter your name here

Most Popular

Recent Comments