1台计算机上的端口转发 [英] Port forwarding on 1 computer

查看:91
本文介绍了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.

推荐答案

我似乎与c ++无关。

但是,试试这个。 [ ^ ]
It doesn''t seems to me related to c++.
but, try this.[^]


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

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