Port Forwarding (linux/windows)

Source: Internet
Author: User

Purpose

Listen to the native 7777 port and forward the data to the 8888 port of 192.168.7.8 for TCP data forwarding.


Method

1,ncat (Linux/windows Universal) (NCAT Port forwarding)

Ncat--sh-exec "Ncat 192.168.7.8 8888"-L 7777--keep-open

2.netsh (Windows) (port forwarding in Windows)

2.1. Setting

netsh interface portproxy add v4tov4 listenport=7777 listenaddress=0.0.0.0 connectport=8888 connectaddress=192.168.7.8

2.2. Display

netsh interface portproxy show all

2.3. Removal

netsh interface portproxy delete v4tov4 listenport=7777 listenaddress=0.0.0.0


Related reading:

1. Port forwarding tools under Windows and Linux platforms

2 . Simple TCP Proxy Server

3.centos6.5 iptables for Port forwarding


Walker * * *


This article is from "Walker's Journal" blog, please be sure to keep this source http://walkerqt.blog.51cto.com/1310630/1947585

Port Forwarding (linux/windows)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.