Shermans's Notes
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

macOS - Networking Notes

    List services

    networksetup -listallnetworkservices

    Disable ipv6

    networksetup -setv6off "USB 10/100/1G/2.5G LAN"

    Netstat like output

    1
    2
    3
    4
    
     macnst (){
    	 netstat -Watnlv | grep LISTEN | awk '{"ps -o comm= -p " $9 | getline procname;colred="\033[01;31m";colclr="\033[0m"; print colred "proto: " colclr $1 colred " | addr.port: " colclr $4 colred " | pid: " colclr $9 colred " | name: " colclr procname     ;  }' | column -t -s "|";
     141 
     }