Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

THANKS!!!!!! This works!

I have been amazed at how little information there is about this. Maybe I just don't know the right areas to look. But I tried google, reddit, stack, several LLMs[0] and never once did I come across ipconfig. Where should I be looking?

[0] Of course LLMs were just repeating the same stuff as reddit and SO and would continually forget that airplay got deprecated despite being in the prompt and me telling them multiple times after it suggested it over and over....



I use Windows, Mac, and Linux systems regularly, and frequently get ipconfig and ifconfig mixed up. So I was vaguely aware that both commands existed on macOS and your comment prompted me to try both to see if either exposed the SSID.


Makes sense. I'm mostly a Linux person myself, but strongly prefer a Mac laptop over a Windows laptop.

And for those that just want SSID, try either of these

  ipconfig getsummary en0 | grep -e '[^B]SSID' | cut -d " " -f5
  ipconfig getsummary en0 | grep -e '[^B]SSID' | sed -E 's/^.*: (.*)/\1/g'
Second will be better if your SSID has a space in it for some reason. You'll also be able to grab the domain name if you want it for similar reasons.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: