Introduction
Proper network configuration is the foundation for stable macOS operation on the internet and local network. This guide covers all key aspects: connecting to Wi-Fi and Ethernet, configuring DNS for fast name resolution, managing the firewall for security, and troubleshooting problems. You'll gain full control over your Mac's network settings and be able to solve most connection issues on your own.
Prerequisites
Before you begin, ensure you have:
- A Mac with macOS 12 (Monterey) or newer (the interface may differ slightly in older versions).
- Network access: either a Wi-Fi router with the network name and password, or an Ethernet cable and a free port on the router/modem.
- An administrator password to modify system settings (DNS, firewall, static IP).
- Basic understanding of the connection type you want to set up (wireless/wired, dynamic/static IP).
Step-by-Step Instructions
Step 1: Open Network Settings
All network settings are centralized in System Settings.
- Click the Apple logo () in the top-left corner of the screen.
- Select System Settings (or use Spotlight:
Cmd+Space, type "Network"). - In the settings window, find and click Network (in macOS 12+). In older versions, it may be "Network & Internet."
You'll see a list of network interfaces on the left (Wi-Fi, Ethernet, Thunderbolt Ethernet, etc.) and their current status on the right.
💡 Tip: For quick access to network settings, add its icon to the menu bar. In the Network window, check the box next to "Show network status in menu bar".
Step 2: Configure Wi-Fi Connection
If you're using a wireless network:
- In the list of interfaces on the left, select Wi-Fi.
- Ensure the "Turn Wi-Fi On" toggle is active (green).
- Click "Join Network..." and select your network (SSID) from the list.
- Enter the password (if the network is secured) and click "Join."
Additional Wi-Fi Settings
To configure a static IP, DNS, or proxy:
- In the Wi-Fi window, click the "Advanced..." button in the lower-right.
- TCP/IP tab:
- "Using DHCP" — automatically obtain an IP (recommended for most home networks).
- "Manually" — assign a static IP address, subnet mask, and router (gateway). Obtain these details from your network administrator.
- DNS tab:
- Click "+" under the DNS server list.
- Enter the IP address of the DNS server (e.g.,
8.8.8.8for Google DNS or1.1.1.1for Cloudflare). - To remove a server, select it and click "-".
- Proxies tab:
- Enable the toggles for SOCKS and HTTP proxy if your provider or corporate network requires a proxy server.
- Enter the proxy address and port.
- 802.1X tab — for corporate networks with authentication (usually not required at home).
- Click "OK", then "Apply".
Step 3: Configure Wired Connection (Ethernet)
For a cable connection:
- In the list of interfaces, select Ethernet (or "Thunderbolt Ethernet" if using an adapter).
- Ensure the cable is connected to your Mac and the router/modem. The toggle should be green.
- Usually, DHCP configuration works automatically — the IP address, subnet mask, and gateway will fill in automatically.
- If a static IP is required, click "Advanced..." and go to the TCP/IP tab.
- Select "Manually" and enter:
- IP Address (e.g.,
192.168.1.100) - Subnet Mask (usually
255.255.255.0) - Router (gateway, usually
192.168.1.1)
- IP Address (e.g.,
- Configure DNS and proxy similarly to Wi-Fi (tabs in the same "Advanced" window).
- Click "OK", then "Apply".
Step 4: Change DNS Servers
DNS servers convert domain names (e.g., google.com) into IP addresses. Using fast public DNS can speed up website loading.
- In the settings of your selected interface (Wi-Fi or Ethernet), click "Advanced...".
- Go to the DNS tab.
- Click "+" at the bottom of the list.
- Enter the IP address of the DNS server. Popular options:
- Google DNS:
8.8.8.8and8.8.4.4 - Cloudflare:
1.1.1.1and1.0.0.1 - OpenDNS:
208.67.222.222and208.67.220.220
- Google DNS:
- To remove an unnecessary server, select it in the list and click "-".
- Click "OK", then "Apply".
# Check DNS functionality in Terminal
nslookup google.com
# Should return Google server's IP address
Step 5: Configure the Firewall
The firewall protects your Mac from unauthorized incoming connections from the network.
- Open System Settings → Security & Privacy.
- Go to the Firewall tab.
- Click the lock icon at the bottom-left and enter your administrator password to make changes.
- Enable the firewall by turning the toggle on (green).
- Click "Firewall Options...".
- Here you can:
- "Automatically allow signed Apple software" — allow incoming connections for signed Apple apps.
- "Enable stealth mode" — your Mac won't respond to network discovery requests (e.g., from other computers).
- Add specific applications to the allowed/blocked list (using "+" and "-" buttons).
- Click "OK".
Step 6: Verify the Connection
After configuration, ensure everything works:
- Browser: open any website (e.g.,
google.com). If the page loads, you have an internet connection. - Terminal (
Applications → Utilities → Terminal):- Check IP address:
For Wi-Fi, look for interfaceifconfig | grep "inet "en0(oren1), for Ethernet —en3, etc. - Check host availability (ping):
If you see responses (e.g.,ping -c 4 google.com64 bytes from ...), the connection is working. - Check DNS:
Should return Apple server's IP address.nslookup apple.com
- Check IP address:
- Menu bar: the network icon (Wi-Fi symbol or two computers) should be active (not gray).
If the interface is inactive, in Network settings click the "Stop" button (circle with a dot), then "Apply" — this will restart the interface.
Common Issues
Wi-Fi Won't Connect
- Incorrect password: ensure you're entering the correct password (case-sensitive). Remove the network from the known list (in Wi-Fi settings, select the network → "Forget This Network") and reconnect.
- Router issues: restart the router and your Mac.
- Hidden network: in Wi-Fi settings, click "Other..." and manually enter the exact network name (SSID).
No Internet, but IP Address Exists
- DNS issues: check which DNS servers are configured (Step 4). Try using public DNS (Google or Cloudflare).
- Firewall: temporarily disable the firewall (in "Security & Privacy" settings) and check if internet appears.
- Proxy: in network settings (Proxies tab), ensure options are disabled if you're not using a proxy.
Ethernet Not Working
- Cable: check that the cable is firmly plugged into both the Mac and the router. Try a different cable or router port.
- Static IP: if setting manually, ensure the IP address doesn't conflict with other devices on the network (e.g., don't use
192.168.1.1if that's the router's address). - DHCP: try switching to "Using DHCP" and click "Apply."
Settings Changes Not Applying
- After clicking "Apply", wait until the interface status changes to "Connected" (green icon).
- If the interface is "Stopped," click the "Start" button (triangle) or click "Apply" again.
- As a last resort, restart your Mac — this will restart all network services.