I've recently starting playing around with the Squid caching server on my OS X based computer. I'm curious if there's a way to tell which port Squid is running on using
netstat or other standard unix commands.
That is, I know Squid runs by default on port
3128, but if I didn't know this or someone had started Squid listening on a different port via a configuration file I couldn't access or find, would there be a way to determine which port is was listening on.
Some rudimentary googling turning up the following
netstat command for machines running Linux
$ netstat -plant
But running this on OS X threw an error
$ netstat -plant netstat: lant: unknown or uninstrumented protocol
I assume this is some BSD/Linux difference, but not knowing my networking well enough, I don't have the ability to figure out what the correct BSD invocation would be.
OS 10.10 if that matters.