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

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

问题描述

常规IPv4点分四点符号用冒号分隔地址和端口,如回送接口上的Web服务器示例所示:

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

Wikipedia上有一篇有关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天全站免登陆