Forums > MaxMSP

How to tell which ports are in use on a machine?

July 29, 2013 | 1:41 pm

Anybody know how to tell which ports are in use on a Mac? And on a PC? The goal is to avoid the ports in use when setting up communications via upd, etc..

Thanks!

Jeff


July 29, 2013 | 3:37 pm

Hi,

netstat is your friend:

$ netstat -p tcp

and

$ netstat -p udp

will list you the active TCP and UDP ports, respectively. For more info, have a look at

$ man netstat

HTH,
Ádám


July 30, 2013 | 6:37 am

Thanks, Ádám!

Jeff


Viewing 3 posts - 1 through 3 (of 3 total)