Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

VirtualBox 端口映射失敗?Windows 網路堆疊修復指令大全

編輯:關於 Linux

VirtualBox 啟動時 NAT 端口映射失敗,日誌顯示 can't create datagram socket、failed to redirect TCP/UDP。排除端口佔用、防火牆後,證實為 Windows 網路堆疊損毀。使用 Winsock/DNS 快取修復指令即可解決。

修復指令(以系統管理員身份執行 PowerShell/CMD)

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

執行完成後重開機,VirtualBox 端口映射恢復正常。此修復不限 VirtualBox,適用所有需端口映射的軟體。


若有其他 Windows 網路異常,亦可嘗試 Windows 修復工具箱映像修復。

Copyright © Windows教程網 All Rights Reserved