2

My Pi 2 is logging temperature and humidity, and is connected to a PiNoir Camera. The Pi 2 is connected to the internet via a 3G USB Modem.

I'd like to view my logged data (RRDtool Database) and a webcam picture from a browser.

I tried lighttpd but never got it to work. Although the server was running I was never able to actually connect to the IP address from the Pi 2.

I think it is because my provider simply does not allow this form of communication.

Is there any other way I can do what I want (without extra costs) or are those the simple limitations of a 3G connection and I've got to deal with it?

My current setup sends me everything via mail whenever I send a request and I can live with that but I'd like to know if I might be missing a cool option here.

P.S.: I know that the connection would be really slow but as I mentioned, it's only to look at some RRDTool graphs and watch a webcam picture from time to time.

Edit: Well I I read in a couple of Boards that a lot of Provider use a carried grade NAT which kinda blocks inbound connections ... :-( when running sudo ip addr show i get

inet 10.XX.XXX.XX peer 10.XX.XX.XX/XX scope global ppp0

I'm not a network guy.... but I think there should be only one IP address for what I want to do with the connection...

Thanks for the help so far

I think, that there's something provider wise prohibiting me from getting the server to work when on 3G. I tried everything within my wlan and it worked for example: with hostname -I I get a normal looking 10.XX....IP but i can`t ping it from another pc ...

Guess I have to call my provider directly to figure out if what I want to do is doable

Peter S
  • 251
  • 5
  • 14

2 Answers2

2

The problem is not that you've got a dynamic IP but NAT .

You need to use reverse SSH tunneling , OpenVPN in client mode or some SaaS service like Weaved , yaler or ngrok.

flakeshake
  • 6,244
  • 1
  • 16
  • 35
1

I think there should be only one IP address for what I want to do with the connection

That's not how mobile networking works. You cannot have a static stable IP for incoming connections. This is not the same as your provider actively preventing anything, it is simply a limitation of the context. The fact that the unit is not truly "mobile" doesn't make much difference.

You could route through a server with a stable address or domain (a domain can resolve to a dynamic IP). There are paid and unpaid services for the latter; I think the best known is "no-ip".

goldilocks
  • 60,325
  • 17
  • 117
  • 234