I want to set up a filesharing server with NFS. But when I want to show the conetnts of export I get this:

manuel@server ~ $ showmount
clnt_create: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused)

What is wrong with it?

up vote 15 down vote accepted

Horribly. I read about 5 Tutorials, but none of them mentioned that the service rpcbind is needed.

For Debian

sudo service rpcbind start

does the trick.

  • 1
    That does not solve the issue for me. If someone has any other suggestion, they are most welcomed! – Alexandre Bourlier May 31 '14 at 22:34

I know this is old but I struggled with this today and would like to help future strugglers, LOL

Do the following:

vi /etc/sysconfig/iptables
  1. Remove the reject entry
  2. Remove the forward entry
  3. Save

From cli type,

 iptables -I INPUT -p tcp --dport 111 -j ACCEPT
 iptables -I INPUT -p tcp --dport 2049 -j ACCEPT
 /etc/init.d/iptables save

Restart rpcbind service.

Run showmount -e ipaddress of your nfs server.

  • I have a server with three different interfaces. Only one of which is allowed the rpcbind action. showmount -e yielded the same error as shown by the original poster. A slight modification, based upon the above, results in a command returning expected results: showmount -e This forces to the local host, rather than one of the other interfaces. – Raymond Burkholder Apr 23 '15 at 18:43
  • Do you change the iptables on the nfs server or client? – Jim Sep 19 '17 at 23:51

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.