Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章。

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

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
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:

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题。