使用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.