---

8 Practical Linux Netcat NC Command Examples

The netcat utility can be run in the server mode on a specified port listening for incoming connections.

$ nc -l 2389

Also, it can be used in client mode trying to connect on the port(2389) just opened

$ nc localhost 2389

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis