Comments (5)
Are you running a webserver on port 8080? You need to tell ngrok which port your local web server is running on. The port 8080 used in the documentation is just an example.
For example, if I'm developing a web service that's running on port 80 (like apache+php), I would run ngrok as follows:
./ngrok 80
Please send me a gist of the cygwin terminal error, I'm interested in fixing that.
from ngrok.
how dumb of me...
Somehow I didn't realize ngrok was tunneling to a unique port. I guess I was focused on my own need which is the equivalent of ssh -D
, i.e. a dynamic tunnel that can support request on any port.
I thought the localport was to communicate with a local ngrok listener process that would then redirect on demand.
Anyway, that's pretty useful stuff.
You may not have thought of this you case, but FYI the fiber optical provider in the country I live don't even bother to provide IP address anymore. (I mean not even a dynamic IP). They most probably do big scale NAT.
They say "there isn't enough IPv4 addresses, we can't provide one unless you pay for entreprise level service"
So there isn't a convenient way to host service anymore.
ngrok comes very handy to circumvent that problem.
here's the gist of the cygwin crash: https://gist.github.com/nodje/6373558
from ngrok.
I've opened a separate issue for the cygwin crash.
I'm interested in your other use case. If I understand it correctly, you basically want to run a public SOCKS server into your network? So that there's a public port you can connect to and that will allow you to initiate a TCP connection via SOCKS to any address:port on your local network?
The next version of ngrok will support running multiple tunnels simultaneously, which (if I've understood you correctly) won't exactly get you everything you want, but it should be closer. For now, of course, you can always run multiple ngrok processes to get multiple tunnels.
from ngrok.
I guess running multiple tunnels simultaneously would do for my needs, it would be a replacement for port opening on a router - which is now useless for me since I don't have a public IP anymore.
If I could open an ssh connection on a specified port through ngrok, I would probably get an ssh -D
equivalent behavior, woudn't I ?
from ngrok.
Yes, I think you would. And you can tunnel ssh connections (or any other protocol) by using ngrok in TCP mode.
ngrok -proto tcp 22
from ngrok.
Related Issues (20)
- ngrok status reconnecting issue failed to send authentication request: read tcp HOT 6
- Ngrok in the termux HOT 2
- React + Express + Socket.io + Ngrok HOT 2
- Not registering server responses HOT 3
- question regarding memory usage HOT 2
- "An SSL error has occurred and a secure connection to the server cannot be made" HOT 1
- ngrok service doesn't reconnect after laptop sleep with ERR_NGROK_334 HOT 3
- Proposal to Fork and Maintain ngrok HOT 4
- There was an issue when use ngrok http http://xxx.xxx.xxx.xxx HOT 1
- Ngrok not working correctly for me HOT 1
- NGROK won't send image if it is embedded in HTML HOT 1
- "no longer signed" error when updating with apt on Ubuntu HOT 2
- NgRok minecraft 1 20 4 server (vanila) HOT 2
- Issue in sending sensor data from ESP8266 to Ngrok tunnel HOT 1
- Successfully create tunnel, not able to connect to it HOT 1
- Threat detected by Windows Security: AndroidOS/ZkarletFlash HOT 1
- Can't connect to gRPC
- Ngrok service start failed on macos HOT 2
- Consider transferring issues to the new repo HOT 3
- Reconnection issue with ngrok while tunneling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngrok.