Simple TCP port forwarding application.
It creates forwarding handler between local device and some target service.
For example there is some web server running on some.domain.example:80 and we want to traverse communication through our host on port 8888.
Start the program and start forwarding with following parameters:
127.0.0.1 8888 some.domain.example 80
This will open connection on port 8888 of our source device on all interfaces (0.0.0.0 is used when no exact ip is specified) , and will forward some.domain.example:80.
Anyone in our network can now access some.domain.example:80 by accessing our ip and port 8888.
Application remembers its settings in session.json file. It will autosave when the application exists.
JRE 8
Application can be run even from command line interface. In current state, only one forwarding rule can be run at a time.
Start application from command line with standard java -jar QPortForwarder.jar
and add parameters.
forward
- Forwarding command with following parameters options
localPort targetPort
- Creates port forwarding handler between
0.0.0.0:port
andlocalhost:port
- Creates port forwarding handler between
localPort targetIp targetPort
- Creates port forwarding handler between
0.0.0.0:port
andtargetIp:port
- Creates port forwarding handler between
localIp localPort targetIp targetPort
- Creates port forwarding handler from
localIp:port
to targettargetIp:port
- This is handy for example when local pc has multiple network interfaces and we need to provide forwarding between them.
- Creates port forwarding handler from
- Examples:
forward 8888 8080
will create forwarding handler between 0.0.0.0:8888 and 127.0.0.1:8080forward 8888 192.168.10.10 8080
will create forwarding handler from 0.0.0.0:8888 to ip 192.168.10.10:8080forward 192.168.10.5 8888 10.0.0.5 8080
will create forwarding handler from local ip & port 192.168.10.5:8080 to 10.0.0.5:8888
- Forwarding command with following parameters options
help
- Prints description of all available commands