UPNPqΧYY 
 

²
H۶VӶVhaxMp~KmqA̷| o{O@ثD`jjq귽@ɤu CInternet sOW
öQ귽@Ai i@ɡC@ Internet sAPɧQλK yB޲z²檺axΤp줽ǺAݭnp 
Internet CInternet q`N NAT]a} ^@NhӥDs Internet H@ɳӤ@ IP a}~|C
OAӸѨM׫o|}ah غε{Cڭ̱Nb夤惡[HC

{ NAT Traversal ޳N\ε{˴O_ sba NAT ]ơC˴Aε{HY NAT itmAwq
M gӸѨMۮeʰDC

ݩ󷧭zʤ峹ANVε{ΤM}oH²nФ@U NATA ЦpѧO` NAT DAPɤ
{pϥ NAT Traversal ӸѨM oǰDCWindows ҴѪ NAT Traversal API Բӧ޳NƦ 2001 ~ L}l
b Windows Platform SDK oCij}oHd\oǸ귽AAѦ pRQγoǷsާ@tΥ\]]wXi
T]ƤW^Բӻ C

NAT Traversal ̿󴣨 UpnP]qΧYYΡ^ NAT ]ơAwq UPnP ׾ª Internet Gateway Device Working 
Committee XC UPnP HA i UPnP Web ICSOԲӪƦ UPnP IȭXݪ C

 UPnP M NAT Traversal O Internet ]Ƥn\Aݭn[HT {CʶRίΪAȴѰ Internet ]
ƪΤAڭ̱jPijuҼ{ ΨǬ NAT Traversal  UPnP ]ơAoO]ӥ\󺡨ΤB C
OΤΨϥΧ󦳳зsʪAȩMε{ӨnC

]ƻsyӦӨAV Internet ]ƷsW NAT Traversal  UPnP  äAOΤA]Ϊjq
CqLϥ UPnP]¦wgO Internet зǩMij^AInternet ]ƻsyӴNiHѨM NAT Traversal DA NuI
jhƸgLӳ]ƪε{CoP\hε{}oHκ ]ƻsyӤoѨMWzDӴѤ@ʸѨM
קΦAC ëDbƱb Internet ]ƤI NAT Traversal wsyӴѸԲ nCH
AаѾ\ UPnP ׾ Web IC

A Windows tcBM UPnP Rzѥ|UAëD pC

O NATH
ua}ഫv(NAT) O@ Internet Engineering Task Force (IETF) зǡAΩ \MκWhx PC ]ϥαMΦa}
dAҦp 10.0.x.xB192.168.x.xB172.x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C

AȾW
AȾƥ]ɡA{ۤvObM@x㦳i IP a}p iqTC|QΦۤvrq IP a
}MPortN^ƥ]wV NAT ]ƪ~ IP a}MPortC

NAT ]ƤWJƥ]
NAT qAȾoǸƥ]AMNƥ]PPortMgiCp G NAT o{YPortMg{D IP a
}B{PortB~Portκij PJƥ] IP a}BPortBؼPortMijǰtANAT N|i ϦV
CNAT Nƥ]ؼЦrq~ IP a}M~PortȤ M IP a}MPortC

HANAT NWƥ]oeȤCpG NAT 䤣 fMgAN|Jƥ]ä_sC

NAT @ΦbGȤNby Internet WPM IP a}iqTA {ǩΫȤoLݰB~u@CoN
ε{䥦 APIA Ȥ]i䥦tmCoرpUANAT ȤMAȾε{N Oz
 - ҦHॿ`u@C

OAëDҦε{ϥίP NAT Pu@ijCoNOD bC

NAT Pε{`D
pGȤb}lsM^_ɳϥΦP@PortAhȤQ NAT Ӧ@ ɳӥiѪ IP a}|
DCOA\hε{ҥε wb NAT ]ƥΩs Internet ɳߡCo̱NQר䤤@ǰDC

WA
\hAȩΪAȾwGpGإߺťMrAh Internet WҦȤ iHPpôCbtW NAT ]
ɡANAT onDiPortMgAH KNJqToWAȡC]AӪAȶȹMκWȤ ġC
 Internet lӨiΡC

ӰḎ`ѨMkOʰtmPortMgA NAT ]ƱNwV NAT Sw ~ IP a}MPortqToӪAȩҥΪ
 IP a}MPortC

QθPortMgAAȥiHJƥ]AqӨϪAȥiQMκ~ ҨϥΡCإPortMgeAO_}
C

ʰtmӬMgL{q`AnDg窺Τ~ॿTiMg tmC]ADOpôۤvea Internet A
ȴѰӡBPC syӡBsө Internet syӪȤAȤߥHէDڷθѨMסA_h\h @Τ
p~ΤNLkϥΩһݪε{ΪAȡCWzpٷ|y MgYG\h~ȤiHϥθӬMgӳs
AȾC

OJa}Port
Ǻε{wȤҤt IP a}MPortNlץiiѡA ib Internet WϥΡC\hpUA
ݩ IETF Oda}d򤺪M IP a}Cε{|boeAȾƥ]t]tӱM IP a}PortC AȾi
HNӴOJa}Χ@pôȤɩҥΪa}C

pGAȾչϥδOJ IP a}MPorti^_AӫD NAT ѪMga}M fAtδN|Ӹƥ]CoO]OJ IP 
a}OLkѪCpG {ǯ NAT ]ƨ˯ҭnϥΪ~ IP a}M~PortMgAε{ ǴNiHb
ƥ]OJTHC

ϥΤMrε{
٦@Ǻε{ϥPort X WMrVAȾιﵥqoeqTH AMᵥݱNAȾqTHPort Y 
WߺťMrWCNAT N XqTìPort X إPortMgAäM}Port Y ^ƥ]i PortMgCM
}Port Y Jƥ]NQC

ݭnPorti
ǺijwlצiѪwPortiΡChӫȤ@ IP a} ɡACNu@ӫȤϥΤw
PortCҦpACu@ Web Aȯ ϥΥaWPort 80CpGOoˡANAT ]ƱNLkTw~ШDҾA 
CYϦbtmPortMgΤ᪺UUApGqa~ hӫȤA]ĨYǯSIC

h NAT
pGȤ@ NAT ᭱ NAT ᭱AhX{DwWXҲ[\ dC

ΤM~vT
W@qФFP NAT Traversal ޳NDCqΤ᪺Aҳyv T²GH̦A]LkϥΨ NAT z
ZAȩε{C

{bAjhƥΤƦܨSNѨۤvwo NAT D`̡CL̥uO DAչϪhCΪ̨ϥιﵥ
{]ҦpiJɳqT^Ψ䥦Y ε{ɡAoLkεLkϥΡCL̥i|b PC ݨuLks v
~AΪ̦bչϨϥε{ɡA{ǫoX{G١C

ɡA㦳ջsѽվ Internet sΤbϥμջsѽվɤ|X{ WzDCΤUeaAȨñN DSL 
ιqlջsѽվ]ƻP NAT @_ ϥήɡAoX{G١Cbiֳt Internet spUAoǥΤר| NAT D
xZG̷|MTΤ᪱CΨϥΨ䥦AȡC

o˷|ިϥΤᤣA÷|Noؤ PC syӡBISPBInternet sy өΨ䥦Cq`AΤäDD
Aӧ޳NH]ä`ાD pqLqܸѨMoǰDC

owȬOΤ᪺DC]VΤᴣѲ~MAȪsyӪDCΤ bչϸѨMoǥ NAT ް_Dɷ|
qܡAӳoOη|ֻsy өιsӪQAƦܨϨLQCoǰD|ɭPΤեΪAȪAq ӨϬY
ǥΤ᭰CFsAȩε{C]ANAT |ê䥦 sʲ~/AȪXMϥΡC

ųWz]AѨM NAT Dw~@nȡC

O NAT TraversalH
NAT Traversal Ooˤ@ե\G\ε{Tۤv NAT ]ƪ ᭱Ao~ IP a}AñNPortMgtm
N NAT ~Portƥ]o ε{ҥΪPortAөҦodzO۰ʧA]Τᤣʰtm PortMg
䥦譱C

۹PثeҥΪBVSwε{䥦kӨAoѨM NAT ް_ sDTO@ا󬰥ѨM
סCثeϥΪDZMѨMצ nDΤ㦳@w޳NѡAnDε{}oH Internet sy i
M}ou@A]hnDW譱C

 NAT Traversal iHѨM@ NAT DAoOU઺A٤ѨM DCbΤạNסB֥Τ
IsƩMsB㦳гy ʪAȩMε{譱Aoئ۰ʦ NAT Traversal NFD`n@BA a
xҦӨC

NAT Traversal @ئbݭnɨϥΪBzAӫDbҦpUo@ ΡCb IPv6 ACӫȤ㦳i
Ѫ IP a}A]wAݭn NAT  NAT TraversalCN IPv6 bhɶo촶Mpo@DAUؤPw C~
ɡ]]A Microsoft^wJi IPv6Ab{bΥӪX~A ᭱ҭz NAT Traversal ѨM׹ƱѨM 
NAT D@ΤMp ~ΤӨoNqDZC

NAT Traversal ާ@
NAT Traversal ̿@qΧYY (UPnP) ׾³Wdզ Discovery and Control ijCUPnP ׾¦@Ӥu@e|D
ntdwq Internet ]ƪ ijéwqodz]ƪAȡC

 Internet ]Ʊij򥻤 Internet ]ƥiVW InۤvsbõoG XML yzɡCQ
γo XML yzɡAIN AѥΩTw Internet O_ NATB NAT ~ IP a}ΫإPortM gɻݭn
檺 UPnP ާ@C

Windows  NAT Traversal API 諾ϥ UPnP nDiFҡAiѥ ˴B޲zMtm NAT ]ƪfC

NAT Traversal API
ε{ݭn˴O_sb NAT ]ƨýվӳ]ƪ欰ɡAε{ iHϥ Windows Ѫ NAT Traversal 
API]Ob Platform SDK ^ӹ {UC\G

TwO_sb NAT
 NAT ~ IP a}C
Sw~PortRAPortMgH]pGwMg^C
sWRAPortMg]Dwt~Port^C
ҥΩθTίSwPortMgӤR
sRAPortMgɭͦnyz
RRAPortMg
RAPortMgC

Qγoǥ\Aε{iHѨM\h] NAT ӾɭPDC`NGWindows NAT Traversal API ثeȦbɶ
PortMgA_hN٬RAPortM gC

Windows XP  NAT Traversal API
w]pUAWindows XP Nw NAT Traversal APICo API ]iw˦b Windows Me M Windows 98 qAkO
ϥ Windows XP CD W@ӦW uwQɡvuCѪ[ XML R{ANAT Traversal API ٭nDw 
Internet Explorer 6.0C

Windows 2000 e NAT TraversalC

Internet  NAT Traversal
Internet  NAT Traversal OqLuqΧYYν׾¡vInternet Gateway Working Committee ҩwq Internet 
] (IGD) Wdӹ{C sy`NGWindows  NAT Traversal API  IGD iUCwG

IGD Cn@ӥ~fCަb޳NW\ Internet ]nhӥ~fA NAT Traversal API ouϥβĤ@
ӡC
IGD \󻷵{ IP a}Nƥ]oeȤPortMgC
IGD 㦳sa}]CȤ^PortMg
IGD  NAT ~PortƻPȤPortƤPC
IGD Nn 1C
RAPortMg]κ٫ɶ]mLPortMg^NLsbCYϬOsҰʨtΡB IP a }άOAȾWsb
ALkhRAPortMgC

g@L{AXӷ~ɻsyӤwgŧGb 2001 ~Ѥo UPnP kBP Windows NAT Traversal API P
ϥΪ Internet ]ơCo ~MΤ᳣OD`n@BC

H۶VӶVh Internet ]ƻsyӻ{Ѩϥ UPnP ѨMWzDҨ㦳 uաAHۧh@ΤMp~Τ}
lNѨP NAT DγoǤ  UPnP  NAT Traversal ѨMתjj\A NAT Traversal  UPnP  
]ƪ֬dΤJeC

Internet sy[J UPnP ׾¡AAѦpϦۤv Internet ]ƲŦX UPnP зǡC

OGWindows XP WuInternet s@ɡv UPnP IGD з 0.9 C wp 1.0 NP 0.9 ۮeC

ε{pQ NAT Traversal
ε{ϥ NAT Traversal 覡PhӦ]A]APortMg檺ͦs PortO_ΩhӫȤΪAȡCε{
MۤvإߪҦRAPortM gAHקKX{t߬MgPortQ䥦ε{ɪpC

pGε{O@غAȡ]Ҧp Web AȾ^AæbͦsnDϥΤw PortAw˵{ǴNiHϥ NAT Traversal 
API Ӱtm@RAPortMgC w䥦ε{B޲zBݼc쪬AӲM]OM gܡAh
~ȤNbAȥͦssӪAȡCε{ѰAȱN tdRӬMgCpGX{YAYϪAȤwsbAR
APortMg]Ns bCpG~ IP a}oܤơAhRAPortMgN۰諸eC

pGε{älװAΪ̹@RAPortMgH׭CA NiHbCҰʮɫOdYӤwPortA
bCɫ_귽Co@Ii qLYӨæ}ӹ{C@sWMRPortMgNסAiH ε{Ǯھ
ݭnҥΩMTάMgCε{٥iHl׫OdRAPortMgABu bCҥήɨs@UMgC

PˡApG~ IP a}oܤơAhRAPortMgN۰諸eC

pGMκWPȤhε{ϥΦP@PortAε{N| nDiקAHhӫȤCu
ӫȤϥΥ~PortMg PortCBijĤ@ӫȤϥΡC䥦ȤШDPortƤ P~Port
ƪDPortMgC

@دSpGhӫȤiťP@~PortAӰߤ@تOQ{D o{CJƥ]iHഫϥΤȤ
 IP a}sa}AӫDSw Ȥa}CťPortȤiqLҰʦۤvP{DsӤH ^_C
ijnMϥγoؤסA]Ӧa}Jƥ]NQW ȤA÷|ϹLӹ復̳yvTC

pGAȻݭnuťYHPortAbε{ШD@RAPortM gAӫDϥθ}CAȵɡAHM
]RMg^Cε{Od@ ۤvSPortMgOCoˡApGε{bYɨSMgANiH bU@
Ұʮ˯XMPortMgһݪnHC

pGε{}ɨSMPortMgAhӬMgN|OdUӡAӲM ȴNbΤ᪺WCثe Windows |S
MAoO]P_ε{ ǤAϥάMgɶD`C

NAT Traversal 
 NAT Traversal iHѨMPqL NAT ]ƶisɦhذDA  NAT Traversal LkѨMDΥѨް_
DCoǰD]AG

NAT Traversal ϥζ}񦡫HҦCoN۱MκWҦε{X NAT WҦ fMgC޳o˥iHW
[hI޲zFʡAε{]NhFMgߤ@vC
ε{NtdѨMĬCpGε{լMgYӤwMg䥦ȤPortANtdjMt @PortΧgε{
C
NAT Traversal LkѨMb ISP oMΦa}Mϥ NAT iȤs譱DCoرp UANAT  Internet ]
~AڤWAȴѰӺCpGȤW NAT t@ӦP NAT ᭱AaxΤp~ 
NAT Traversal N|X{G١C]Aij Internet AȴѰӤnbۤvp NATC
ε{ NAT Traversal ɨëD@LNC̥PɶiקH APIAΪHa}H ѸѨMסCojh
ƶ}oHӨbid򤺡AרOҼ{No NAT Traversal  äJε{Aε{N۰ʻPh 
Internet ]ƨPϥΡC
ϥΧPortMgAε{tdMu@CRAMg|LsbA̦nΩ󥴺bε{ sťwPort
AȡC
 NAT  Internet qΧYY Internet ]ƳWd]ܤ֬ 0.9^C


NAT Oo IETF {iѨMסAw諸O IPv4 W٪ŶӥΰDCϥ NAT  Internet g`ΩaxMp~C
ҥHϥΥ̡AO]̻K yA޲zALݥΤw˯SnC

ϥ NAT b|}a\hѡBhaCMﵥε{CoO] ̪ijtcҰww
ߡC

NAT Traversal ε{ѤF@jM NAT ]ơBo{iѪ@ IP a}ðtmRAPortMgHѨMYdzsD
~|CNAT Traversal ѨM׵L kѨMP NAT ҦDAiHwѳDC

媺Dn׬OG

Internet ]ƻsybۤv]Ƥ UPnPAqӤ NAT TraversalC
ε{}oHϥ Windows NAT Traversal API ˴ NAT sbAæbnɤ\ ε{gL NATC
ΤϥΤ UPnP M NAT Traversal  Internet ]ơAHTǪΪε{ʯC
DSL MqlջsѽվAȴѰwBPM NAT Traversal  UPnP  Internet ]ơC

b IPv6 ̲׮ NAT eAYǧΦ NAT Traversal |~sbC