别人ping不通我的ip解决方法_如何让对方ping通你的ip-CSDN博客
前提是在vite.config.ts中配置 host:'0,0,0,0'
server: {
// Listening on all local IPs
host: true,
https: false,
port: VITE_PORT,
// Load proxy configuration from .env
proxy: createProxy(VITE_PROXY),
},
然后可以windows电脑可以 win+r 打开cmd 然后 ping
假设网址http://192.168.0.106:3100/certificatesSearch
那么就ping192.168.0.106看是否ping通
本文介绍了在Vite.config.ts中配置host为0,0,0,0以允许所有本地IP访问时,如何在Windows环境下使用ping命令检查IP可达性。作者提供了步骤,如在CMD中ping特定IP地址,以验证服务器设置是否正确。
2307

被折叠的 条评论
为什么被折叠?



