国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

Windows和Virtualbox端口號映射失敗怎么辦?

瀏覽:113日期:2022-11-09 17:52:13

在Virtualbox虛擬機中運行Ubuntu系統(tǒng)時,有時候需要通過端口映射來實現(xiàn)主機pc端和虛擬機內(nèi)部鏡像通信,端口和虛擬機內(nèi)部的服務(wù)相對應(yīng)。在Virtualbox啟動階段會映射這些端口,然而在Windows中部分機器卻出現(xiàn)端口映射失敗的情況,那么,Windows和Virtualbox端口號映射失敗該怎么辦呢?

Windows和Virtualbox端口號映射失敗怎么辦?

端口映射失敗日志如下:

00:00:01.125577 NAT: set redirect UDP host 0.0.0.0:6000 =》 guest 10.0.2.15:6000

00:00:01.125748 NAT: can‘t create datagram socket

00:00:01.125763 NAT: failed to redirect UDP 0.0.0.0:6000 =》 10.0.2.15:6000

00:00:01.125774 NAT: set redirect TCP host 0.0.0.0:6555 =》 guest 10.0.2.15:5555

00:00:01.125897 NAT: failed to redirect TCP 0.0.0.0:6555 =》 10.0.2.15:5555

分析:

1.此處的端口號映射沒有占用Windows官方分配的端口號,所有不存在端口號被Windows服務(wù)占用導(dǎo)致無效映射的問題

2.通過netstat -ano查看所有正在使用端口,未發(fā)現(xiàn)映射的端口號被占用

3.上述兩點都排除了,那就排查Windows系統(tǒng)本身環(huán)境的問題,通過驗證發(fā)現(xiàn),可以通過修復(fù)工具修復(fù)此問題。即是由于Windows本身環(huán)境導(dǎo)致的。

具體修復(fù):Repair Winsock & DNS Cache

功能說明如下:

This will clear the stored DNS cache in Windows. When the DNS becomes corrupt you will not be able to get to some sites. Flushing and rebuilding the DNS will fix that problem.

Also resets winsock entries & resets TCP/IP stack.

These extra commands are run on Windows vista and newer.

執(zhí)行完如下幾條命令然后重啟,即可修復(fù)端口號映射失敗問題,此述不僅僅限于Virtualbox要使用的端口映射,其他任何軟件使用到端口映射且失敗時可以考慮用如下幾條命令修復(fù):

netsh winsock reset all

netsh int 6to4 reset all

netsh int ipv4 reset all

netsh int ipv6 reset all

netsh int httpstunnel reset all

netsh int isatap reset all

netsh int portproxy reset all

netsh int tcp reset all

netsh int teredo reset all

如上這些命令來源于Windows修復(fù)工具中其中一項

Windows和Virtualbox端口號映射失敗怎么辦?

如果有其他Windows問題可以嘗試用此工具鏡像修復(fù)。

標(biāo)簽: Windows系統(tǒng)
相關(guān)文章:
主站蜘蛛池模板: 仁怀市| 会同县| 都匀市| 孝义市| 怀来县| 华池县| 高尔夫| 林周县| 波密县| 德庆县| 平顶山市| 湖口县| 辽源市| 拉孜县| 聂拉木县| 宜宾市| 江津市| 桑日县| 玉环县| 乐山市| 湘乡市| 兖州市| 镇巴县| 山西省| 化州市| 沂南县| 会宁县| 安顺市| 垫江县| 丹棱县| 石城县| 大化| 拉孜县| 惠安县| 萍乡市| 武宣县| 拉孜县| 嘉义县| 青州市| 嘉黎县| 苏州市|