以下の内容はhttps://matsudamper.hatenablog.com/entry/2020/04/16/022605より取得しました。


netsh.exeコマンドでポートフォワーディングしてみる

はじめに

管理者権限で起動したコマンドプロンプトが必要になります。

追加

(v4 or v6) to (v4 or v6)が追加できます。2*2で四種類。

localhost:8081を192.168.0.10:8080に転送するコマンド。

netsh interface portproxy add v4tov4 listenaddress=localhost listenport=8081 connectaddress=192.168.0.10 connectport=8080

localhostではなく「*」ワイルドカードも使用できます。

確認

以下のコマンドで追加したものを確認できる。

netsh interface portproxy show all
netsh interface portproxy show v4tov4
netsh interface portproxy show v4tov6
netsh interface portproxy show v6tov4
netsh interface portproxy show v6tov6

削除

削除には listenaddresslistenport が必要です。

netsh interface portproxy delete v4tov4 listenport=8081 listenaddress=localhost



以上の内容はhttps://matsudamper.hatenablog.com/entry/2020/04/16/022605より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14