Skip to content

Commit 02504fe

Browse files
Add Tunnelmole as an open source tunnelling option in addition to ngrok (#1899)
1 parent 14e27df commit 02504fe

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,28 @@ docker run -p 80:80 kennethreitz/httpbin
666666

667667
`SERVER_HOST` defined in `demos/http/http_demo_plaintext/demo_config.h` can now be set to `localhost`.
668668

669-
To run `http_demo_basic_tls`, [download ngrok](https://ngrok.com/download) in order to create an HTTPS tunnel to the httpbin server currently hosted on port 80:
669+
To run `http_demo_basic_tls`, you could use either [Tunnelmole](https://github.com/robbie-cahill/tunnelmole-client), an open source tunneling tool, or [ngrok](https://ngrok.com/download), a popular closed source tunneling tool, to create an HTTPS tunnel to the httpbin server currently hosted on port 80:
670+
671+
**Using Tunnelmole**
672+
First, install Tunnelmole. On Linux, Mac and Windows Subsystem for Linux, use
673+
674+
```sh
675+
curl -O https://tunnelmole.com/sh/install.sh && sudo bash install.sh
676+
```
677+
678+
For Windows without WSL, [download tmole.exe](https://tunnelmole.com/downloads/tmole.exe) and add it to your [PATH](https://www.wikihow.com/Change-the-PATH-Environment-Variable-on-Windows).
679+
680+
Then run `tmole 80`
681+
682+
```sh
683+
tmole 80
684+
```
685+
686+
Tunnelmole will provide a https link that can be substituted in `demos/http/http_demo_basic_tls/demo_config.h` and has a format of `https://bvdo5f-ip-49-183-170-144.tunnelmole.net`.
687+
688+
Set `SERVER_HOST` in `demos/http/http_demo_basic_tls/demo_config.h` to the https link provided by Tunnelmole, without `https://` preceding it.
689+
690+
**Using ngrok**
670691

671692
```sh
672693
./ngrok http 80 # May have to use ./ngrok.exe depending on OS or filename of the executable

0 commit comments

Comments
 (0)