ã»ãšãã©ã®ãŠãŒã¶ãŒã«ãšã£ãŠãIPv6ã®å©ç¹ã¯ãŸã£ãããããŸããã ããšãã°ããã±ããããããŒã¯ã«ãŒã¿ãŒã«ãšã£ãŠãã䟿å©ã§ãããšããéãã¯äœã§ããïŒ ããããP2Pã®å ŽåãNATåé¡ïŒIPv4ã¢ãã¬ã¹ããŸã çµäºããŠããªãããïŒã¯çŸå®çã§ãã ãã¢ããŒãã¢éä¿¡ã®å ŽåïŒJabberãŸãã¯ICQãä»ããŠãã¡ã€ã«ãéä¿¡ããå Žåã§ãïŒãåå è ã®å°ãªããšã1人ãå€éšããã¢ã¯ã»ã¹ã§ããå¿ èŠããããŸãã å®éã®IPã¢ãã¬ã¹ãæã£ãŠããããå°ãªããšãèªåèªèº«ã«ããŒãã転éããã äžéšã®ãããã€ããŒã¯å€éšã¢ãã¬ã¹ãææã§æäŸããŸãããäžéšã¯æäŸããŸãããIPv6ãæã圹ç«ã€ã®ã¯NATã®è¢«å®³è ã§ãã
ãŸãããããã€ããŒãp2pãã©ãã£ãã¯ãã«ããããå Žåã«ã圹ç«ã¡ãŸãã ãã·ã¢ã§ã¯ãããã¯ïŒãããŸã§ïŒïŒããã»ã©äžè¬çã§ã¯ãªããæµ·å€ã§ã¯çããããšã§ã¯ãããŸããã IPv6ãã©ãã£ãã¯ïŒããæ£ç¢ºã«ã¯ãéåžžã®UDPãã±ããã«ã©ããïŒã¯ããããã«ãã£ãŠã«ãããããŸããã ãŸããäŒæ¥ã®ãã¡ã€ã¢ãŠã©ãŒã«ã«ãã£ãŠp2pãã©ãã£ãã¯ããããã¯ãããŠãããããã³ãã«ãä»ããŠIPv6ãæ§æã§ããç¶æ³ã§ã圹ç«ã¡ãŸãã
ãŠãŒã¶ãŒã¬ãã«ã§ã®äž»ãªéãã¯ãIPã¢ãã¬ã¹ã4ãã€ãã§æ§æãããŠããããããããä»ããŠ10é²æ°ã·ã¹ãã ã§æžã蟌ãŸããã®ã§ã¯ãªãã16ãã€ãã16é²æ°ã®4æ¡ïŒ2ãã€ãïŒã§ã³ãã³ã§åºåãããŠæžã蟌ãŸããããšã§ãã æ°åã®å é ã®ãŒãã¯çç¥ã§ããã¢ãã¬ã¹å ã®æãé·ããã§ãŒã³ïŒ0ïŒ0ïŒ0ïŒ0ïŒã¯ã2ã€ã®ã³ãã³ã§ç°¡åã«çœ®ãæããããšãã§ããŸãã ããã«::ã¯éåžžã®IPv6ã¢ãã¬ã¹ã§ãããå®å šã«ãŒãã§æ§æãããŸãã ãã©ãŠã¶ãŒã§ã¯ããµã€ãã®æ°å€ã¢ãã¬ã¹ãæå®ããå¿ èŠãããå Žåã httpïŒ// [2001ïŒ4860ïŒa003 :: 68] /ã®ããã«è§æ¬åŒ§ã§å²ãŸããŸã
æ¥ç¶æ¹æ³
éããããã°ããããã€ããŒã¯ãã€ãã£ãIPv6ãæäŸããŸãã ããã§ãšãããããŸããããªãã¯ã©ãããŒã§ãïŒ æ®ãã¯IPv6ãã±ãããéä¿¡ããããã«æ®ãããããããå€ãããããã¯ãŒã¯äžã®IPv4ã§ã©ããããŸãã èªåïŒ6to4ãteredoãªã©ïŒãã³ãã«ãšæåã§äœæããããã³ãã«ã®äž¡æ¹ãããã³æãexternalãªNATã§ãéçãªå€éšIPv4ã¢ãã¬ã¹ã䜿çšããå Žåãšäœ¿çšããªãå Žåã®äž¡æ¹ã®æ¥ç¶æ¹æ³ãå€æ°ãããŸãã
6to4
å€éšIPv4ãããå Žåã®æãç°¡åãªæ¹æ³ã 6to4ã€ã³ã¿ãŒãã§ãŒã¹ïŒBSDã®stfãLinuxã®å ŽåïŒãäžãã2002ïŒxxyyïŒzzttïŒã®åœ¢åŒã®IPv6ã¢ãã¬ã¹ãæ§æããŸããããã§ãxx.yy.zz.ttã¯16é²åœ¢åŒã®IPv4ã¢ãã¬ã¹ã§ããã¹ãŠã®çºä¿¡ãã±ããã192.88.99.1ã«éä¿¡ããŸãã ç¹å®ã®ã·ã¹ãã ã«ç¹å®ã®ã¢ã¯ã·ã§ã³ãæžãã®ã§ã¯ãªããGoogleã§ãã£ã±ãã§ãïŒ äŸ ïŒã
ãã®æ¥ç¶ã®å©ç¹ã¯ãæ§æãç°¡åãªããšã§ãã ãã®å Žåã誰ã§ãIPv4ãä»ããŠIPv6ãã±ãããéä¿¡ã§ããæãè¿ãã²ãŒãã«éä¿¡ã§ããŸãã 192.88.99.1ã¯ããããããšããŒãã£ã¹ãã¢ãã¬ã¹ã§ããããããã¯ãŒã¯äžã®ä»»æã®çªå·ã«ããããšãã§ããéåžžã¯ãããã€ããŒãæãè¿ãã¢ãã¬ã¹ã«éä¿¡ããŸãã ãã®éã¯ãã¢ãã¬ã¹ãŸãã¯ãµããããã䜿çšäžå¯ã«ãªã£ãçç±ãææ¡ããããšãã§ããªãããšã§ãã å®éã®ã«ãŒãã¯äºæž¬äžèœã§ãããæéãšãšãã«å€åããå¯èœæ§ããããŸãã 2çªç®ã®ãã€ã³ã-FreeBSDã®äžã«ãã1å°ã®ãã·ã³ãã2æ¥éã§æªç¥ã®çç±ã§2ååèµ·åããéçãã³ãã«ã§åäœããŸãã äžæ¹ãLinuxã®å人ã®äœäººãã«ãšã£ãŠããã®ãªãã·ã§ã³ã¯é·ãéåé¡ãªãæ©èœããŠããŸããã
ãã¬ã
NATã«ããèªåæ§æãªãã·ã§ã³ã uTorrent 1.8以éã䜿çšããŠããå ŽåããIPv6 / Teredoã®ã€ã³ã¹ããŒã«ããã¿ã³ãèšå®ã«è¡šç€ºãããŸã-æŒãã ãã§èšå®ã§ããŸãã æåã§ã€ã³ã¹ããŒã«ããã«ã¯ãã³ãã³ãã©ã€ã³ãã2ã€ã®ã³ãã³ããå®è¡ããå¿ èŠããããŸãã
ipv6ã€ã³ã¹ããŒã« netsh int ipv6ã¯teredoã¯ã©ã€ã¢ã³ããèšå®ããŸã* nyxã·ã¹ãã ã§ã¯ãããšãã°æ¬¡ã®ã³ãã³ãã§miredoãã€ã³ã¹ããŒã«ããã ãã§ååã§ãã
sudo apt-get install miredoVistaã§ã¯ãããã©ã«ãã§æå¹ã«ãªã£ãŠããŸãã
ãã®ãªãã·ã§ã³ã®æ¬ ç¹ã¯ããã¹ãŠã®ã¿ã€ãã®NATã§æ©èœããªãããšã§ãã ã€ã³ã¹ããŒã«åŸã«ipv6.google.comãéããªãå Žåã¯ãã³ãã³ãã©ã€ã³ããå®è¡ããŸã
netsh int ipv6 show teredoããšã©ãŒïŒå¯Ÿç§°NATã®èåŸã«ããã¯ã©ã€ã¢ã³ãããšè¡šç€ºãããŠããå Žåã¯ãéãæªãã§ãã ãããã®å Žåã§ããææ°ã®ãµãŒãã¹ããã¯ãã€ã³ã¹ããŒã«ããããšããå§ãããŸããããšãã°ãXP SP2ã¯ãã¬ãã£ãã¯ã¹3ffeã§ã¢ãã¬ã¹ãäœæããŸããã2001幎ã§ã¯ãªããããã¯SP3ã§ä¿®æ£ãããŸããããã©ã¡ãŒã¿ãŒ\ GlobalParams \ TeredoPrefix at 0x120ïŒ288ïŒã 2çªç®ã®ãã€ãã¹ã¯ãäžèŠã·ã³ãã«ãªæ§æã«ãããããããåžžã«ãã¹ãŠãåçŽã§ã¯ãªãããšã§ãã äžéšã®äººã«ãšã£ãŠã¯ãWindowsã«çµã¿èŸŒãŸãããã¡ã€ã¢ãŠã©ãŒã«ããªãã«ãªã£ãŠããå Žåã«ã®ã¿ãã¹ãŠãæ©èœããå察ã«ããªã³ã«ãªã£ãŠããå Žåã«ã®ã¿æ©èœããŸãã ãããŠãå¯èœæ§ã®ãããã¹ãŠã®åé¡ãççŸãããã³ãããã解決ããæ¹æ³ãäºåã«èª¬æããããšã¯ãåã«äžå¯èœã§ãã
倧ããªãã©ã¹ïŒ6to4ã®å Žåã®ããã«ïŒã¯ãteredoçµç±ã§ãæ¥ç¶ããŠãããŠãŒã¶ãŒã«çŽæ¥æ¥ç¶ããããšã§ããå€éšãµãŒããŒã¯ãNAT Traversalãä»ããæ¥ç¶ã®ç¢ºç«ã«ã®ã¿åœ¹ç«ã¡ãèªåã§pingãå®è¡ã§ããŸãã ãããã£ãŠãé床ã¯çŽæ¥æ¥ç¶ã®å ŽåãããæªããªããŸããïŒIPv6ãã±ããã®UDPv4ãã±ãããžã®ãã©ãããã®æ倱ã¯æå°éã§ãïŒã
ãããµãŽïŒgo6ïŒ
èªåæ§æã圹ã«ç«ããªãã£ãå ŽåïŒå¯Ÿç§°NATïŒããŸãã¯äºæž¬å¯èœãªãã±ããã«ãŒãã£ã³ã°ãå¿ èŠãªå Žåã¯ãç¡æã®ã ãã³ãã«ãããŒã«ãŒ ãããããããããŸãã 圌ã®éžæã¯ããããã·ãµãŒããŒã®éžæãšåæ§ã«ãéåžžã«æ éã«è¡ãå¿ èŠããããŸãã pingãšé床ã®äž¡æ¹ãããã«äŸåããŸãïŒããã¯teredoã«ãåœãŠã¯ãŸããŸããããã©ã«ããµãŒããŒãteredo.remlab.netã«å€æŽã§ããŸãããã·ã¢ã«è¿ãã§ãïŒã äž»ãªããŒã«ã¯pingãštracerouteã§ãã ãããã€ããŒã®æµ·å€ãã©ãã£ãã¯ã誰ãçµç±ããŠãããã確èªããŸãã 192.88.99.1ãžã®ã«ãŒããèŠãŠãã ããïŒå€ãã®å Žåãããªã±ãŒã³ãšã¬ã¯ããªãã¯-.he.netã«è¡ããŸãïŒã
ã€ã³ã¹ããŒã«ãæãç°¡åãªã®ã¯go6.netã§ããå¿ èŠã«å¿ããŠãWebãµã€ãããããã°ã©ã ãããŠã³ããŒãããç»é²ãã€ã³ã¹ããŒã«ïŒã眲åãããŠããªããã©ã€ããŒããèªããŸã-ã€ã³ã¹ããŒã«ã確èªããå¿ èŠããããŸãïŒãããã ãã§ãã ãã¹ãŠã®ã¿ã€ãã®NATã§æ©èœããŸãïŒãã¡ã€ã¢ãŠã©ãŒã«ã§çºä¿¡ããŒã3653ãèš±å¯ããå¿ èŠãããããšãé€ãïŒã çµã¿èŸŒã¿ãã¡ã€ã¢ãŠã©ãŒã«ãšãã®äžåšã®äž¡æ¹ã«åé¡ããããŸãããteredoããªã³ã«ãªã£ãŠããå Žåã«ã®ã¿æ©èœããŸããïŒãã ãã察称NATãåå ã§æ©èœããŸããïŒã
æ¬ ç¹ã¯ãgo6ãã«ããã«ãããç§ãç解ããŠããããã«ããã¹ãŠã®ãã©ãã£ãã¯ãèªåèªèº«ãééããããšã§ãã 300ããªç§ä»¥äžã®ãã®pingã®ãããäœéã§ãã ã©ããã§ãhexago-hexagoãšayiya-ayiyaãæåããã°äºãã«ãçŽæ¥ããã³ãã«ã確ç«ã§ãããšããæ å ±ã«åºäŒããŸãããïŒNAT TraversalïŒãããã確èªãåŠå®ãã§ããŸããã
ããªã±ãŒã³é»æ°
å ¬åŒãŠã§ããµã€ã-www.tunnelbroker.netãã€ãã¹ïŒéçãªãã³ãã«ã®ã¿ãæäŸããŸãã å€éšIPv4ã¢ãã¬ã¹ãå¿ èŠã§ãã ãµã€ãã¯ç»é²ãå¿ èŠã§ãã ããã«ãå€ãã®åœã§æ¥ç¶ã§ãããã¢ã¯ã»ã¹ãã€ã³ãããå€æ°ãããããèªåã«ååè¿ãå Žæãéžæã§ããé床ã¯çŽæ¥IPv4ã»ã©æªããããŸããã
Sixxs
å ¬åŒãŠã§ããµã€ãïŒ www.sixxs.netæãè€éãªç»é²ïŒæ°æéããæ°æ¥ã§ããŒã¿ãæåã§ãã§ãã¯ããŸãïŒããããŸãããå¯èœãªéãã®æ¥ç¶æ¹æ³ãšã¢ã¯ã»ã¹ãã€ã³ãã®ç¯å²ãåºãããã10åã®ããžã£ã³ããå ã§èŠã€ããå¯èœæ§ãé«ããªããŸã ïŒtracerouteã§ïŒèªåããã ç§ã¯ãã®ãªãã·ã§ã³ã«æ±ºããŸããããå§ãããŸãã
ç»é²åŸãAYIYAãã³ãã«ã泚æããå¿ èŠããããŸãã åæã«ãã¢ã¯ã»ã¹ãã€ã³ãã®1ã€ãéžæãããŠãããŸããïŒãã¬ãŒã¹ãšpingã確èªããŸããç§ã«æãè¿ãã®ã¯ã¹ãŠã§ãŒãã³ã®sestoã§ããïŒã é åºãæåã§ïŒæéãæ¥ïŒç¢ºèªãããŸãããããã«ã¯å éšã®ãæ¡ä»¶ä»ããŠããããã䜿çšãããããæåã«ãã³ãã«ã®ã¿ã€ããæ£ãã泚æããå¿ èŠããããŸãã 次ã«- ãœãããŠã§ã¢ãããŠã³ããŒãã ãèœãšãç©ŽããããŸãã Tap32ãã©ã€ããŒãšã¯ã©ã€ã¢ã³ãã¯åå¥ã«ããŠã³ããŒãããã³ã€ã³ã¹ããŒã«ãããŸãã tap901ã解åããaddtap.batã1åå®è¡ããŸã-誀ã£ãŠäžèŠãªã€ã³ã¿ãŒãã§ã€ã¹ãäœæããå Žåãèµ·åãããã³ã«æ°ããã€ã³ã¿ãŒãã§ã€ã¹ãäœæãããŸã-deltapall.batã¯ãã¹ãŠãäžåºŠã«åé€ããŸãã GUIã䜿çšããå Žåãšäœ¿çšããªãå Žåã®2ã€ã®ã¯ã©ã€ã¢ã³ãïŒAICCUïŒããããŸãããGUIã¯ææ°ã®ãã©ã€ããŒãšäºææ§ããããŸããã äž¡æ¹ãããŠã³ããŒãããGUIã1åå®è¡ãããŠãŒã¶ãŒå/ãã¹ã¯ãŒããå ¥åãããµãŒããŒããèšå®ãååŸããã¢ã€ã³ã³ãã¯ãªãã¯ããŠ[æ§æã®ä¿å]ãéžæããããšããå§ãããŸãã ãã以äžã®GUIã¯å¿ èŠãããŸããã ã³ãã³ãã©ã€ã³ããã¯ã©ã€ã¢ã³ããèµ·åãããšããã¹ãŠãæ©èœããã¯ãã§ãã ãã¡ãããéããããã°ã ã³ã³ãã¥ãŒã¿ãŒã®èµ·åæã«IPv6ãéå§ããã«ã¯ãinstsrvããã³srvanyãŠãŒãã£ãªãã£ãå¿ èŠã§ããããã«ããããã®ã¯ã©ã€ã¢ã³ããWindowsãµãŒãã¹ïŒãµãŒãã¹ïŒãšããŠç»é²ã§ããŸãã èšå®ã®éåžžã«è©³çŽ°ãªèª¬æã¯è±èªã§ãã
Bittorrent
IPv6çµç±ã§èª°ãã«æ¥ç¶ããã«ã¯ããã®äººã®ã¢ãã¬ã¹ãèŠã€ããå¿ èŠããããŸãã åœç¶ãIPv6ã¯ãã¬ã³ãã¯ã©ã€ã¢ã³ãã«ãã£ãŠãµããŒããããå¿ èŠããããŸãã ããã¯1.8以éã®uTorrentïŒããã³å¯Ÿå¿ããå ¬åŒã®BitTorrentã®ããŒãžã§ã³ïŒã4.1.0.0以éã®AzureusïŒå€ããã®ã¯ããšã©ãŒ16ãã§èªã£ãïŒãããŒãžã§ã³1.50ããã®éä¿¡ãä»ã®äººã«ã€ããŠã¯ç¥ããŸããã
DHTã§ãäºããèŠã€ããããšãã§ããŸãã ãããã«ã¯2ã€ã®å®è£ ããããŸãã Azureusã«ã¯ç¬èªã®ãã®ãããã誰ãšãäºææ§ããããŸããããIPv6ã¯ãµããŒãããŠããŸãã uTorrentããã³ä»ã®ãã¹ãŠã®ãŠãŒã¶ãŒ-ãŸã ã§ã¯ãããŸããããå°æ¥çã«èšç»ãããŠããŸãã ãã ããIPv6ã¯PEXã§ãµããŒããããŠããŸãã ããããããã¯ãã¹ãŠããã¬ã³ãã«ãã©ã€ããŒããã©ã°ããªãããªãŒãã³ãã©ãã«ãŒã§ã®ã¿æ©èœããŸãã
IPv6ããã©ãã«ãŒããµããŒãããå Žåã«æé©ã§ãã ããã¥ã¡ã³ããŒã·ã§ã³ã«ããã°ããã®ãããpeers6ãã£ãŒã«ããå¿çãããã³ã«ïŒã»ãšãã©ã®äººãåãæ¿ãããã³ã³ãã¯ããïŒã«è¿œå ãããã¢ãã¬ã¹ã®ãªã¹ããå18ãã€ãïŒ16ã¢ãã¬ã¹ã2ããŒãïŒã®ãã€ããªåœ¢åŒã§éä¿¡ãããŸãã ããã«ãã¯ã©ã€ã¢ã³ãã¯ïŒipv6 =ãã©ã¡ãŒã¿ãŒãéä¿¡ã§ãããã©ãã«ãŒã¯ãIPv6æ¥ç¶ãåãå ¥ããããªãå Žåã§ããååãšããŠäºãã®IPv6ã¢ãã¬ã¹ãã¯ã©ã€ã¢ã³ãã«éä¿¡ã§ããŸãã ãã®ã¢ãããŒãã®æ¬ ç¹ã¯ããã®ãã©ã¡ãŒã¿ãŒã䜿çšããŠãå·Šãã¢ãã¬ã¹ã転éã§ããããããã©ãã«ãŒãæ£ãããããšã§ãã
ãã©ãã«ãŒèªäœã«IPv6çµç±ã§ã¢ã¯ã»ã¹ã§ããå Žåããã©ãã«ãŒã¯ã¢ã¯ã»ã¹ãã人ã®å®éã®ã¢ãã¬ã¹ã確èªããŸãã ããããAã¬ã³ãŒããšAAAAã®äž¡æ¹ããã©ãã«ãŒã®ãã¡ã€ã³åã«ç»é²ãããŠããå Žåãã¯ã©ã€ã¢ã³ãã¯IPv6ãä»ããŠã®ã¿æ¥ç¶ãããã©ãã«ãŒã¯IPv4ã¢ãã¬ã¹ãèªèããŸãããuTorrentã®ã¿ãåæ Œããipv6 =ïŒã§ãã çæ³çã«ã¯ããã¬ã³ããã¡ã€ã«ã§ã¯ãäž¡æ¹ã®ãããã³ã«ã«2ã€ã®ã¢ãã¬ã¹ãç»é²ããå¿ èŠããããŸãã
ãã©ãã«ãŒ
IPv6察å¿ã®ãã©ãã«ãŒã¯å°æ°ã§ãã www.sixxs.net/tools/tracker/catalogããããŸãããå®éã«ã¯äœããããŸããããã¹ãããã¢çšã§ãã Pirate Bay ã¯1æã« IPv6ã®ãµããŒããçºè¡šããŸããïŒãã©ãã«ãŒã®ã¿ã§ãIPv6ãµã€ãèªäœã¯å©çšã§ããŸããïŒã 2æã®RuNetã§ã¯ãipv6.nnm-club.ruã§IPv6ã®ãµããŒããç»å ŽããŸãã ïŒç»é²ã¯ããã§éãããããæåŸ ã«ãã£ãŠã®ã¿éããããŸãããIPv6çµç±ã§å ¥åããå Žåã¯åžžã«éããŠããŸãïŒã
ããããããããã¹ãŠãç解ããã«ã¯ãååãªæ°ã®é¡§å®¢ãå¿ èŠã§ãã TPBã®ã¡ã€ã³ããŒãžã§ã¯ãååã¯ãã¢ã®æ°ã«é¢ããçµ±èšã§ããããããã«ãããšIPv6ã0.12ïŒ ãããããŸããã§ããïŒçŸæç¹ã§ã¯ãäœããã®çç±ã§ãŒãã§ãïŒã ããã¯ç§ã®å人çãªçµéšã«ã»ãŒå¯Ÿå¿ããŸã-100ãã¢ããããããIPv6ã§1-2ã§ãã nnm-clubã®çµ±èšã«ãããšã14ïŒ ã®ã¯ã©ã€ã¢ã³ããIPv6ãä»ããŠãã©ãã«ãŒã«éä¿¡ããã³æ¥ç¶ããŸãã å®éã«ã¯ããããã®äžéšã¯fe80ã®ãããŒã«ã«ãã¢ãã¬ã¹ãéä¿¡ããŸãã IPv6ã¯ãããã«å¯ŸããŠæ§æãããŠããŸãããã12ïŒ ã®ã©ããã§ã¢ãã¬ã¹ã¯æ¬ç©ã§ãã
ããã°ã©ãã³ã°
ãããŠãããã€ãã®èšèãšããã°ã©ãã³ã°ããããã¯-æ¢è£œã®ã¢ããªã±ãŒã·ã§ã³ãIPv6ã«ç§»æ€ããŸãã ããã«ã€ããŠã¯ãHaéçŽäžéHaéã®ãIPv6 Network Programmingãæ¬ã匷ããå§ãããŸãã æè¯ã®éšåã¯ãã»ãŒãã¹ãŠã®æ©èœïŒãœã±ãããæ¥ç¶ããªãã¹ã³ãéä¿¡ãåä¿¡ïŒãIPv6ããµããŒãããããšã§ããããããã«è§Šããå¿ èŠã¯ãŸã£ãããããŸããã
æåã®äž»ãªãã€ã³ãã¯ãsockaddr_inæ§é äœã®äœ¿çšãæŸæ£ããå¿ èŠããããšããããšã§ãïŒç¹ã«ãIPã¢ãã¬ã¹ãintãinet_addrãªã©ã®é¢æ°ã«ä¿åããªãã§ãã ããïŒã 代ããã«ãå¿ èŠã«å¿ããŠãsck_familyãã£ãŒã«ãã®AF_INETããã§ãã¯ããŠsockaddr_inã«å€æããããAF_INET6-sockaddr_in6ã«çãããŠãããŒãµã«æ§é ã®sockaddr_storageããããŸãã
2çªç®ã®ãã€ã³ãã¯ãDNSãšã¢ãã¬ã¹ã®æååè¡šçŸã䜿çšããããšã§ãã ããã¯ãæ±çšé¢æ°getaddrinfoããã³getnameinfoã«å€æããå¿ èŠããããŸãã getaddrinfoã¯è€æ°ã®ã¢ãã¬ã¹ãè¿ãããšãã§ããããããµãŒããŒã¯ãã¹ãŠããªãã¹ã³ïŒãã€ã³ãããªãã¹ã³ïŒããå¿ èŠããããã¯ã©ã€ã¢ã³ãã¯ã¢ãã¬ã¹ã®1ã€ã§è§£æ±ºãããŸã§é çªã«æ¥ç¶ãè©Šè¡ããå¿ èŠãããããšã«æ³šæããŠãã ããã
PHPã§ã¯ã$ _SERVER ['REMOTE_ADDR']ã«WebãµãŒããŒã§ãµããŒããããŠããå ŽåãIPv4ã¢ãã¬ã¹ã ãã§ãªãIPv6ãããããšã«æ³šæããå¿ èŠããããŸãã