搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Connect to localhost

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 firefox214

more options

Firefox (76.0.1; Windows 10) will not connect to http://localhost/. How can I connect to localhost using Firefox??

Firefox (76.0.1; Windows 10) will not connect to http://localhost/. How can I connect to localhost using Firefox??
附加的畫面擷圖

所有回覆 (2)

more options

Hi Firefox214, glad to see you in Mozilla Support Forum.

There are two solutions for your problem:-

First is:-

In the developer toolbar you can see if there is a cookie with localhost stored as well with : cookie list.

Second is:-

Firefox supports IPv6 by default, which may cause connection problems on certain systems. To disable IPv6 in Firefox:

  1. Type about:config in the address bar and press Enter.
  2. A warning page may appear. Click Accept the Risk and Continue to the about:config page.
  3. In the Search field, enter network.dns.disableIPv6.
  4. In the list of preferences, click the Toggle button next to network.dns.disableIPv6 to set its value to true.

Firefox can't load websites but other browsers can

If it doesn't solved your problem let us know in reply section. Thanks for raising your question in Mozilla Support Forum.

more options

There is no cookie for localhost shown in the developer toolbar. Disabling IPv6 did not solve the problem.

Can I manually create the required cookie? If yes, how? Can I make this cookie "permanent"?

Dumb question: Will "Cookie Auto Delete" addon remove the cookie I create?

To reproduce the problem:

Enter "http://localhost/" (no quotes) in search bar & then "Enter Key" which creates the error message. Open Web Developer toolbar shows no localhost cookie. Click the "+" in the Developer toolbar to manually add the cookie & nothing happens (probably operator error).

Thanks John