Technical Anshu
Tutorials Blog
📱 Phone Access

Access Office File Server From Phone With VPN Never Expose SMB to the Internet

Inside the office Wi-Fi, your phone reaches the file server exactly like a PC does. Outside the office, the safe door is a VPN — any other door you build will eventually be found by the wrong people.

✍️ Technical Anshu📱 iOS / Android / VPN⏱️ 6 minute read
🎥 Full video — all 3 file server methods built and compared, step by step

Two different problems get mixed up under “files on my phone”. At the office, the phone is just another network client and SMB apps handle it in minutes. From home or the road, the phone must first join the office network securely — and that means a VPN, full stop. This page does the easy part properly and explains why the tempting shortcut is the most dangerous setting in small-office IT.

iPhone Files app — Connect to Server (example)
smb://FILESERVER User: the same server account as your PC Result: Accounts, Sales and Common appear like folders on the phone
✔ Works on office Wi-Fi with no extra software on iPhone (Files app is built in)
✔ From outside: start the VPN first, then the same address works
Example connection on the office network. Folder names match the ones your account is allowed to see — permissions apply on the phone too.
1

At the Office — SMB Apps Do the Job

On iPhone and iPad, the built-in Files app has Connect to Server: enter smb://FILESERVER, sign in with the same server account as the PC, and the permitted folders appear. On Android, solid file managers (the built-in one on many brands, or established apps like Solid Explorer or Cx File Explorer) add an SMB/LAN location the same way. Permissions behave exactly as on a PC — a phone logged in as a Read-group user can look but not delete, which is precisely what you want in a pocket-sized device.

2

From Outside — VPN First, Then Everything Works

A VPN makes the phone a temporary member of the office network, so the same smb://FILESERVER address simply works — from home, a client site, or a hotel. For small offices the practical choices are Tailscale (built on WireGuard, free for small teams at the time of writing, almost no configuration — install on the server and the phone, sign in, done) or a WireGuard/OpenVPN server on the office router where the hardware supports it. Either way the file server itself stays invisible to the internet; only the encrypted VPN door faces outward, protected by its own strong keys.

3

The Shortcut That Must Never Happen — Port 445

The internet is scanned continuously for open SMB ports, and an exposed file server is found within hours, not weeks. SMB has a long history of critical vulnerabilities, and even a fully patched server with a strong password faces endless automated login attempts and zero-day risk with your entire office data as the prize. Port forwarding 445 (or 139) to the file server, or switching on a router's "share over internet" feature for office data, converts your network into a target. No deadline justifies it — if files are needed outside, the VPN takes fifteen minutes to set up.

4

Phone Habits That Keep the Server Safe

Give phone access to people who need it, with their own accounts — never a shared "mobile" login whose password lives on six devices forever. When a phone is lost, disable that person's account or remove the device in your VPN admin page first and ask questions later. And set expectations: phones are for viewing, approving and quick edits; the heavy work stays on PCs, where backups and versions behave predictably. That is not bureaucracy — a phone auto-"cleaning" its downloads folder against a synced location is a real way offices lose files.

🔴 One rule, no exceptions: SMB ports 445 and 139 are never forwarded to the internet, for any method in this series — Windows, TrueNAS or router. Outside access = VPN. If someone suggests otherwise to “just make it work”, you now know more than they do.

🎥 Watch the Full Video

The video keeps the servers themselves LAN-based and shows the clients connecting — watch how the same folders appear on different devices.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Is Tailscale free for a small office?

Tailscale has offered a free tier covering small teams (a handful of users and more devices than a small office has) — check the current limits on their site before you standardise on it. WireGuard set up manually is completely free forever, at the cost of more configuration. Either is safe; the comparison is convenience, not security.

Why not just use Google Drive for outside access instead?

You can — as a deliberate hybrid, where one folder is cloud-synced for travel. The mistake is the accidental hybrid: the whole server exposed “temporarily”. Choose per folder, keep accounts data on the LAN-plus-VPN side, and never let a sync tool become an unmonitored second copy of everything.

The Files app asks for a password every time. Can I save it?

Yes — saved credentials in the phone's keychain are acceptable for your own device, because the phone itself is locked. What you should not do is save the office admin password on a staff phone; personal accounts only, so a lost phone means disabling one account, not re-keying the whole office.

This guide is based on the Technical Anshu file server video • Stuck on any step? Ask in the video comments — you will get a reply there 🙏