Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 6 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.

share|improve this answer
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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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