
To find your Mac’s IP address for local file sharing, open System Settings > Wi-Fi, click Details next to your connected network, and look for IP address. If your Mac uses Ethernet, go to System Settings > Network > Ethernet > Details instead.
You can then use that address to connect to a shared folder from another Mac or device on the same local network. A typical local IP address looks like 192.168.1.25 or 10.0.0.14.
Quick Answer
- Click the Apple menu in the top-left corner.
- Open System Settings.
- Select Wi-Fi or Network, depending on how your Mac connects.
- Click Details next to the active connection.
- Find the IP address listed under the connection details.
- Use it in a network address such as
smb://192.168.1.25when connecting to a shared folder.
Your Mac must be connected to the same local network as the computer or device trying to access its files. The IP address can change later, especially after reconnecting to Wi-Fi or restarting your router.
Find Your IP Address in System Settings
System Settings is the easiest method for most Mac users. The exact location depends on whether your Mac connects through Wi-Fi or Ethernet.
Find the IP address over Wi-Fi
- Click the Apple menu in the top-left corner of the screen.
- Select System Settings.
- Click Wi-Fi in the sidebar.
- Confirm that Wi-Fi is turned on and that your Mac is connected to the correct network.
- Click Details next to the connected network.
- Look for IP address in the information shown.
Write down the complete address, including every number and period. For example:
192.168.1.25
Do not copy the router’s address, DNS server address, or IPv6 address unless you specifically need one of those. For ordinary local file sharing, the IPv4 address shown in the connection details is usually the most convenient option.
Find the IP address over Ethernet
If your Mac is connected to a router or network switch with an Ethernet cable:
- Open the Apple menu and select System Settings.
- Click Network in the sidebar.
- Select Ethernet.
- Click Details next to the active Ethernet connection.
- Find the IP address in the connection information.
If Ethernet does not appear, your adapter may not be connected or recognized. Check the cable, hub, or adapter, then return to System Settings > Network.
Find the IP Address with System Information
You can also view network details in the System Information app. This is useful when you want to inspect the network interface directly or when the usual connection screen does not show the information clearly.
- Hold the Option key and click the Apple menu.
- Select System Information.
- In the sidebar, expand Network.
- Select Wi-Fi or Ethernet, depending on your connection.
- Review the network details for the active interface.
The information may be more technical than what appears in System Settings. Look for an IPv4 address assigned to the interface you are currently using.
Find Your IP Address in Terminal
Terminal provides a quick alternative and can be useful when troubleshooting a connection.
- Open Finder.
- Select Applications in the sidebar.
- Open the Utilities folder.
- Double-click Terminal.
- Enter the following command:
ipconfig getifaddr en0
Press Return. If your Mac is using the interface represented by en0, Terminal displays its IPv4 address, such as:
192.168.1.25
On some Macs, Wi-Fi may use a different interface identifier. To inspect all network interfaces, enter:
ifconfig
Find the active interface and look for a line beginning with inet, followed by an IPv4 address. Ignore 127.0.0.1, which is the Mac’s loopback address and is not usable by other devices on your network.
Terminal commands in this section only display network information. They do not change your Mac’s settings, so no reversal is necessary.
Use the IP Address to Connect to a Shared Folder
Finding the address is only one part of local file sharing. The Mac hosting the files must also have file sharing enabled, and the other device must have permission to connect.
On the Mac that contains the files:
- Open System Settings.
- Select General.
- Click Sharing.
- Turn on File Sharing.
- Configure the folders and users who can access them.
For a detailed walkthrough of the sharing process, see How to Share Files Between Two Macs.
Connect from another Mac
On the other Mac:
- Open Finder.
- Select Go > Connect to Server from the menu bar.
- Enter the address in this format:
smb://IP-address
For example:
smb://192.168.1.25
- Click Connect.
- Sign in with an account authorized to access the shared folder.
- Select the shared folder or volume when prompted.
You can also include a specific shared folder name:
smb://192.168.1.25/SharedFolder
Replace the example address and folder name with the values used on your network. If you are connecting to a NAS or another file server, the same SMB format may work.
Check Whether the Address Is Reachable
If another device cannot connect, test whether it can reach the Mac on the network.
From another Mac, open Terminal and run:
ping 192.168.1.25
Replace 192.168.1.25 with the Mac’s current IP address. You should see replies if the device can reach the Mac. Press Control- C to stop the test.
The ping test does not prove that file sharing is configured correctly. It only checks basic network reachability. A successful ping with a failed SMB connection usually points to file-sharing permissions, the shared folder configuration, or a firewall setting.
Why Your Mac’s IP Address May Change
Most home and office networks assign IP addresses automatically using DHCP. This means your router may give your Mac a different local address after:
- Restarting the Mac
- Restarting the router
- Disconnecting and reconnecting to Wi-Fi
- Moving between networks
- Letting a DHCP lease expire
- Switching between Wi-Fi and Ethernet
If a saved connection stops working, check the Mac’s current address before troubleshooting further.
For frequent file sharing, consider connecting by the Mac’s local hostname instead of manually entering its changing IP address. In Finder’s Connect to Server window, you may be able to use a hostname in a format such as:
smb://Mac-Name.local
The exact name depends on your Mac’s sharing and network settings. If hostname connections are unreliable, use the current IP address or configure a DHCP reservation on your router. A DHCP reservation keeps the Mac using the same local address without manually assigning a fixed address on the Mac.
Troubleshooting IP Addresses and File Sharing
The IP address is missing
If no address appears in Wi-Fi or Ethernet details:
- Confirm that the connection is turned on.
- Make sure the Mac is connected to a network, not just detecting nearby networks.
- Disconnect and reconnect to Wi-Fi.
- Unplug and reconnect the Ethernet cable or adapter.
- Restart the router if other devices also cannot connect.
A Mac that is not connected to a network cannot receive a usable local IP address.
The other Mac cannot connect
Check these items:
- Both devices are connected to the same local network.
- The host Mac has File Sharing turned on.
- The shared folder is listed in the file-sharing settings.
- Your user account has permission to access the folder.
- You are using the current IP address.
- You entered the address with the
smb://prefix. - The host Mac is awake and connected.
If the issue is specifically a permissions error, see How to Fix Permission Denied Errors on a Shared Folder on a Mac.
You see a public or external IP address
A local file-sharing connection should normally use a private address such as:
192.168.x.x10.x.x.x172.16.x.xthrough172.31.x.x
An address shown by a website that displays your internet connection is your public IP address. That is not the address normally used to connect to a Mac inside your home or office network. Do not expose file sharing to the internet just to use a public address. Remote access requires a separate, carefully configured solution.
File sharing works on one network but not another
Many guest Wi-Fi networks isolate connected devices from one another. In that situation, your Mac may have an IP address, but other devices on the guest network may be prevented from reaching it.
Switch both devices to the main trusted network, or ask the network administrator whether device-to-device communication is allowed.
You have more than one IP address
A Mac can have multiple network interfaces, including Wi-Fi, Ethernet, a VPN, virtual network adapters, and other connections. Choose the address belonging to the interface that connects both devices to the same local network.
For example, if the other Mac is connected through the same Wi-Fi network, use the Wi-Fi address—not a VPN address or an inactive Ethernet address.
The connection is refused or times out
A timeout can indicate that the devices cannot reach each other. A refusal or authentication prompt may instead indicate that the Mac is reachable but file sharing is not configured correctly.
Verify the following:
- File Sharing is enabled on the host Mac.
- The correct folder is shared.
- Your account is permitted to access it.
- The address is current.
- Any VPN is temporarily disconnected for testing.
- Network security software or firewall rules are not blocking local sharing.
If you change firewall or security settings, record the original setting first. Avoid disabling security features permanently; restore them after testing.
IP Address Versus Mac Name
An IP address identifies the Mac’s network connection numerically. A Mac name is easier to remember, but it may not work on every network.
Use the IP address when:
- You need a direct, quick connection.
- Name-based discovery does not show the Mac.
- You are troubleshooting a sharing problem.
- You know both devices are on the same network.
Use the Mac’s name when:
- The address changes frequently.
- You want a more memorable connection.
- Your network supports local hostname discovery.
Neither method replaces file-sharing permissions. The destination Mac still needs to share a folder and authorize your account.
Frequently Asked Questions
Is my Mac’s IP address the same as its Wi-Fi password?
No. The IP address identifies your Mac on the local network. The Wi-Fi password authenticates your Mac to the wireless network. You may need the password to join the network, but you use the IP address to locate the Mac for local connections.
Should I use IPv4 or IPv6 for local file sharing?
IPv4 is usually the simplest choice because it is commonly displayed in a familiar format such as 192.168.1.25 and works with the standard SMB address format. IPv6 can also support local connections, but it uses a more complex address format and may require different syntax.
Can I use my Mac’s IP address from outside my home?
Not normally. A local IP address works within the local network. Accessing files remotely requires a separate secure remote-access method. Do not expose Mac file sharing directly to the public internet.
Will the IP address stay the same?
Not necessarily. Automatically assigned addresses can change. Check the current address when a connection stops working, or configure a DHCP reservation on your router if you need a consistent address.
Can I find the IP address without Terminal?
Yes. Open System Settings, select Wi-Fi or Network, and open the details for the active connection. Terminal is optional.
Final Thoughts
For most Mac users, the quickest path is System Settings > Wi-Fi > Details, followed by the listed IP address. Use that address with an smb:// connection from another Mac, and make sure File Sharing and folder permissions are configured on the host Mac. If the connection fails later, check the current IP address first because your router may have assigned a new one.