You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

localhost not resolving to 127.0.0.1

My localhost is not resolving to 127.0.01, preventing me from opening files on localhost from my browser unless I manually enter 127.0.0.1. How can I get it to resolve correctly without hardwiring localhost (it should still adjust and update itself as necessary after this).


Context: conda base env, version 4.13.0, MacOS Monterey



Please see below for details, any help would be really appreciated!


(base) mehrkaur@Mehrs-MacBook-Pro ~ % ping localhost

PING localhost (127.0.0.1): 56 data bytes

64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.048 ms

64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.099 ms

64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.109 ms

64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.110 ms

^C

--- localhost ping statistics ---

4 packets transmitted, 4 packets received, 0.0% packet loss

round-trip min/avg/max/stddev = 0.048/0.091/0.110/0.025 ms


(base) mehrkaur@Mehrs-MacBook-Pro ~ % cat /etc/hosts

##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting. Do not change this entry.

##

127.0.0.1 localhost

255.255.255.255 broadcasthost

::1       localhost

MacBook Pro 15″, macOS 12.0

Posted on Jun 17, 2022 12:06 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 17, 2022 9:55 AM

mehrkaur wrote:

My localhost is not resolving to 127.0.01, preventing me from opening files on localhost from my browser unless I manually enter 127.0.0.1. How can I get it to resolve correctly without hardwiring localhost (it should still adjust and update itself as necessary after this).

Context: conda base env, version 4.13.0, MacOS Monterey


Please see below for details, any help would be really appreciated!

(base) mehrkaur@Mehrs-MacBook-Pro ~ % ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.048 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.099 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.109 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.110 ms
^C
--- localhost ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.048/0.091/0.110/0.025 ms

(base) mehrkaur@Mehrs-MacBook-Pro ~ % cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1       localhost


What is it you are trying to do?


Local host for what...


is there a third party app involved here ...



conda base env—

if in doubt search the developers website or contact: Support/Help/FAQ/Known issues/compatibility/Updates

https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html




Similar questions

1 reply
Question marked as Top-ranking reply

Jun 17, 2022 9:55 AM in response to mehrkaur

mehrkaur wrote:

My localhost is not resolving to 127.0.01, preventing me from opening files on localhost from my browser unless I manually enter 127.0.0.1. How can I get it to resolve correctly without hardwiring localhost (it should still adjust and update itself as necessary after this).

Context: conda base env, version 4.13.0, MacOS Monterey


Please see below for details, any help would be really appreciated!

(base) mehrkaur@Mehrs-MacBook-Pro ~ % ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.048 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.099 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.109 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.110 ms
^C
--- localhost ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.048/0.091/0.110/0.025 ms

(base) mehrkaur@Mehrs-MacBook-Pro ~ % cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1       localhost


What is it you are trying to do?


Local host for what...


is there a third party app involved here ...



conda base env—

if in doubt search the developers website or contact: Support/Help/FAQ/Known issues/compatibility/Updates

https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html




localhost not resolving to 127.0.0.1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.