简体   繁体   English

如何启用 wsl 来响应广播 ping 请求

[英]how to enable wsl to respond to broadcast ping request

I was using WSL to run ROS commands, and at a point i had to enable system to respond to broadcast icmp requests (for a multi master kind of a setup) ie on linux i had to make sure我正在使用 WSL 来运行 ROS 命令,并且在某个时候我必须使系统能够响应广播 icmp 请求(对于多主类型的设置),即在 linux 上我必须确保

cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts

returns 0. but WSL does not contain such a file, so i was thinking of enabling it on windows.返回 0. 但 WSL 不包含这样的文件,所以我想在 Windows 上启用它。 All the sources i have gone through suggest me to add a rule to firewall but my system is not responding to broadcast ping even when my system's firewall is turned off(domain, private and public have been turned off same with my buddy who is no the same network).我所经历的所有来源都建议我向防火墙添加规则,但即使我的系统的防火墙关闭,我的系统也没有响应广播 ping(域、私有和公共已与我的好友一样关闭,他不是同一个网络)。 i am using an android phone's mobile hotspot to check this.我正在使用安卓手机的移动热点来检查这个。

it would be great if someone could help me on this.如果有人能在这方面帮助我,那就太好了。
thanks in advance.提前致谢。

I asked something similar我问了类似的问题

I don't know how to do it purely on WSL.我不知道如何纯粹在 WSL 上做到这一点。 But on windows you have to start the "TCPSVCS.EXE" process.但是在 Windows 上,您必须启动“TCPSVCS.EXE”进程。 located on System32位于 System32

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM