SMB "Operation timed out" on iPhone: causes and fixes
By Isaac Griffiths, developer of SMBDrop ·
You tap Connect in the Files app, the spinner turns for a long time, and then it gives up. Depending on the app and the iOS version you'll see "Operation timed out", "Connection timed out", or a generic "There was a problem connecting to the server". Other SMB apps report the same thing in their own words.
A timeout has a narrower meaning than most connection errors. The iPhone sent a request to the address you typed, on SMB's port 445, and nothing answered at all. A wrong password or a share the account can't see gets a reply, even if it's a refusal. So a timeout almost always means the request never reached a working SMB service. This guide goes through the reasons in the order they usually turn up.
Quick test: from a computer on the same Wi-Fi, try to open the same address (\\192.168.1.50 in Windows File Explorer, or smb://192.168.1.50 in Finder's Connect to Server). If that times out too, the problem is the server or the network, not the iPhone.
1. The address is wrong, or has changed
The most common cause is an IP address that no longer belongs to the server. Routers hand out addresses with DHCP, and after a power cut or a router swap the NAS can come back on a different one. A saved server in Files, or in any SMB app, keeps trying the old address and waits for a reply that never comes.
- Open your router's list of connected devices, or the NAS maker's finder tool, and check the server's current IPv4 address.
- Give the server a DHCP reservation (sometimes called a static lease) in the router, so it keeps that address.
- In Files, remove the old entry from Recent Servers and connect again with
smb://and the current address.
Use the IP address rather than a name while you troubleshoot. Names like diskstation or MYPC depend on name lookups that iPhones don't always manage, which is covered in the "Socket is not connected" guide.
2. The iPhone isn't on the same network
A home SMB server is only reachable from your home network. These all cause timeouts:
- Guest Wi-Fi. Most routers stop guest devices from reaching anything else on the network. Join the main network.
- Client or AP isolation. Some routers and mesh systems have an isolation setting that blocks Wi-Fi devices from talking to each other, even on the main network. Turn it off for your home network.
- Mobile data. If Wi-Fi has dropped and the iPhone has fallen back to 4G or 5G, a private address like
192.168.1.50goes nowhere. - A VPN on the iPhone. A full-tunnel VPN can send local traffic out through the VPN server. Turn it off at home, or allow local network access in the VPN app if it has that option.
The reverse applies when you're away from home: you need a private network such as Tailscale, and the address you use is the server's Tailscale address. See sending to your NAS over Tailscale. If Tailscale isn't connected on both ends, you'll get a timeout.
3. A firewall is silently dropping the connection
Firewalls can refuse a connection, which gives a quick error, or drop it without a word, which gives a timeout. If the server's firewall doesn't allow port 445 from your network, the iPhone waits until it gives up.
- Windows: the network profile must be Private, not Public, or Windows blocks file sharing. See the Windows shared folder guide.
- Synology: if the DSM firewall is on, it needs a rule allowing Windows file server (SMB) from your local network. The Synology SMB guide covers this and Auto Block.
- Linux: check
ufw statusor your firewalld zone, and allow 445/tcp from the local subnet. - Security software on a PC often has its own firewall that overrides Windows' settings.
On a Mac you can test the port directly with nc -vz 192.168.1.50 445. "succeeded" means something is listening and reachable. A long wait followed by a timeout means it's being dropped or the address is wrong.
4. The server is asleep, or its disks are spinning up
A NAS or PC that has gone to sleep can't answer. Some NAS models wake when a request arrives, but if the disks take several seconds to spin up the first connection attempt can time out before they're ready. The second attempt then works.
- Check the NAS's power schedule and deep-sleep settings. If it powers off overnight, it won't be there for an overnight backup.
- Disk hibernation is fine to keep, but if the first connection often times out, try a longer hibernation delay, or simply connect again once.
- For a Windows PC or a Mac used as the server, sleep settings matter. The Mac shared folder guide covers keeping a Mac awake enough.
5. SMB isn't running on the server
If the SMB service is off, nothing listens on 445. Depending on the server and its firewall, that can show up as a timeout or as an immediate refusal. Check the service is enabled in your NAS's file services settings, or on Linux run systemctl status smbd. On Windows, the Server service has to be running and file sharing turned on for the Private profile.
6. Timeouts part-way through a transfer
If you connect fine but a copy stalls and then times out, the cause is usually different:
- The iPhone locked and iOS suspended the app doing the copy.
- The phone moved between Wi-Fi access points, or briefly dropped to mobile data.
- A disk on the server went to sleep between files, or the server was busy with a scrub, rebuild or backup job.
Big copies that fail part-way has the fixes for these.
Checklist
- Same Wi-Fi as the server, not guest, no VPN, Wi-Fi actually connected.
- Current IP address, with a DHCP reservation so it stays put.
- Another device can open
smb://that address. - SMB service on, firewall allows 445 from your network.
- The server is awake. Try once more after the first timeout.
- Third-party apps: Local Network is allowed for the app in iOS Settings.
Where SMBDrop fits
Disclosure: I make SMBDrop. It uses the same network and the same server as the Files app, so it can't connect to a server the Files app can't reach.
What it can do is make the cause easier to see. You type the server's address once, and Test Connection checks the address, sign-in and share before you save. When a send fails after sign-in, it says what went wrong in plain words, and failed items wait in a retry queue rather than being lost, so a NAS that was asleep on the first try doesn't mean starting again. It doesn't scan your network for servers, so you still need the right IP address, and it needs a server that speaks SMB2 or SMB3.
FAQ
What does Operation timed out mean when connecting to SMB on iPhone?
The iPhone sent a connection request to the server's address on port 445 and got no reply at all. Usually the address is wrong or has changed, the iPhone is on a different network, a firewall is dropping the traffic, or the server is asleep.
Is Operation timed out a wrong password error?
No. A wrong password gets a reply from the server and a sign-in error. A timeout means the request never reached a working SMB service, so check the address, network, firewall and power settings first.
Why does connecting work on the second try?
Often because the NAS was asleep or its disks were spinning up. The first request woke it but timed out before it was ready; the second found it awake. Check the NAS's sleep and hibernation settings if it happens a lot.
Can I connect to my NAS over SMB from mobile data?
Not directly, and you shouldn't open port 445 to the internet. Use a private network such as Tailscale on both the iPhone and the NAS, and connect to the NAS's Tailscale address.
More guides
- iPhone Files app can't connect to server (smb://): every fix
- "Socket is not connected" on iPhone: fixing SMB connection errors
- Synology SMB not working from iPhone: DSM 7.2 settings to check
- How to send iPhone photos to your NAS over Tailscale, without opening ports
- Big copies from iPhone to a NAS fail part-way: why, and what to do
