I am trying to set up my pi3 running raspbian as an NFS server. I've followed these instructions: http://www.htpcguides.com/configure-nfs-server-and-nfs-client-raspberry-pi/
In /etc/exports I have the line:
/mnt/Shared 192.168.1.0/24 *(rw,sync)
Which I hope means that the folder at /mnt/Shared (which is a directory on an external hard drive) is available for reading and writing by all machines using a local IP address. Then I do exportfs:
$ sudo exportfs
/mnt/Shared 192.168.1.0/24
/mnt/Shared <world>
Then, on my laptop, which is running Ubuntu, I follow the client side instructions from the same site, but the mount command fails after a long wait:
$ sudo mount 192.168.1.105:/mnt/Shared /mnt/nfs
mount.nfs: Connection timed out
If I try that verbose it looks like this:
sudo mount -v 192.168.1.105:/mnt/Shared /mnt/nfs/
mount.nfs: timeout set for Sat Feb 18 21:52:14 2017
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.105,clientaddr=192.168.1.109'
mount.nfs: mount(2): Connection refused
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.105,clientaddr=192.168.1.109'
mount.nfs: mount(2): Connection refused
...
<repeated several times>
...
mount.nfs: Connection timed out
Has anyone any ideas of how to make it work? I don't think the problem is with the external hard drive, it appears to be mounted correctly, and I had the same issues trying to share a local directory.