您已經將貴公司網位址貼上去了. 是否應先修改抓圖的外部IP?
外部IP?..我也對調試過了
還是不行
您誤會我的意思了, 我是說, 當您用xxx.xxx來掩飾您的實際IP位址, 其實真實的IP位址還是出現在圖中, 也出現在一些地方.
$ sudo nmap -PN -p 5100 60.***.**.219
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-18 20:14 CST
Nmap scan report for 60-***-**-219.HINET-IP.hinet.net (60.***.**.219)
Host is up.
PORT STATE SERVICE
5100/tcp filtered admd
Nmap done: 1 IP address (1 host up) scanned in 6.32 seconds
$ sudo nmap -PN -p 4100 60.***.**.219
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-18 20:37 CST
Nmap scan report for 60-***-**-219.HINET-IP.hinet.net (60.***.**.219)
Host is up (0.046s latency).
PORT STATE SERVICE
4100/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.31 seconds
$ sudo nmap -PN -p 4100 60.***.**.218
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-18 20:37 CST
Nmap scan report for 60-***-**-218.HINET-IP.hinet.net (60.***.**.218)
Host is up (0.048s latency).
PORT STATE SERVICE
4100/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.33 seconds
$ sudo nmap -PN -p 5100 60.***.**.218
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-18 20:37 CST
Nmap scan report for 60-***-**-218.hinet-ip.hinet.net (60.***.**.218)
Host is up (0.048s latency).
PORT STATE SERVICE
5100/tcp filtered admd
Nmap done: 1 IP address (1 host up) scanned in 0.31 seconds
$ sudo nmap -PN -p 5100 232.**.***.152
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-18 20:40 CST
Nmap scan report for 232.**.***.152
Host is up (0.00040s latency).
PORT STATE SERVICE
5100/tcp closed admd
Nmap done: 1 IP address (1 host up) scanned in 0.72 seconds
$ sudo nmap -PN -p 4100 232.**.***.152
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-18 20:40 CST
Nmap scan report for 232.**.***.152
Host is up (0.00038s latency).
PORT STATE SERVICE
4100/tcp closed unknown
Nmap done: 1 IP address (1 host up) scanned in 0.70 seconds
$ nc -zv 60.***.**.219 4100
Connection to 60.***.**.219 4100 port [tcp/*] succeeded!
$ nc -zv 60.***.**.219 5100
Connection to 60.***.**.219 5100 port [tcp/*] succeeded!
$ nc -zv 60.***.**.218 4100
Connection to 60.***.**.218 4100 port [tcp/*] succeeded!
$ nc -zv 60.***.**.219 4100
Connection to 60.***.**.219 4100 port [tcp/*] succeeded!
$ nc -zv 232.**.***.152 4100
nc: connect to 232.**.***.152 port 4100 (tcp) failed: Network is unreachable
$ nc -zv 232.**.***.152 5100
nc: connect to 232.**.***.152 port 5100 (tcp) failed: Network is unreachable
更正:
$ nc -zv 60.***.**.219 4100
Connection to 60.***.**.219 4100 port [tcp/*] succeeded!
$ nc -zv 60.***.**.219 5100
Connection to 60.***.**.219 5100 port [tcp/*] succeeded!
$ nc -zv 60.***.**.218 4100
Connection to 60.***.**.218 4100 port [tcp/*] succeeded!
$ nc -zv 60.***.**.218 5100
nc: connect to 60.***.**.218 port 5100 (tcp) failed: Connection refused
$ nc -zv 232.**.***.152 4100
nc: connect to 232.**.***.152 port 4100 (tcp) failed: Network is unreachable
$ nc -zv 232.**.***.152 5100
nc: connect to 232.**.***.152 port 5100 (tcp) failed: Network is unreachable
我用的是您的真實IP.
從您貼的那份文件看來, 外部 IP 測試都有通啊! Log 裡面不是都寫了嗎:
<pre class="c" name="code">PortQry -n 60.XXX.xxx.218 -p tcp -o 4100, -l 60-218.log
querying...
TCP port 4100 (unknown service): LISTENING
這代表 .218 的 Port 4100 可以從外面連進來, 符合您的需求....
<pre class="c" name="code">PortQry -n 60. .XXX.xxx.219 -p tcp -o 5100, -l 60-2185.log
querying...
TCP port 5100 (unknown service): LISTENING
這代表 .219 的 Port 5100 可以從外面連進來, 符合您的需求....
<pre class="c" name="code">PortQry -n 203. XXX.xxx.152 -p tcp -o 5100,4100, -l out.log
querying...
TCP port 5100 (unknown service): LISTENING
TCP port 4100 (unknown service): LISTENING
這代表 .152 的 Port 4100/5100 都可以從外面連進來, 符合您的需求....
從這些 Log 來看, 您的外部 Port 都已經有 Mapping 到內部來了, 且前面幾個內部測試也都有通過, 內外網的 Port 連接應該沒有問題. 接下來應該要查您的程式才對, 似乎是您的程式沒有去回應外網來的需求?....看看 AP 裡面的 Log 是如何回應外部的連接?