使用Ngrok将本地WebSocket,HTTP和HTTPS WebServer公开到公共Internet



在此视频中,我将说明如何使用ngrok使用ngrok将本地webserver,websocket HTTP和HTTPS通信公开给公共Internet。 我还将解释Ngrok在后台进行的操作以及为什么在使用该服务时要小心。 0:00简介1:30公开HTTP本地Web服务器4:50公开HTTPS服务器(TLS终止)11:00公开HTTPS服务器(TLS直通)ngrok转到https://ngrok.com/?后端工程视频https://www.youtube.com/playlist?list=PLQnljOFTspQUNnO4p00ua_C5mKTfldiYT?数据库工程视频https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2?网络工程视频https://www.youtube.com/playlist?list / playlist?list = PLQnljOFTspQUBSgBXilKhRMJ1ACqr7pTr?负载平衡和代理视频https://www.youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC?Postgres视频https://www.youtube.comQlQlOjjQlSjQlSjQlSjQlSjQlSjQlSjQlSjQlOjjLjjOjjl /www.youtube.com/playlist?list=PLQnljOFTspQWsD-rakNw1C20c1JI8UR1r?编程模式视频https://www.youtube.com/playlist?list=PLQnljOFTspQV1emqxKbcP5esAf4zpqWpe?网络安全视频https://www.youtube.com/ = PLQnljOFTspQU3YDMRSMvzflh_qXoz9zfv?HTTP视频htt ps://www.youtube.com/playlist?list = PLQnljOFTspQU6zO0drAYHFtkkyfNJw1IO?Python视频https://www.youtube.com/playlist?list=PLQnljOFTspQU_M83ARz8mDdr4LThzkBKX?Javascript视频https://www.youtubecom/ PLQnljOFTspQWab0g3W6ZaDM6_Buh20EWM?Discord服务器https://discord.gg/CsFbFce成为会员https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join在PayPal上支持我https://bit.ly/33ENpsre成为Pattal ://www.patreon.com/join/hnasr? 侯赛因,敬畏。

13 comments
  1. Hey Hussein, you might want to also check out this potential competitor to ngrok: https://www.cotunnel.com/
    I don't work for them, but I saw them announce it yesterday on producthunt.
    Copy-paste of what developers for cotunnel mentioned:
    Cotunnel Free plan:
    Static subdomain. Your subdomain doesn't change if you restart cotunnel client.
    No connection Limit.

    Ngrok Free Plan:
    Random subdomain.
    Connection limit.

    Ngrok Features:
    HTTP(S)/TCP/UDP tunnel.

    Cotunnel Features:
    HTTP(S) tunnel (TCP and UDP under development).
    Remote terminal access on the cotunnel dashboard.
    Continous running. If you are using Linux and installed with the cotunnel installation script, cotunnel client runs continuously (as a service).

    Cotunnel is device based, ngrok is tunnel based

  2. Ngrok is a cool little thing, but to be perfectly honest in 99% of the cases I'd rather just rent a $3.50 micro instance on AWS lightsail and use it instead. I have such a hard time trusting any free product like this, plus the lack of domain mapping breaks a lot of stuff if you're trying to achieve relative parity between prod and dev environments.

    That said – maybe I'm just a negative nancy control freak – what do you guys think?

  3. Awesome !
    Quick question (might be a dumb one) : I am using a JDBC client library in my Java app and wanted to sniff all the network packets (essentially what HTTP Requests/Response through the client library ) I tried using the tunnelIJ Intellij plugin and TCPMON Http proxy plugin but not sure what target hostname and port to set (as the client library may have different target hosts for different requests like one for oauth and another for actual resource request ) Does this make sense ? Also, I assume those are HTTPs requests

  4. Hussein bro plz help ! Ngrok is not connecting ,
    ./ngrok http 4444 or 8080
    it says ngrok is reconnecting but it never connect..

    ngrok by @inconshreveable (Ctrl+C to quit)

    Session Status reconnecting (dial tcp: lookup tunnel.us.ngrok.com on [::1]:53: read udp [::1]:49253->[::1]:5
    Version 2.3.35
    Region United States (us)
    Web Interface http://127.0.0.1:4040

Comments are closed.