Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
benyamin218118 committed Mar 28, 2023
2 parents 829c037 + 5593618 commit 9087d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tcp forwarder

its a simple tcp forwarding tool
its a simple tcp forwarding tool to forward incoming tcp connections to a remote service at a remote host

## Download and usage :
```
Expand All @@ -14,7 +14,7 @@ chmod +x ./tcpforwarder

**we want to forward incoming tcp connections from our ir vps to a service running on port 9090 on a usa vps**
- first we need to choose a listen port for the ir vps like 8080 ( we will accept the incoming tcp connections on it )
- our usa vps ip address is 44.55.66.77 and that service port is 9090 as mentioned before
- our usa vps ip address is 44.55.66.77 and that service port is 9090 as mentioned before ( `you can use domain address instead of the ip too` )
- so we need to replace the variables in `./tcpforwarder -lPort LISTEN_PORT -rHost REMOTE_SERVER_HOST -rPort REMOTE_SERVER_PORT` and run it on the ir vps:

> ./tcpforwarder -lPort 8080 -rHost 44.55.66.77 -rPort 9090
Expand Down

0 comments on commit 9087d45

Please sign in to comment.