![無法 ping 到我的公共 IP(我使用的是 3G 適配器)](https://rvso.com/image/1465796/%E7%84%A1%E6%B3%95%20ping%20%E5%88%B0%E6%88%91%E7%9A%84%E5%85%AC%E5%85%B1%20IP%EF%BC%88%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%203G%20%E9%81%A9%E9%85%8D%E5%99%A8%EF%BC%89.png)
我透過谷歌搜尋找到了我的公共IP我的IP位址是什麼這是Google提供的服務(IP顯示在搜尋結果上方)。我嘗試從另一台連接到互聯網的電腦 ping 該公共 IP。這兩台電腦透過兩個適配器連接到網際網路。這是透過兩個本地 ISP 實現的。無法從另一台機器 ping 通公用 IP 的原因可能是什麼?搜尋谷歌沒有幫助。
更新
發出 ifconfig 命令後,我發現以下位址從 10 開始(出於安全原因,我用星號隱藏了它)。
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 10.***.**.** --> 10.64.64.64 netmask 0xff000000
當我從互聯網上的另一台電腦 ping 這個位址時,它說Destination host unreachable.
需要找出我收到此訊息的原因
更新2 (由巴洛普添加)
他好像沒有路由器。
我對 3G 適配器不太了解,但從評論來看,OP 似乎有
E156G、HSDPA U 盤
他有兩台電腦,每台電腦都有一台。
以下是插入這些加密狗之一時 ipconfig 顯示的資訊。
Windows IP Configuration
Host Name . . . . . . . . . . . . : Thakshi
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
PPP adapter Mobitel:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Mobitel
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.224.54.236(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0
DNS Servers . . . . . . . . . . . : 172.19.70.210
172.19.70.211
NetBIOS over Tcpip. . . . . . . . : Disabled
Mobile Broadband adapter Mobile broadband 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HUAWEI Mobile Connect - Network Card #3
Physical Address. . . . . . . . . : 58-2C-80-13-92-63
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : DC-85-DE-F5-9A-08
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Local Area Connection* 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : 1E-85-DE-F5-9A-09
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Wi-Fi:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Qualcomm Atheros AR956x Wireless Network
Adapter
Physical Address. . . . . . . . . : DC-85-DE-F5-9A-09
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 1C-B7-2C-32-4A-24
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:2c86:35f0:f51f:c913(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::2c86:35f0:f51f:c913%18(Preferred)
Default Gateway . . . . . . . . . : ::
DHCPv6 IAID . . . . . . . . . . . : 620756992
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-56-9C-EC-1C-B7-2C-32-4A-24
NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter isatap.{8B737949-1FAF-41C5-BDD0-89FFA7B46483}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
所以他的電腦的IP在這裡 IPv4 Address . . : 10.224.54.236(Preferred)
是私有的。
閘道下的 IP 在 ipconfig /all 中列為 0.0.0.0
我想這證實了他沒有使用一個。
Whatismyip 向他顯示了公共 IP 69.XYZ
他無法 ping 通的公共 IP
答案1
你在扭曲問題,它是如此簡單:
我們這裡有 2 種類型的網路:
1)子網[加密狗和手機等設備在行動電信商網路中]
2)網際網路[行動電信商和其他一切在世界上]
IP 類型:
1)子網:[私有/內部/子網路/本地ip] 10.136.50.4 --> 10.#.#.#
2)網際網路:[公共/外部/網際網路/全球IP] 200.67.49.24 --> #.#.#.#
據我們所知無法直接訪問到您的裝置來自網際網路的子網路因為它沒有唯一的公共IP事實上你擁有的公共IP是你的行動電信商公網ip,你透過他們連接到互聯網,這意味著你在他們背後並且他們共享同一個IP對很多人來說。
如果你想測試 ping但懷疑如果您的加密狗或作業系統接受它,您可以安裝免費的 ftp 伺服器並嘗試透過免費的 ftp 客戶端連接到它們!
額外幫助:
搜尋網路類型
搜尋 NAT(網路位址轉換)
https://superuser.com/q/1060928/578610
答案2
無法 ping 該 IP 的最可能原因是您的路由器沒有回應 ICMP 回顯訊息(讀取 ping)。通常這樣做是為了讓人們無法僅透過 ping 每個地址來查找活動連接。
您的路由器上可能有一個設定可以啟用此功能,但在不知道硬體資訊的情況下很難猜測。使用「啟用 ping」快速搜尋路由器型號可能會對您有所幫助,這取決於其他人是否遇到過相同的問題。您也可以檢查路由器設定頁面。
如果不是這樣,我猜你的 ISP 可能會將這些資料包丟棄在鏈的更高位置,因此你對此無能為力,但我懷疑這種可能性極小。