OSMC/MacOS X. SMB file sharing. Connection timeout

Hi to all! I am using a Raspberry Pi 3 with OSMC. I want to share my folder from OS X (10.12) via SMB. I turned on file sharing in System Preferences with all privileges (look at screenshot). But in OSMC I got an error “Connection timeout”. In settings of SMB source on OSMC I typed login and password of my mac and IP from my router. Please help me!
Sorry for my english, hello from Russia :smile:



To get a better understanding of the problem you are experiencing we need more information, including logs from you. Our wiki contains detailed steps for providing the relevant info we need to help you.

https://osmc.tv/wiki/general/how-to-submit-a-useful-support-request

Please see logs:

ERROR: SMBDirectory->GetDirectory: Unable to open directory : ‘smb://alexeich/’
unix_err:‘6e’ error : ‘Connection timed out’
14:08:40 54696.808594 T:1956639664 ERROR: GetDirectory - Error getting smb://alexeich/
14:08:40 54696.808594 T:1956639664 ERROR: CGUIDialogFileBrowser::GetDirectory(smb://alexeich/) failed

In file sharing I added folders Music and Torrents who located in “FILES” disk partition

ERROR: SMBDirectory->GetDirectory: Unable to open directory : ‘smb://USERNAME:PASSWORD@alexeich/FILES’
unix_err:‘6e’ error : ‘Connection timed out’
14:59:43 210.360687 T:1957221296 ERROR: GetDirectory - Error getting smb://USERNAME:PASSWORD@alexeich:445/FILES/
14:59:43 210.360947 T:1957221296 ERROR: CGUIDialogFileBrowser::GetDirectory(smb://USERNAME:PASSWORD@alexeich:445/FILES/) failed

But I am typed username and password of my computer, see screenshot

Connection timeout means server not reachable.

  1. Check DNS resolution of alexeich from OSMC
  2. Try manual access of SMB server from command line

Try replacing smb://alexeich/ with smb://192.168.1.116/

1 Like

Not working.

Default Gateway - 192.168.1.1, Primary DNS - 192.168.1.1, Secondary DNS - empty

From my router:

So what does ping alexeich gives you?

osmc@osmc:~$ ping alexeich
PING alexeich (192.168.1.116): 56 data bytes
64 bytes from 192.168.1.116: seq=0 ttl=64 time=2.190 ms
64 bytes from 192.168.1.116: seq=1 ttl=64 time=5.045 ms
64 bytes from 192.168.1.116: seq=2 ttl=64 time=5.108 ms
64 bytes from 192.168.1.116: seq=3 ttl=64 time=7.908 ms
64 bytes from 192.168.1.116: seq=4 ttl=64 time=14.643 ms
64 bytes from 192.168.1.116: seq=5 ttl=64 time=5.663 ms
64 bytes from 192.168.1.116: seq=6 ttl=64 time=8.892 ms
64 bytes from 192.168.1.116: seq=7 ttl=64 time=10.587 ms
64 bytes from 192.168.1.116: seq=8 ttl=64 time=6.458 ms
64 bytes from 192.168.1.116: seq=9 ttl=64 time=161.392 ms
64 bytes from 192.168.1.116: seq=10 ttl=64 time=6.018 ms

sudo apt-get install nmap
sudo nmap alexreich

1 Like

You are using 192.168.1.xxx addresses and yet your DNS in your router config is pointing to 192.168.0.100 and 192.168.0.1. These are on a different subnet and will not be reachable unless you have a route configured to point there.

Please also post the outputs of the following commands run on your OSMC box:

ping -c3 192.168.1.116
route
sudo apt-get update && sudo apt-get install nmap
nmap 192.168.1.116

That should tell us firstly if you can reach your samba server over the network, secondly if you have routes specified for your off-net DNS servers and lastly if your samba server is actually presenting as a samba server.

@fzinken you type so quickly!

Don’t be confused, that seems to be his WAN side

One would normally expect to see publicslly routable IPs on the WAN side, or at least ones in the same subnet as the default gateway. It seems there are three private networks in play here.

osmc@osmc:~$ ping -c3 192.168.1.116
PING 192.168.1.116 (192.168.1.116): 56 data bytes
64 bytes from 192.168.1.116: seq=0 ttl=64 time=5.347 ms
64 bytes from 192.168.1.116: seq=1 ttl=64 time=5.494 ms
64 bytes from 192.168.1.116: seq=2 ttl=64 time=5.058 ms

— 192.168.1.116 ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 5.058/5.299/5.494 ms

osmc@osmc:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default DD-WRT 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
DD-WRT * 255.255.255.255 UH 0 0 0 wlan0

$ nmap 192.168.1.116

Starting Nmap 6.47 ( http://nmap.org ) at 2016-11-14 19:20 MSK
Nmap scan report for alexeich (192.168.1.116)
Host is up (0.0021s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
88/tcp open kerberos-sec
445/tcp open microsoft-ds
548/tcp open afp

Nmap done: 1 IP address (1 host up) scanned in 6.98 seconds

Ok, so you can resove the name alexeich from the OSMC box and you can ping it and alexeich has the appropriate port (445) open. I think it should also have 139 open too, but that may be legacy now.

Can you check on the MacOS machine that the firewall is disabled and that shares are permitted to any machine on the local network?

It seems that OSMC (as the client) is doing everything it should but your Mac is not responding properly.

Firewall is disable. Share folders with all privileges (in System Preferences - Sharing)

Can you connect to the shares on your Mac from any other machine?

I am having only one macbook. What can I do? My macbook connected via ethernet. My DNS in router settings are need for my Internet provider. And omg - I forgot copy DNS from router to Ethernet settings in System Preferences - maybe is this problem?

Unlikely as your OSMC box is resolving the address correctly.

Can you post the Samba server log from your Mac?