重启后netsh portproxy无法正常工作 [英] netsh portproxy not working after reboot

查看:1494
本文介绍了重启后netsh portproxy无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们正在使用运行Windows Embedded Standard(基于Win7)的嵌入式计算机作为嵌入式系统的一部分。在我们目前的情况下,操作系统必须将端口从连接的电子端口转发到外部世界。


我们尝试使用Windows提供的netsh portproxy功能并发现它使用以下命令行时工作:


netsh interface portproxy add v4tov4 listenport = [PORT] listenaddress = [LISTENADDRESS] connectport = [PORT] connectaddress = [CONNECTADDRESS]


当使用正在运行的Windows实例激活它时,这对我们非常有效。我们遇到困难的问题是,重启机器后,配置似乎完好无损,我们通过使用show all命令观察到:


netsh interface portproxy show all


即使显示配置很困难,实际转发也不会。重启后,所有使用指定端口的尝试都会失败。当我们在重新启动后再次删除并添加配置时,一切正常。


这个行为是windows的一个已知问题,还是有一个必须被认可的配置,所以portproxy-重启后功能也有效吗?



非常感谢您的回答,


Christian

解决方案

嗯......您可以查看正在运行的服务。

例如用于解决IP-Adress DHCP必须正在运行,否则命令将失败。


可能有一些服务在配置运行和运行时获取startet但在重新启动后没有重新输入命令服务种类是'manuel'并且没有运行。



只是一个疯狂的猜测,但我不知道dhcp服务必须运行才能设置IP地址


Hello everybody,

we are using an embedded computer running Windows Embedded Standard (based on Win7) as part of an embedded system. In our current case, the operating system has to forward a port from the connected electronics port to the outside world.

We have tried using the netsh portproxy-functionality provided by Windows and found it to be working when using the following command line:

netsh interface portproxy add v4tov4 listenport=[PORT] listenaddress=[LISTENADDRESS] connectport=[PORT] connectaddress=[CONNECTADDRESS]

This works very well for us when activating it with a running windows instance. The problem that we are experiencing tough is that after rebooting the machine, the configuration seems to be intact, which we observe by using the show all command:

netsh interface portproxy show all

Even tough the configuration is displayed, the actual forwarding doesn't. All attempts to use the designated port fail after the reboot. When we delete and add the configuration again after the reboot, everything works fine again.

It this behavior a known issue with windows or is there a configuration that has to be acknowlegded so the portproxy-functionality also works after a reboot?

Thank you very much for any answers,

Christian

解决方案

Hm... You might check the running Services.
E.g. for adressing IP-Adress DHCP must be running otherwise the command will fail.

Maybe there is some Services that gets startet while the configuration is running and working but after reboot and without reentering the command some Kind of Services is 'manuel' and not running.

Just a wild guess but I didn't know either that dhcp Service has to be running for set an IP adress.


这篇关于重启后netsh portproxy无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆