Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error...can not resolve local host

Featured Replies

Posted

Get this error when I try to log into admin console...java related?????

  • Author

I am pretty new to this...but when I type in Edit/private/etc/hosts I get the response...No file or directory found.

Hi Lake113-

 

Setp 2 is telling you to edit the file /private/etc/hosts. That is done on the command line with the "nano" editor. After you get your hostname from step #1, type:

 

sudo nano /private/etc/hosts

 

You will be prompted for your MAC's admin password. (The same one for your user account likely) - enter that and pres Return

 

That should look like:

  GNU nano 2.0.6                            File: /private/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
fe80::1%lo0     localhost

 

Add a new line above 127.0.0.1 with your hostname:

 

  GNU nano 2.0.6                            File: /private/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       Xathros-MacBook-Air
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

 

As I did above for my MBA - After that, type Ctrl-x Then y then Return

 

That should do it for you.

  • Author

Thanks for help...sorry to be so dense;;;I get to enter password....after a warning about use of nano...but then it will not let me enter my password.,,,cursor does not move...so I assume nothing is being entered.

 

If I drop Sudo I get the code you sent without the password,,,,but can not enter line of code...so I assume not in edit mode.

lake113-

 

Password entry at the command line does not show anything as you type. So, when you get there, just type your admin password and press return. Idf correct, the nano editor will open, if wrong, it will say so.

 

-Xathros

place the cursor on the beginning of the line that reads: 127.0.0.1 localhost

 

Press Return then move the cursor up to the new blank line and start typing your new data in. Press tab between 127.0.0.1 and your hostname.

 

-Xathros

  • Author

OK..thanks...have the new line entered...now what step is next...it says to type ctrl-x y and then hit return... on the same page or what?

Yes.

 

Ctrl x says Exit (This means hold down the Ctrl key and press x) You will see a question appear in the bottom section of the terminal.

Y answers the question and says write Changes

Return Accepts the existing filename and writes out the changes and completes the process.

 

After that, you can quit the terminal and you are all set.

 

 

-Xathros

success...thank you much for helping...

 

No Problem. Always happy to help. Glad we got ya fixed up.

 

-Xathros

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.