Home Writing

til / use the ip address instead of localhost

When using localhost, the computer looks up an IPv4 address (typically or an IPv6 address (typically ::1). The application may try one address first, fail, and then try the other. However, in certain cases1, this approach may not work properly, causing the computer to only attempt one address.

To avoid wasting time on repeated searches and determining the meaning of localhost from /etc/hosts, we can directly use the IPv4 address Although the speed improvements may be small1, they can add up to a significant amount of time for a large organization.

  1. anthonywritescode. (2023-03-17). don’t use localhost↩︎ ↩︎

  • Loading next post...
  • Loading previous post...