Why the name localhost exception?

What is the reason behind the naming of ‘localhost exception’?

@ Manivannan_41078

The name ‘localhost’ is a standard name for the loopback interface that is installed by default on all systems. Here’s the definition from Wikipedia.

In computer networking, localhost is a hostname that means this computer . It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface hardware.

Hi David,

Thanks for your reply.

I understand what is localhost means, but my question is in MongoDB terms why the specific exception is named as ‘localhost exception’.

Thanks,
Mani P.

Because local host is hard defined as the only allowed source host to connect, when authentication is enabled, but no accounts have been created yet.

There’s a rule blocking all access, except for local host :slight_smile:

1 Like