On modern day computers, localhost as a hostname translates to an IP address of 127.0.0.1 which is an internal loop-back IP address.

Localhost is an internal hostname that points to 127.0.0.1, it is also used to describe a local machine.