本文介绍了1台计算机上的端口转发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我只需要在我的计算机(OS Windows 7)上转发数据,用于从端口80到端口8178的传出和传入请求。我的本地ip - 192.168.0.101。为此,我决定使用netsh。我的程序在端口8178上侦听我机器上的所有网络接口。我的命令:

我试试 - netsh接口portproxy add v4tov4 listenport = 80 connectaddress = 192.168.0.101 connectport = 8178 listenaddress = 0.0.0.0

然后我尝试更改listenaddress - netsh interface portproxy add v4tov4 listenport = 80 connectaddress = 192.168.0.101 connectport = 8178 listenaddress = 192.168.0.101

但它没有用。为什么?有谁能够帮我?谢谢。

Hi!. I need forward data only on my computer (OS Windows 7 ) for outgoing and incoming requests from port 80 to port 8178. My local ip - 192.168.0.101. For this I decided use netsh. My program is listen all network interfaces on my machine on port 8178. My commands:
I try - netsh interface portproxy add v4tov4 listenport=80 connectaddress=192.168.0.101 connectport=8178 listenaddress=0.0.0.0
then I try change listenaddress - netsh interface portproxy add v4tov4 listenport=80 connectaddress=192.168.0.101 connectport=8178 listenaddress=192.168.0.101
But it didn''t work. Why? Can anybody help me? Thanks.

推荐答案


这篇关于1台计算机上的端口转发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 16:38