为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How to type ipv6-address and port number in URL bar?

  • 2 个回答
  • 10 人有此问题
  • 1 次查看
  • 最后回复者为 mmorbitzer

more options

I have a Tomcat server which I would like to visit via it's IPv6 address.

In IPv4, I would simply type http://<ipv4-address>:8080 in the URL bar.

In IPv6, I can't seem to find out what I have to type in the URL bar - every request I make sends me to my default search engine.

Among others, I tried the following:

http://[<ipv6-address>]:8080

http://[<ipv6-address>%eth0]:8080

To my understanding of RFC 5952, this should do the job.

However, also skipping the destination port doesn't seem to send me to the server on port 80 or 443:

http://<ipv6-address>

https://<ipv6-address>

I've even tried to add the host in my /etc/hosts, with any of those lines:

<ipv6-address>%eth0 foo

<ipv6-address> bar

Still, requests such as

http://[foo]:8080

http://foo:8080

http://[bar]:8080

http://bar:8080

also don't seem to work.

Firefox version in use is 44.0.2

Thanks for your help!

I have a Tomcat server which I would like to visit via it's IPv6 address. In IPv4, I would simply type http://<ipv4-address>:8080 in the URL bar. In IPv6, I can't seem to find out what I have to type in the URL bar - every request I make sends me to my default search engine. Among others, I tried the following: http://[<ipv6-address>]:8080 http://[<ipv6-address>%eth0]:8080 To my understanding of RFC 5952, this should do the job. However, also skipping the destination port doesn't seem to send me to the server on port 80 or 443: http://<ipv6-address> https://<ipv6-address> I've even tried to add the host in my /etc/hosts, with any of those lines: <ipv6-address>%eth0 foo <ipv6-address> bar Still, requests such as http://[foo]:8080 http://foo:8080 http://[bar]:8080 http://bar:8080 also don't seem to work. Firefox version in use is 44.0.2 Thanks for your help!

由mmorbitzer于修改

被采纳的解决方案

Yes, IPv6 is enabled.

Unfortunately, http://[<ipv6-address>]:8080 does not work. I tried to restart firefox without plugins to make sure that things like FoxyProxy don't come in the way, but that also didn't solve the problem.

I checked in wireshark, and I don't see a connection attempt from firefox to the webserver.

I also tried to switch on HTTP logging. When I look for the ipv6 address in the logfile, I see those messages:


-1825077376[7f4391f38580]: AltSvcCache::GetAltServiceMapping 7f4377528108 key=http:fe80::20c:29ff:fee2:1de:8080:. existing=0 validated=0 running=0 ttl=0
-1825077376[7f4391f38580]:   Host: [fe80::20c:29ff:fee2:1de]:8080
-1825077376[7f4391f38580]: host=fe80::20c:29ff:fee2:1de port=8080
-1825077376[7f4391f38580]:   Host is IP Literal [fe80::20c:29ff:fee2:1de].
-1825077376[7f4391f38580]: nsHttpAuthCache::GetAuthEntryForPath [key=http://fe80::20c:29ff:fee2:1de:8080 path=/]
-1825077376[7f4391f38580]: nsHttpConnectionMgr::SpeculativeConnect [ci=......fe80::20c:29ff:fee2:1de:8080]
-1825077376[7f4391f38580]: nsHttpConnectionMgr::SpeculativeConnect skipping RFC1918 address [fe80::20c:29ff:fee2:1de]
-1825077376[7f4391f38580]: Resolving host [fe80::20c:29ff:fee2:1de].
-1825077376[7f4391f38580]: uri=http://[fe80::20c:29ff:fee2:1de]:8080/
-2133858560[7f4391f38c40]: Creating nsHalfOpenSocket [this=7f436181c600 trans=7f436a6a6c00 ent=fe80::20c:29ff:fee2:1de key=......fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: nsHalfOpenSocket::OnOutputStreamReady [this=7f436181c600 ent=fe80::20c:29ff:fee2:1de primary]
-2133858560[7f4391f38c40]: nsHalfOpenSocket::SetupPrimaryStream [this=7f436181c600 ent=fe80::20c:29ff:fee2:1de rv=0]
-2133858560[7f4391f38c40]: nsHalfOpenSocket::SetupStreams [this=7f436181c600 ent=......fe80::20c:29ff:fee2:1de:8080] setup routed transport to origin fe80::20c:29ff:fee2:1de:8080 via :443
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::AtActiveConnectionLimit [ci=......fe80::20c:29ff:fee2:1de:8080 caps=21]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::DispatchAbstractTransaction [ci=......fe80::20c:29ff:fee2:1de:8080 trans=7f436a6a6c00 caps=21 conn=7f436187a920]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::DispatchTransaction [ent-ci=......fe80::20c:29ff:fee2:1de:8080 7f435f208c10 trans=7f436a6a6c00 caps=21 conn=7f436187a920 priority=-10]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::OnMsgProcessPendingQ [ci=......fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::ProcessPendingQ [ci=......fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::ProcessPendingQForEntry [ci=......fe80::20c:29ff:fee2:1de:8080 ent=7f435f208c10 active=0 idle=0 queued=0]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::TimeoutTickCB() this=7f4377528100 host=fe80::20c:29ff:fee2:1de idle=0 active=0 half-len=0 pending=0
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::TryDispatchTransaction without conn [trans=7f436a6a6c00 ci=7f43673a47d0 ci=......fe80::20c:29ff:fee2:1de:8080 caps=21 tunnelprovider=0 onlyreused=0 active=0 idle=0]
-2133858560[7f4391f38c40]: nsSocketTransport::Init [this=7f436a6ad800 host=fe80::20c:29ff:fee2:1de:8080 origin=fe80::20c:29ff:fee2:1de:8080 proxy=:0]
-2133858560[7f4391f38c40]: nsSocketTransport::ResolveHost [this=7f436a6ad800 fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: Resolving host [fe80::20c:29ff:fee2:1de].
-2133858560[7f4391f38c40]:   trying address: fe80::20c:29ff:fee2:1de
-2133858560[7f4391f38c40]:   Using cached address for IP Literal [fe80::20c:29ff:fee2:1de].

So the problem might be that it's a link-local IPv6 address, and firefox doesn't know with which interface to resolve it.

After looking around for this specific issue, i found this: https://bugzilla.mozilla.org/show_bug.cgi?id=700999

So, it seems like you are not able to visit a link-local IPv6 address with firefox...

EDIT: By using burp proxy, I am able to connect to my server via http://[<link-local ipv6 address>]:8080 It's not a solution, but at least a workaround until firefox will support link-local ipv6 addresses.

定位到答案原位置 👍 1

所有回复 (2)

more options

Is IPv6 enabled?

  • network.dns.disableIPv6 = false

I think that this should work:

  • http://[<ipv6-address>]:8080

See also:

more options

选择的解决方案

Yes, IPv6 is enabled.

Unfortunately, http://[<ipv6-address>]:8080 does not work. I tried to restart firefox without plugins to make sure that things like FoxyProxy don't come in the way, but that also didn't solve the problem.

I checked in wireshark, and I don't see a connection attempt from firefox to the webserver.

I also tried to switch on HTTP logging. When I look for the ipv6 address in the logfile, I see those messages:


-1825077376[7f4391f38580]: AltSvcCache::GetAltServiceMapping 7f4377528108 key=http:fe80::20c:29ff:fee2:1de:8080:. existing=0 validated=0 running=0 ttl=0
-1825077376[7f4391f38580]:   Host: [fe80::20c:29ff:fee2:1de]:8080
-1825077376[7f4391f38580]: host=fe80::20c:29ff:fee2:1de port=8080
-1825077376[7f4391f38580]:   Host is IP Literal [fe80::20c:29ff:fee2:1de].
-1825077376[7f4391f38580]: nsHttpAuthCache::GetAuthEntryForPath [key=http://fe80::20c:29ff:fee2:1de:8080 path=/]
-1825077376[7f4391f38580]: nsHttpConnectionMgr::SpeculativeConnect [ci=......fe80::20c:29ff:fee2:1de:8080]
-1825077376[7f4391f38580]: nsHttpConnectionMgr::SpeculativeConnect skipping RFC1918 address [fe80::20c:29ff:fee2:1de]
-1825077376[7f4391f38580]: Resolving host [fe80::20c:29ff:fee2:1de].
-1825077376[7f4391f38580]: uri=http://[fe80::20c:29ff:fee2:1de]:8080/
-2133858560[7f4391f38c40]: Creating nsHalfOpenSocket [this=7f436181c600 trans=7f436a6a6c00 ent=fe80::20c:29ff:fee2:1de key=......fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: nsHalfOpenSocket::OnOutputStreamReady [this=7f436181c600 ent=fe80::20c:29ff:fee2:1de primary]
-2133858560[7f4391f38c40]: nsHalfOpenSocket::SetupPrimaryStream [this=7f436181c600 ent=fe80::20c:29ff:fee2:1de rv=0]
-2133858560[7f4391f38c40]: nsHalfOpenSocket::SetupStreams [this=7f436181c600 ent=......fe80::20c:29ff:fee2:1de:8080] setup routed transport to origin fe80::20c:29ff:fee2:1de:8080 via :443
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::AtActiveConnectionLimit [ci=......fe80::20c:29ff:fee2:1de:8080 caps=21]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::DispatchAbstractTransaction [ci=......fe80::20c:29ff:fee2:1de:8080 trans=7f436a6a6c00 caps=21 conn=7f436187a920]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::DispatchTransaction [ent-ci=......fe80::20c:29ff:fee2:1de:8080 7f435f208c10 trans=7f436a6a6c00 caps=21 conn=7f436187a920 priority=-10]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::OnMsgProcessPendingQ [ci=......fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::ProcessPendingQ [ci=......fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::ProcessPendingQForEntry [ci=......fe80::20c:29ff:fee2:1de:8080 ent=7f435f208c10 active=0 idle=0 queued=0]
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::TimeoutTickCB() this=7f4377528100 host=fe80::20c:29ff:fee2:1de idle=0 active=0 half-len=0 pending=0
-2133858560[7f4391f38c40]: nsHttpConnectionMgr::TryDispatchTransaction without conn [trans=7f436a6a6c00 ci=7f43673a47d0 ci=......fe80::20c:29ff:fee2:1de:8080 caps=21 tunnelprovider=0 onlyreused=0 active=0 idle=0]
-2133858560[7f4391f38c40]: nsSocketTransport::Init [this=7f436a6ad800 host=fe80::20c:29ff:fee2:1de:8080 origin=fe80::20c:29ff:fee2:1de:8080 proxy=:0]
-2133858560[7f4391f38c40]: nsSocketTransport::ResolveHost [this=7f436a6ad800 fe80::20c:29ff:fee2:1de:8080]
-2133858560[7f4391f38c40]: Resolving host [fe80::20c:29ff:fee2:1de].
-2133858560[7f4391f38c40]:   trying address: fe80::20c:29ff:fee2:1de
-2133858560[7f4391f38c40]:   Using cached address for IP Literal [fe80::20c:29ff:fee2:1de].

So the problem might be that it's a link-local IPv6 address, and firefox doesn't know with which interface to resolve it.

After looking around for this specific issue, i found this: https://bugzilla.mozilla.org/show_bug.cgi?id=700999

So, it seems like you are not able to visit a link-local IPv6 address with firefox...

EDIT: By using burp proxy, I am able to connect to my server via http://[<link-local ipv6 address>]:8080 It's not a solution, but at least a workaround until firefox will support link-local ipv6 addresses.

由mmorbitzer于修改