Questions tagged [pyngrok]

pyngrok is a Python wrapper for `ngrok` that manages its own binary and puts it on your path, making `ngrok` readily available from anywhere on the command line and via a convenient Python API.

pyngrok is a Python wrapper for ngrok that manages its own binary and puts it on your path, making ngrok readily available from anywhere on the command line and via a convenient Python API.

ngrok is a reverse proxy tool that opens secure tunnels from public URLs to localhost, perfect for exposing local web servers, building webhook integrations, enabling SSH access, testing chatbots, demoing from your own machine, and more, made even more powerful with native Python integration through pyngrok.

52 questions
1
vote
0 answers

Need help flask-ngrok in colab not working anymore?

Need help flask-ngrok in colab not working anymore ? !pip install flask-ngrok -q from flask_ngrok import run_with_ngrok from flask import Flask app = Flask(__name__) run_with_ngrok(app) @app.route("/") def home(): return "hello api" …
pp7sec
  • 75
  • 4
1
vote
1 answer

How can I send a file using to a HTTP server and read it?

So, I created the following HTTP server tunneled via ngrok, and I am trying to send a file to the server, to then read it and display it on the web page of the server. Here's the code for the server: import os from http.server import HTTPServer,…
Pyth79
  • 11
  • 1
1
vote
2 answers

In Python pyngrok error for .replace method

I get an error on this line: link = ngrok.connect(4040,"http").replace("http","https") Error: Instance of 'NgrokTunnel' has no 'replace' member
m7.arman
  • 71
  • 1
  • 11
1
vote
2 answers

Cannot complete ngrok tunnel connection on google colab

I am trying to run ngrok and establish a connection on google colab. The code runs fine but I get the following error, The connection to http://7f319cc47f9f.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish…
Jayhad
  • 43
  • 2
  • 9
1
vote
1 answer

Why doesn't pyngrok detect my config file?

I am trying to use my own configuration file with pyngrok but I don't understand why it does not detect it, my project needs to be run forcefully with sudo, therefore ngrok does not detect the configuration file in the root home directory for some…
AdrMXR
  • 25
  • 2
  • 9
1
vote
1 answer

python and ngrok with options gives me an error

I am trying to run ngrok with options I tried from pyngrok import ngrok ngrokPublicUrl = ngrok.connect(5000, bind_tls= True) and ngrokPublicUrl = ngrok.connect(remote_addr=5000, bind_tls= True) For options I used the documentation here -->…
Ghost
  • 549
  • 8
  • 29
0
votes
0 answers

ERR_NGROK_108 using pyngrok

Really running out of steam trying to figure this puppy out Using pyngrok = "^6.0.0" Python 3.11.4 I've tried every version documented and simply can't get this to work I've gone back and forth between pyngrok and ngrok def start_ngrok() : …
pjaol
  • 173
  • 1
  • 5
0
votes
1 answer

Pyngrok: SSL certificate verify failed while downloading ngrok

I want to tunnel my FastAPI server, so I installed pyngrok using poetry and created/activated virtual env. Here is my pyproject.toml: [tool.poetry.dependencies] python = "^3.11" fastapi = "^0.100.1" uvicorn = "^0.23.2" pyngrok = "^6.0.0" httpx =…
WideWood
  • 549
  • 5
  • 13
0
votes
0 answers

Pyngrok Module Not Working When I Try To Log

I'm having issues with pyngrok. I have the following code, which works when I don't try to log, but when I try to log, it doesn't work. from pyngrok import ngrok def start_ngrok_http(port, auth_token): ngrok.set_auth_token(auth_token) …
0
votes
1 answer

SD Automatic 1111: src/tcmalloc.cc:283] Attempt to free invalid pointer 0x5a3426b059d0

Is anyone else running into issues running the Stable Diffusion 1.5~2.1 on Automatic1111 UI in Google Colab and seeing this error message? I think I messed up my environment testing out version 0.9; the error is "related to memory allocation and…
0
votes
1 answer

How do i make my Flask App run on an HTTPS link instead of a HTTP one?

I'm running a website on Flask on an http link (the one provided by flask during development) but i would like to turn it https. How do i do it? Searching on the web i've only found answers related to old Flask versions (i'm currently using…
0
votes
0 answers

Unable to get local issuer certificate

How can i fix this problem? I run this script on windows Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(),…
Joff
  • 1
0
votes
0 answers

Can I use PyNgrok without config file or AuthToken?

Currently, I am trying to create a basic chat program that would allow users to send string messages to other people connected in their session. I'm using PyNgrok to port foward, but it requires an Authtoken to run. This isn't a problem for me…
0
votes
1 answer

I want to start a ngrok server and log everything to a file and to the terminal but it isnt working

Code: from pyngrok import ngrok public_url = ngrok.connect( log_stdout=True, log_file="ngrok.log", log_format="json", log_level="debug", proto="tcp", addr="8080" ) print(public_url) while True: pass I found this on the internet but it aint…
user19533292
0
votes
2 answers

Pyngrok ngrok ERR_NGROK_3200

I run my code AS ususal ` from pyngrok import ngrok ngrok.set_auth_token("token") # Then call the pyngrok method throwing the error, for example url = ngrok.connect(80).public_url print(url) and get ERR_NGROK_3200 I use default logging…