DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeNetworkingPort Scan Command Builder

Example: Port Scan Command Builder

A worked example, rendered from real sample data. Sign in to run the tool on your own input.

Input
scanme.nmap.org
22,80,443,3306,5432,6379,8080
Output
═══ What this tool did ═══
✗ No packets were sent and no port was probed. This page runs offline and makes no outbound network calls. — it cannot scan anything.
ℹ It builds the exact nmap / nc / PowerShell commands for you to run, and explains every well-known port in the range you gave.
⚠ Scan only hosts you own or have written authorisation to test. Unauthorised port scanning is a criminal offence in many jurisdictions.

═══ Target ═══
Host: scanme.nmap.org
Ports requested: 22,80,443,3306,5432,6379,8080
Ports in range: 7
Known services in that range: 7

═══ Commands to run ═══
  nmap -Pn -p 22,80,443,3306,5432,6379,8080 scanme.nmap.org
  nmap -Pn -sV -p 22,80,443,3306,5432,6379,8080 scanme.nmap.org              identify the service behind each open port
  nmap -Pn --top-ports 100 scanme.nmap.org              the 100 ports that are open most often
  nmap -Pn -p 22,80,443,3306,5432,6379,8080 -oG - scanme.nmap.org            greppable output for scripting
  nc -zv -w2 scanme.nmap.org 22 80 443 3306 5432 6379 8080   quick netcat sweep, no install needed
  for p in 22 80 443 3306 5432 6379 8080; do (echo > /dev/tcp/scanme.nmap.org/$p) >/dev/null 2>&1 && echo "$p open"; done   pure bash
  Test-NetConnection -ComputerName scanme.nmap.org -Port 443      PowerShell
  ss -lntup                                    what is listening on THIS machine, no scan needed
ℹ Paste the output of any of these back into this box and every port will be annotated with its service and risk.

═══ Well-known ports in 22,80,443,3306,5432,6379,8080 (7 shown) ═══
⚠ 22/TCP SSH: Secure Shell — encrypted re
…

About Port Scan Command Builder

Port Scan Command Builder preview - Networking tool

Build nmap/nc/PowerShell scan commands for a host and port range, and annotate scanner output you paste back (nothing is scanned here). Part of the DevTools Surf developer suite. Browse more tools in the Networking collection.

Use Cases

  • Identify accidentally exposed database ports (3306, 5432) in development environments.
  • Verify that a firewall rule correctly blocks specified ports before production deployment.
  • Check which services are running on a new VPS before hardening it.
  • Simulate scanning results to understand what an attacker would see from the internet.

Tips

  • Check common application ports (80, 443, 22, 3306, 5432) first before broad scans to quickly identify exposed services.
  • Run scans from both inside and outside the network — a port may be blocked externally but open internally, revealing lateral movement risks.
  • Document every open port with its expected service — unexplained open ports are a red flag.

Fun Facts

  • Nmap (Network Mapper), the most widely used port scanner, was released by Gordon 'Fyodor' Lyon in 1997 and appeared in multiple Hollywood films including The Matrix Reloaded (2003).
  • There are 65,535 TCP and 65,535 UDP ports per IP address — a full scan of all ports takes 2–5 minutes with optimized tools.
  • Port 0 is technically reserved and should never be in use, but receiving traffic on port 0 often indicates a network scanning or OS fingerprinting attempt.

FAQ

Is port scanning legal?
Scanning your own systems is legal. Scanning third-party systems without authorization violates the Computer Fraud and Abuse Act in the US and equivalent laws globally. This tool simulates scanning behavior locally.
What's the difference between TCP and UDP scanning?
TCP scanning completes a handshake (or attempts one) to confirm port state. UDP is connectionless — detecting open UDP ports requires sending application-layer packets and analyzing responses, making it slower and less reliable.

Related Networking Tools

IP Address LookupHTTP Status ReferenceDNS Record ExplainerWebSocket Frame DecoderPort Reference LookupMIME Type LookupCertificate DecoderHPKP Generator
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback