Netcat is a versatile networking utility for reading from and writing to TCP/UDP connections.
Common Operations
# Connect to a TCP port
nc hostname port
# Listen on a TCP port
nc -l -p port
# Scan ports
nc -zv hostname port-range
# Transfer a file (receiver)
nc -l -p port > file
# Transfer a file (sender)
nc hostname port < file
# UDP connection
nc -u hostname port
1---2name: quickstart-223description: nc (Netcat) Quickstart4---5# nc (Netcat) Quickstart67Netcat is a versatile networking utility for reading from and writing to TCP/UDP connections.89## Common Operations1011```bash12# Connect to a TCP port13nc hostname port1415# Listen on a TCP port16nc -l -p port1718# Scan ports19nc -zv hostname port-range2021# Transfer a file (receiver)22nc -l -p port > file2324# Transfer a file (sender)25nc hostname port < file2627# UDP connection28nc -u hostname port29```
Run npx skillmds@latest add javimosch/quickstart-22 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
nc (Netcat) Quickstart It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
javimosch (@javimosch) published this skill. Their other Agent Skills are listed on their SkillMD profile.