» 在您的路由器設定通訊埠轉遞
此頁面尚未被妥善翻譯!
幫助我們完成,您可得到免費的使用者授權(cFos、cFosSpeed 或 cFosBC)
更多資訊

Router guide banner
Get a free cFosSpeed and cFos Personal Net license!
Help us to complete our router guide .

How does NAT port forwarding work?

If you install a router that handles the Internet connections of your local network, it uses the public IP address which your Internet service provider assigned to you to communicate with other machines on the Internet. For reasons of simplicity and scarcity of IPv4 addresses, your ISP only assigns one address to your router, independent of how many machines are operating in your LAN. Each of your machines has a "local" IP address. Now the router has to employ a method to multiplex one "public" IP address to multiple "private" IP addresses in your LAN. This is done by NAT port forwarding.

All connections on the Internet can be identified by four parameters:

  • Source IP address
  • Source port number
  • Destination IP address
  • Destination port number

When one of the computers in your LAN initiates a connection to a server on the public Internet, it selects a source port number and establishes a connection to a certain destination IP address and port number. The source IP address for packets on this connection is the local ("private") address. However, this IP address is only valid in the LAN behind the router, but not on the Internet (hence the attribute "private").

So packets from the Internet can get back to your computer, the router maps your computer's local IP address and port number to a public IP address and port number. Typically, the port number is kept, but the local IP address must be replaced by the public IP address. The router modifies all packets sent to the remote server as long as the connection is alive. When the router receives a packet from the remote server for a mapped port, it uses the same port mapping to send the packet to the right computer on your LAN. For outgoing connections the router can establish this port mapping automatically.

For example:

  • Local ("private") IP address, e.g. 192.168.2.11
  • Local port, e.g. 4242
  • Remote IP address, e.g. 144.76.59.84
  • Remote port, e.g. 80 (for HTTP)
  • Public IP address, e.g. 85.161.92.143

Illustration port forwarding
Connections from 192.168.2.11:4242 to 144.76.59.84:80 are mapped to connections from 85.161.92.143:4242 to 144.76.59.84:80.

However, this automatic mapping is not possible for incoming connections. When someone from the Internet wants to establish a connection to one of the computers in your LAN, all your router sees is your public IP address as destination IP address and some port number, but it has no way to know to which local computer the packet should be forwarded. Therefore, you need to configure this mapping manually.

Usually the destination port number of incoming connection requests determines the local destination. You can set up your router accordingly, so that a certain destination port is always forwarded to a specific computer. If a new packet arrives from the Internet, your router replaces the public IP address and port number with their local counterparts that you had configured and then forwards the packet to the right local computer.

So from the standpoint of the public Internet all your local computers are just one machine with one public IP address and several established connections.

在您的路由器設定通訊埠轉遞

Get a free cFosSpeed and cFos Personal Net license! (If your router isn't already listed here)
Help us to complete our router guide .
Write instructions of how to set up NAT port forwarding with your router.

您的路由器已在清單中嗎?

選擇路由器品牌

2Wire
8level
Arcadyan
Arris
ASUS
Asuswrt-Merlin
Aterm
AVM (FRITZ!Box)
Binatone
BT
Cisco
Compal
Dasan
DD-WRT
Digisol
Draytek
D-Link
Edimax
Fast
Fiberhome
Hitron Technologies
Huawei
Intelbras
Jio
Kozumi
LB-LINK
Linksys
Mikrotik
Mitrastar
Multilaser
NetComm
Netgear
NetMaster
O2
Observa
OpenWRT
Orange
Pace
PandoraBox SDK
Peplink
Prolink
Proximus
Sagemcom
Sercoom
Sky
Speedport
Spectrum
Synology
Technicolor
Tenda
Thomson
Tomato
TP-Link
UniFi
Unitymedia
Virgin
Vodafone
Wolflink
Xiaomi
Zhone
ZTE
Zyxel
其他

2Wire

2701HG-G
其他

8level

AWRT-300
其他

Arcadyan

VGV7519
其他

Arris

TG1692A
TG2472
TG862
Touchstone DG1670
其他

ASUS

DSL-N12U
DSL-N12U_C1
DSL-N55U
DSL-N55U-C1
DSL-N55U-D1
RT-AC54U
RT-AC66U
RT-AC68U
RT-AC86U
RT-AC87U
RT-AC88U
RT-AC5300
RT-N12HP
RT-N56U
RT-N66U
WL-330N3G
其他

Asuswrt-Merlin

Asuswrt-Merlin
其他

Aterm

WG1400HP
其他

AVM (FRITZ!Box)

FRITZ!Box 3370
FRITZ!Box 3390
FRITZ!Box 6490 Cable
FRITZ!Box 7113
FRITZ!Box 7170
FRITZ!Box 7270
FRITZ!Box 7312
FRITZ!Box 7360
FRITZ!Box 7362 SL
FRITZ!Box 7390
FRITZ!Box 7490
其他

Belkin

Connect N150 (F7D5301v1)
F9K1102 v3
F9K1105 v1
F9K1115 v2
N+ Wireless Router (F5D8235-4)
其他

Binatone

DT910W
其他

BT

Home Hub 5 (Type A)
其他

Cisco

EPC3925
Valet M10 V2
其他

Compal

CH7465LG
其他

Dasan

H640W
其他

DD-WRT

DD-WRT
其他

Digisol

DG-HR3300
其他

Draytek

VIGOR 2830n
其他

D-Link

DIR-300NRU rev.B5/B6
DIR-605LW
DIR-612
DIR-615
DIR-655
DIR-809
DIR-818LW
DIR-820L
DIR-825
DIR-842
DIR-850L
DIR-862L
DIR-880L
DSL-2730U
DSL-2750
DSL-2640T
DSL-520B-SE
DVG 5102S
DWR-116
Viper DSL-2900AL Dual Band AC1900
其他

Edimax

BR6228N
其他

Fast

FWR200
其他

Fiberhome

AN5506-04-F
其他

Hitron

CGNF-TWN
其他

Huawei

B315s-936
HG532e
HG633
WS319
其他

Intelbras

WRN 150
其他

Jio

JioFi 2
其他

Kozumi

KM-4150NR
其他

LB-LINK

BL-MP02
其他

Linksys

E2500
EA6900
N750 (EA3500)
WRT1900ACS
WRT600N
其他

Mikrotik

RB2011UiAS-2HnD-IN
RB951G-2HnD
其他

Mitrastar

HGW-2501GN-R2
其他

Multilaser

N 150mbps
其他

NetComm

NetComm ADSL2+ Wireless N300 Modem Router (NB304N)
其他

Netgear

DG834N
JWNR2010
R6300v2
R7000 (Nighthawk)
WNDR3700 N600
WNDR3800
WNDR3400v2
WNR2000v2
CENTRIA WNDR4700
其他

NetMaster

CBW-383Z4
其他

O2

Homebox 6641 (Homebox II)
其他

Observa

BRA14NR_H2
其他

OpenWRT

OpenWRT

Orange

Livebox 3.0
其他

Pace

5168N
其他

PandoraBox SDK

Version 14.09
其他

Peplink

Balance One
其他

Prolink

H5004NK
其他

Proximus

BBox3
其他

Sagemcom

2764
其他

Sercoom

VD625
其他

Sky

Hub SR101
其他

Speedport

W 724V
W 921V
其他

Spectrum

Technicolor TC8715D
其他

Synology

RT1900ac
其他

Tenda

AC15
FH1202
其他

Technicolor

DPC3848VE
TC7200
TC8715D
TG589VN v3
其他

Thomson

TG789vn v1
其他

Tomato

Tomato
其他

TP-Link

AC750 Archer C20i
Archer C1200
DSL-2700E
TD-8840Tv4
TD-W8951ND
TD-W8970
TD-W9970
TL-MR3040
TL-MR3420
TL-WDR4300
TL-WR1043ND
TL-WR740N
TL-WR541G/TL-WR542G
TL-WR741ND
TL-WR840N
TL-WR841N
TL-WR842N
TL-WR845N
TL-WR886N
其他

UniFi

Security Gateway 3P
其他

Unitymedia

Connect Box
Horizon
Technicolor TC7200
其他

Virgin

Media Hub 3.0
Superhub 2
其他

Vodafone

Station Revolution
其他

Wolflink

HC5661-Wolflink
其他

Xiaomi

MI 3C
MiWiFi Mini
其他

Zhone

ZNID-GPON-2426A-2TS
其他

ZTE

F609
ZXHN H108N V2.5
其他

Zyxel

Keenetic Giga
C1100Z
其他

其他

若您知道如何設定此路由器,並想告訴我們以獲得 cFosSpeed 及 cFos Personal Net 授權金鑰的話,請點擊下方按紐。
(If your router isn't already listed here)

重要
教學內容應包含畫面擷圖以及明確而清楚的步驟教學,您可參考 此範例
可在 此處 下載用於畫面擷取圖中標示各步驟數字的圖片。 Please don't use other means (e.g. arrows or circles) to mark the steps
The screenshots should not be scaled down and saved as 24-bit PNG or high quality JPG.
Please don't put your screenshots into any kind of container file (e.g. DOC, PDF or HTML mail), but send them as single files or in one ZIP archive. To describe the specific steps you can use a plain text file or the body of your mail.



cFos Personal Net Web Server 提供
Practice random kindness and senseless acts of beauty