coiai Logo

This article is an English translation of the original Japanese post. Read the Japanese original →

How to Access Samba from an iPhone 【Using Only Built-In Apps】

November 7, 2024

Categories: Linux · Tags: Linux, NAS, Ubuntu, サーバー

I run a NAS built with Ubuntu Samba as a file server.

This time, here's how to access it from an iPhone.

On the Ubuntu Side: Check the Hostname

You can find your computer's hostname with the hostname command.
Make a note of it, since you'll need it later.

hostname

Opening the File

First, open the Files app on your iPhone.

Go to the Browse tab, then choose [Connect to Server] from the button in the top right.

Next you'll be taken to a screen for entering an address — this is where you use the hostname from earlier.

If the hostname command showed your computer's name as YOUR-COMPUTER, enter it like this.

smb://YOUR-COMPUTER.local

Once you've entered it, you'll be asked whether to connect as a registered user or as a guest — pick whichever suits your setup!

That should be all you need to connect!