All Questions
20
questions
2
votes
1
answer
4k
views
netstat: illegal option -- o when using netstat -ano in MacOS
I want to list all PID with its state and foreign address.
But I got this error:
netstat: illegal option -- o
So how to do that in MacOS? It works on windows
1
vote
1
answer
897
views
netstat -r output, internet vs internet6, different gateway formats
What's the difference between internet and internet6 routes? I'm assuming internet6 stands for IPv6?
netstat -r
Internet:
Destination Gateway Flags Refs Use Netif ...
3
votes
1
answer
3k
views
UDP port appears in netstat but not in lsof?
After using Mosh, I noticed that UDP ports held by mosh-server were still in use after all processes exited.
Running netstat -ln, it shows that these ports are in use:
Active Internet connections
...
1
vote
1
answer
1k
views
How to find out the PID which generates traffics to port 9229 in MacBook
There are unknown traffics to port 9229 in my MacBook.
$ sudo tcpdump -i any -n port 9229
......
12:10:39.176502 IP6 ::1.62261 > ::1.9229: Flags [S], seq 638850191, win 65535, options [mss 16324,...
3
votes
0
answers
1k
views
How to monitor the unix socket statistics in OSX per-seconds
I can monitor a net-device in the OSX, like below
$ netstat -I eth0 -b 1 1000
input (Total) output
packets errs bytes packets errs bytes colls
...
1
vote
0
answers
199
views
Per-process network usage on OSX?
I want to periodically poll for per-process network usage. Is there a way to do this efficiently in OSX like netstat -p on Linux? I know there's lsof -i -Tqsf but it doesn't seem to show bytes sent/...
3
votes
1
answer
5k
views
OSX Yosemite - How to add route having two default gateways
I'm on OSX Yosemite and I have two different active connections...
- WIFI (en0)
- Tethering USB (en7)
SnakeBook:~ root# netstat -nr
Routing tables
Internet:
Destination Gateway ...
1
vote
1
answer
8k
views
Cannot connect to port 3306 on a remote MySQL server using MySQL Workbench in Mac OS X
I want to access MySQL remotely:
GRANT ALL ON *.* TO thufir@'192.168.0.16' IDENTIFIED BY 'hfdks4329vjkl';
When Workbench failed to connect, I took a look with ping and telnet:
Brents-MacBook:~ ...
0
votes
2
answers
2k
views
OS X - Static routes / non-standard default gateway for endpoints on *local subnet*
My question is: How can I reliably set up a static route in OS X, for 2 endpoints to pass via a gateway, where all machines are on the same subnet? I provide the context below:
For testing purposes,...
1
vote
1
answer
884
views
How can I connect to MongoDB on my Mac OSX from a process on a Vagrant/Virtualbox machine?
I can't use localhost because from my virtual machine's perspective localhost is the virtual machine itself and not the underlying host that it is running on. How can I connect to the host machine ...
6
votes
1
answer
7k
views
What's up with port 8080 on my OSX box?
I thought a web server process I brought up was listening on localhost:8080, and tried to connect to it, but kept getting connection reset errors. As it turns out, I was mistaken and my process was ...
0
votes
1
answer
95
views
How to know particular port status in osx
How can I find particular port status in osx?
I think with netstat, I can do it.
But even I read man netstat. I could not understand how to do it.
30
votes
8
answers
137k
views
How to use netstat to show what process is listening on a port
I'm on an OS X Mountain Lion laptop and have a couple of Vagrant boxes on it. I'm trying to figure out which process is listening on port 8080. My variations produce like a hundred lines but none with ...
1
vote
1
answer
8k
views
What does netstat -r on OSX tell you about gateways?
I noticed the route table has a lot of entries I do not understand.
The route tabel is:
Internet:
Destination Gateway Flags Refs Use Netif Expire
default ...
2
votes
3
answers
5k
views
Kill UDP port that has no process?
My VPN client sometimes can't bind to the UDP port (500) it uses. It seems to leave behind a "bind" to port 500 on a previous run, even though it has quit.
The port is reported as "already in ...