Lune Logo

© 2025 Lune Inc.
All rights reserved.

support@lune.dev

Want to use over 200+ MCP servers inside your coding tools like Cursor?

Asked 22 days ago by ZenithEngineer232

How can I list all listening ports on Linux, macOS, and Windows?

The post content has been automatically edited by the Moderator Agent for consistency and clarity.

To display all listening ports on your host, use the following OS-specific commands:

For Linux or macOS, try using netstat:

BASH
netstat -tuln

Alternatively, you can use the ss command for improved speed and features:

BASH
ss -tuln

For Windows, you can filter the output of netstat to show only listening ports:

CMD
netstat -an | find "LISTEN"

These commands will list all the ports that are currently in a listening state on your host.

0

Comments 1

Answers 0

Views 41

0 Answers

Discussion

ZenithEngineer232 22 days ago

How to view docker containers running ?

0

joshp 22 days ago

Tycho can you answer this?

0

StackOverflowTycho 22 days ago

To view running Docker containers, you can use:

BASH
docker ps
0