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
0
votes
1 answer

trying to open a tunnel with ngrok api

I want to use pyngrok's .connect function to route the connection to a specific ip address like 192.168.0.171 instead of the default local host. I've read through the documentation but cannot find anything relevant. tunnel =…
0
votes
0 answers

503 Service Unavailable streamlit pyngrok colab

I want to integrate streamlit app with google colab. I followed this tutorial But after running ngrok.connect is shows this error. Anybody faces this? I have tried kill process of ngrok, but nothing works. On localhost Service Unavailable The server…
Fahmida
  • 1,050
  • 8
  • 19
0
votes
2 answers

How to start all tunnels defined in ngrok.yaml PyNgrok

I have a custom config here is the sample: log_level: info region: ap tunnels: http: addr: 5000 proto: http ssh: addr: 22 proto: tcp I specify the config path on pyngrok but when I try to run ngrok.connect() only HTTP part is…
Falcon Ryu
  • 475
  • 1
  • 6
  • 17
0
votes
0 answers

How to use threading to stop tkinter from freezing when a command is run

I'm making a pretty large scale GUI with tkinter, and I have a button to start a ngrok server. The way it works is simple def start_ngrok(): ngrok_creds = open("tools/ngrok_creds.txt", "r") ngrok_creds_lines =…
0
votes
1 answer

Command for adding API KEY to ngrok.yml file doesn't work

This command ngrok config add-authtoken on the documentation doesn't work for me. If you are having a hard time looking for a solution try this code ngrok authtoken and it will add your ngrok API KEY to the config file which…
0
votes
1 answer

url generated for Streamlit not working properly. ngrok tells me to register again even though I have already registered or gives me an error

Below is my code for deploying my ml model on streamlit. I am using Google Collab !pip install streamlit --quiet !pip install pyngrok==4.1.1 from pyngrok import ngrok %%writefile app.py import streamlit as st import joblib st.title('Spam Ham…
ssc1234
  • 13
  • 4
0
votes
2 answers

How can I get output of class in custom formatted way python? (NGROK tunnel names)

I am using ngrok to ofcourse portforward my local system but when getting tunnels names ngrok.get_tunnels() it outputs in weird way so when I check the type of its output it shows that it is a class. Output like this [
kalalua
  • 35
  • 4
0
votes
1 answer

pyngrok - retrying failed connections

Wanted to doublecheck some behaviour I'm seeing with pyngrok and ngrok. Recently I think my companies IT team utilises a DNS service blocking the use of ngrok (reverse tunnel is a security issue) and my pyngrok script suddenly stopped working. I…
0
votes
1 answer

when ever i try to execute the file it shows me this?

Traceback (most recent call last): File "Storm-Breaker.py", line 7, in from modules import localhost File: "/home/faizan/Desktop/storm-breaker/Storm-Breaker/modules/localhost.py", line 1, in from pyngrok import ngrok ModuleNotFoundError:…
faizan yousuf
  • 29
  • 1
  • 4
0
votes
0 answers

Telegram Bot in python with Flask and Ngrok as webhook: after a while the bot stops answering but the script still receive post messages

As said in the title, I'm using telebot locally as an app in Flask with a free webhook taken from ngrok. With the script just started, everything works fine, but with around 30-60 minutes of inactivity (no new messages from users) the script still…
Alemane85
  • 11
  • 3
0
votes
1 answer

How to Get ngrok https URL with pyngrok in Python

How would I write a Python program that automates ngrok connections? I've tried using pyngrok, but I want to display an https URL and it always returns http.
Kongu B K Riot
  • 117
  • 1
  • 6
0
votes
1 answer

Multiple SSH TCP port 22 tunnels with same region

I'm currently starting a project using multiple Raspberry Pis. I have a system already in place where if the code fails, open an ssh tunnel on port 22. However, if two or more Raspberry Pis fail only one can open a tunnel on port 22 (tcp) in region…
ClarkeFL
  • 131
  • 2
  • 13
0
votes
1 answer

Twilio - Quick question (Unable to update record)

hope you are doing it right these days. To summarize my problem, I think this is not working becuase I am using a free Twilio account instead of a paid one. But that's just my beginner theory. Now, the issue: I have tried an official Twilio tutorial…
ringurla
  • 1
  • 1
0
votes
3 answers

Streamlit with Colab and pyngrok - Failed to complete tunnel connection - version issue?

For educational use, I’m trying to run Streamlit apps within a Google Colab Jupyter notebook.* You can run my setup here. This worked consistently a few weeks ago. Now, the app only loads correctly about 5% of the time. The other 95% I’m getting an…
sycamore
  • 1
  • 1
  • 4
0
votes
2 answers

How to kill Ngrok tunnel from Google Colab Notebook

I am running Streamlit app from Google Colab Notebook. Due to some limitations of sending out the URL of Streamlit app to outside, I follow the tutorial of using Ngrok for sending URL via tunnel. I know that with a single ngrok client session, I…
rensothearin
  • 670
  • 1
  • 5
  • 24