#networksetup

25 solutions

Turn Wi-Fi On or Off with networksetup
macOSnetworknetworksetupWi-Fi

networksetup -setairportpower switches the Wi-Fi hardware on or off, the same toggle the Wi-Fi menu performs.

Low risk ✓ 2026-09-18
Join a Wi-Fi Network from the Terminal
macOSnetworknetworksetupWi-Fi

Use networksetup -setairportnetwork to connect your Mac to a Wi-Fi network by name and password without touching the Wi-Fi menu.

Low risk ✓ 2026-09-18
Forget a Wi-Fi Network with networksetup
macOSnetworksetupWi-Fi

List every Wi-Fi network the Mac remembers and delete one so it never auto-joins again.

Medium risk ✓ 2026-09-18
Turn Off IPv6 on a Network Service
macOSnetworknetworksetupipv6

Disable IPv6 on Wi-Fi or Ethernet with networksetup -setv6off when IPv6 causes connection problems.

Medium risk ✓ 2026-09-18
Show a Network Service's IP and Router with networksetup
macOSnetworknetworksetupWi-Fi

networksetup -getinfo summarizes a named network service: IP, subnet mask, router, and configured DNS.

Low risk ✓ 2026-09-18
Set a Static IP Address with networksetup -setmanual
macOSconfigurationnetworksetupip

Persistently configure a manual IPv4 address, netmask and gateway for a macOS network service.

Medium risk ✓ 2026-09-17
Show the Current Wi-Fi Network Name
macOSnetworknetworksetupWi-Fi

networksetup -getairportnetwork prints the SSID the Wi-Fi interface is associated with, right now.

Low risk ✓ 2026-09-18
Set DNS Servers per Network Service with networksetup
macOSconfigurationnetworksetupDNS

Use networksetup -setdnsservers to set, inspect, or reset DNS servers for any macOS network service.

Low risk ✓ 2026-09-17
Check Which DNS Servers Your Mac Uses
macOSnetworknetworksetupDNS

Read the configured DNS servers for Wi-Fi or Ethernet with networksetup -getdnsservers.

Low risk ✓ 2026-09-18
Show IP, Router and DNS for a Network Service
macOSnetworknetworksetupip

Use networksetup -getinfo to print the full current configuration (IP, subnet, router, DNS) of Wi-Fi or Ethernet.

Low risk ✓ 2026-09-18
Set or Clear an HTTP Web Proxy
macOSnetworkproxynetworksetup

Configure the macOS web (HTTP) proxy for a network service from the terminal with networksetup -setwebproxy.

Medium risk ✓ 2026-09-18
Find Your Mac's Wi-Fi MAC Address
macOShardwarenetworknetworksetup

Print the hardware (MAC) address of a network service's interface with networksetup -getmacaddress.

Low risk ✓ 2026-09-18