Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

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

了解更多
Solved

Why do I have to log in for two websites if they both link to the same IP?

dailydoseofinternetz

Hey

I'm genuinely curious about Firefox BTS in this scenario.

Example: I open website (http://homedevice:1000) and it requires me to log in. Then I log in at (http://192*:1000) and it requires me to login. "homedevice" is a domain name for 192*, yet I still have to log in twice for the same IP under the same port. Why is it treated seperately the homedevice:1000 and the 192.*:1000 address?

Greets

Hey I'm genuinely curious about Firefox BTS in this scenario. Example: I open website (http://'''homedevice''':1000) and it requires me to log in. Then I log in at (http://'''192*''':1000) and it requires me to login. "homedevice" is a domain name for 192*, yet I still have to log in twice for the same IP under the same port. Why is it treated seperately the homedevice:1000 and the 192.*:1000 address? Greets

所有回覆 (2)

選擇的解決方法

When you connect to a website, the browser stores your session details in a cookie.

The name "homedevice" is recorded as the origin in this cookie.

When you later access the site viahttp://192.168.x.x:1000, the browser sees the address 192.168.x.x as the origin and treats it as completely different.

Even though your network knows (via hosts or DNS) that they lead to the same page, the browser ignores this connection for security reasons. It compares the addresses strictly as text, finds that homedevice does not match 192.168.x.x, and consequently does not send the stored cookie, prompting you to log in again.

由 George Kitsoukakis 於 修改

Thanks. Makes sense, I use alot of home addresses and was just wondering :smile:

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題。