搜尋 Mozilla 技術支援網站

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

Learn More

Mozilla can access localhost, but not localhost:4200

  • 無回覆
  • 7 有這個問題
  • 7 次檢視
more options

I'm learning to use Angular at the moment and I was able to access localhost. However, when I'm trying to go to localhost:4200, Firefox gives me an error, saying 'Firefox can’t establish a connection to the server at localhost:4200.'. Switching to chrome, localhost:4200 works just fine.

P.S. 127.0.0.1:4200 in Firefox works, and going to 127.0.0.1 is just the same as going to localhost. I'm just wondering why localhost:4200 doesn't work.

I'm learning to use Angular at the moment and I was able to access localhost. However, when I'm trying to go to localhost:4200, Firefox gives me an error, saying 'Firefox can’t establish a connection to the server at localhost:4200.'. Switching to chrome, localhost:4200 works just fine. P.S. 127.0.0.1:4200 in Firefox works, and going to 127.0.0.1 is just the same as going to localhost. I'm just wondering why localhost:4200 doesn't work.