Jump to content

localhost = ::1:, bet vajag 127.0.0.1


SaWI337
Go to solution Solved by SaWI337,

Recommended Posts

Spontāni pirms pāris dienām uzradās dīvains gļuks. Localhost sācis mest uz ::1: (kas, spriežot pēc googles, ir IPv6), kā arī vairs nevar pievienoties nevienam lokālajam serverim izmantojot localhost.

 

Hosts fails izskatās kārtībā: http://pastebin.com/gR9ud6W1

Ping: 

 

D:\Program Files\nodejs>ping localhost

 
Pinging SaW-pc [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
 
Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

 

Windowsā atslēdzu IPv6 protokolu, ievietoju hosts failā lai ::1: un localhost met uz 127.0.0.1, noflushoju dns un patestēju vēl šādas tādas misc lietas - nekas nepalīdz.. Ir kādas idejas?

Link to post
Share on other sites

paskaties, ko tev tagad rāda

nslookup localhost

 

tipiski defaultā hosts failā atkomentējot ipv4 loopback ip. palīdz.

# localhost name resolution is handled within DNS itself.
    127.0.0.1       localhost
#    ::1             localhost

ar defaulto hosts

 

ping localhost

Pinging xxxxx [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
 

 

ar atkomentēto 127.0.0.1 - viss ok.

 

^^ tas viss pat neknibinot v6 stacku

Edited by hero
Link to post
Share on other sites
  • Solution

nslookup:

 

Server:  homerouter.cpe

Address:  192.168.1.1
 
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to homerouter.cpe timed-out

 

Hosts failā tā rinda jau ir atkomentēta

 

EDIT: Pamainīju reģistrus, restartēju PC, tagad pingeris uzrāda 127.0.0.1, bet serveriem pievienoties nevar. Nslookup uzrāda to pašu, ko iepriekš.

 

EDIT2: Vaina ir chromē. Caur firefox un opera viss ok. 

 

EDIT3: http://randomhuiņa.localhost/ iet, bet http://localhost/ nē.

 

EDIT4: Notīrīju chrome iestatījumus, tagad viss strādā, paldies.

Edited by SaWI337
Link to post
Share on other sites
drunk_lizard

patiesiibaa chrome ir vaajpraataa bezdieviigs meesls...

  • Patīk 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...