IPv6 でアドレス&ポートの記述フォーマット

※ このエントリは、はてなグループ終了に伴う、サブブログからの引越エントリ(2013/12)です。
※ 情報が古い可能性もありますので、ご留意ください。



色々ある。メモ。

6. Notes on Combining IPv6 Addresses with Port Numbers

There are many different ways to combine IPv6 addresses and port numbers that are represented in text. Examples are shown below.

  • [2001:db8::1]:80
  • 2001:db8::1:80
  • 2001:db8::1.80
  • 2001:db8::1 port 80
  • 2001:db8::1p80
  • 2001:db8::1#80

The situation is not much different in IPv4, but the most ambiguous case with IPv6 is the second bullet. This is due to the "::"usage in

RFC 5952 - A Recommendation for IPv6 Address Text Representation