端口如何与 IPv6 配合使用? [英] How do ports work with IPv6?

查看:47
本文介绍了端口如何与 IPv6 配合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

传统的 IPv4 点分四元表示法用冒号将地址与端口分开,如环回接口上的网络服务器示例所示:

Conventional IPv4 dotted quad notation separates the address from the port with a colon, as in this example of a webserver on the loopback interface:

127.0.0.1:80

但是使用 IPv6 表示法,地址本身可以包含冒号.例如,这是环回地址的缩写形式:

but with IPv6 notation the address itself can contain colons. For example, this is the short form of the loopback address:

::1

在 IPv6 地址/端口端点的文本表示中如何表达端口(或它们的功能等效项)?

How are ports (or their functional equivalent) expressed in a textual representation of an IPv6 address/port endpoint?

推荐答案

它们的工作方式与今天几乎相同.但是,请确保在 IP 周围包含 [].

They work almost the same as today. However, be sure you include [] around your IP.

例如:http://[1fff:0:a88:85a3::ac1f]:8001/index.html

维基百科有一篇关于 IPv6 的不错的文章:http://en.wikipedia.org/wiki/IPv6#Addressing

Wikipedia has a pretty good article about IPv6: http://en.wikipedia.org/wiki/IPv6#Addressing

这篇关于端口如何与 IPv6 配合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆