How to connect to a BIRDNETPI in the field via LTE router without public IP ? #161
-
I have a BirdNET-Pi in the field where there are many birds, where there is electricity, but no Internet. UPDATE WITH THE FINAL SOLUTION HOW TO ACHIEVE THIS (Thanks to Patrick !): Sharing the BirdNET-Pi over the internet is quite easy due to Patricks´ efforts in programming. So, principally, it is easy to access a remote BirdNET-Pi over the internet. However, my special problem is, that the internet connection of the BirdNET-Pi (in the field) is achieved by an LTE router with a SIM card. In my case this leads to a public IP issued by my internet service provider, that is shared with other internet users, which means I cannot use this IP adress for a webserver (like the BirdNET-Pi). Solution:
Workflow for the setup:
3.) Connect the VPN to test the setup:
6.) make the script executable: 7.) Create a link to the file:
8.) Make the VPN check execute every 5 minutes:
9.) Go into the settings of the BirdNET-Pi and enter the VPN IP adress, that your home router issues for the VPN-connected BirdNET-Pi Now, the VPN connection is checked every 5 minutes and reestablished, if necessary. At home, I can now access the remote BirdNET-Pi in the field by using the VPN IP of my BirdNET-Pi in my browser. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 22 replies
-
This answer is in regards to the
I'm pretty sure it is going to just be that simple. In the settings page, enter the IP address that the VPN provides, click "Update Settings" and the settings should be loaded within a few seconds. Check the site at http://IPADDRESS and everything should be working. Let me know if you have any issues at all with this. 👍 But could you please send the output of the command below when you have access to that machine tomorrow?? I'm super super curious what the system has to say about not being issued a public IP address. (You can email this to me if you are worried about this information, but it shouldn't be too sensitive.)
|
Beta Was this translation helpful? Give feedback.
-
These are great questions, but unfortunately my response will have to make a few assumptions that could deem it useless in its entirety -- we'll see! Main assumption: You home router hosts the VPN on top of its LAN. Possible alternative (to be explored farther below): Your home router only uses the VPN as the LAN (unlikely). Without knowing how your home router is really handling the VPN, here is the way that I would assume it functions based on my understanding of networking architecture and the basic needs of a VPN.
NOTE: I would assume that your VPN is protected with login credentials. If you have to connect to your network (WiFi) AND connect to the VPN afterwards, then this confirms my assumption. IF, however, on your home network, you only connect to the network (WiFi) and do not also have to do any connecting to the VPN, then your home router utilizes the VPN as the LAN.
Using your laptop connecting via WiFi as an example: My recommendation: Watch these IP addresses get issued and you will have a better understanding of how these networks commingle.
and just take a look at how the network card(s) look without any IP addresses (except you might see something like 127.0.0.1 or 127.0.1.1, which are the Now, connect to the WiFi and issue I'm hoping that the exercise above shows how the LAN and VPN are distinct networks, though they share some resources. This is important to understand well when trying to parse network visibility. With all of that said, your home router may utilize the VPN as the LAN, but the architecture would still be the same -- a VPN needs a LAN's physical resources to operate, but it operates outside of the LAN entirely, as it creates virtual pathways for information and uses its own set of IP addresses for Address Resolution Protocol. This same process can be followed on the Pi itself, but instead of issuing Sorry for the epic response, but it is a complex topic and I still didn't really cover everything. (Fingers crossed that you can confirm that you also have to login to the VPN after connecting to WiFi, else most of what I've written will be going on under the hood, so to speak, and will not be observable.) My best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Patrick, I am now facing a completely different problem:
Second problem:
So, obviously there have been many many changes in the way BirdNET-Pi boots up and checks regular jobs, so I am a bit lost now. |
Beta Was this translation helpful? Give feedback.
-
Just a short note: It works now, I can access the "field station"-BirdNET-Pi webpage via VPN via LTE router inside my home network! Tomorrow I will write up a workflow how to setup this. Thanks again for your help, Patrick! |
Beta Was this translation helpful? Give feedback.
-
A tipp for german users - or users installing in the field with expensive cellular tariffs - with a LTE router and a busy local network and just VPN active - I got up to 10 GB traffic within 12 hours active VPN connection. |
Beta Was this translation helpful? Give feedback.
-
I've been using https://github.com/fasmide/remotemoe for remote access to my instances, relatively simple set-up for those that are happy at the command line. |
Beta Was this translation helpful? Give feedback.
These are great questions, but unfortunately my response will have to make a few assumptions that could deem it useless in its entirety …