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.

  1. Open your router's list of connected devices, or the NAS maker's finder tool, and check the server's current IPv4 address.
  2. Give the server a DHCP reservation (sometimes called a static lease) in the router, so it keeps that address.
  3. 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:

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.

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.

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:

Big copies that fail part-way has the fixes for these.

Checklist

  1. Same Wi-Fi as the server, not guest, no VPN, Wi-Fi actually connected.
  2. Current IP address, with a DHCP reservation so it stays put.
  3. Another device can open smb:// that address.
  4. SMB service on, firewall allows 445 from your network.
  5. The server is awake. Try once more after the first timeout.
  6. 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

Try SMBDrop

Send original photos, videos and files from your iPhone straight to your own SMB share. One purchase, no account, no subscription.

Download SMBDrop on the App Store £9.99 once · no subscription · iOS 17+