bobdxcool
Posts: 84
Joined: Sun Apr 14, 2013 12:41 pm

3G internet for Raspberry pi- static IP

Fri Jun 07, 2013 8:10 am

I have suucessfully configured a Wireless USB 3g modem using Sakisg3g for Raspberry pi, and am able to access internet on pi using it.
I want to stream a video over the internet all the time , for which I need a static Ip address.

Is it possible to assign a static Ip address for the USB dongle ??? If yes, how to do so ??

Will that work everytime ???

User avatar
DaveDriesen
Posts: 113
Joined: Sun Mar 31, 2013 8:28 pm
Location: Top of the food chain
Contact: Website

Re: 3G internet for Raspberry pi- static IP

Fri Jun 07, 2013 8:30 am

If I understand correctly, you've created a ppp connection to your 3G internet provider using a USB 3G modem, right?
If so, the IP address you receive, is most likely assigned by your internet provider.

The bad: most 3G carriers won't even provide you with a public IP, let alone a static one. This means that if you want to approach your pi from the internet, using a fixed IP, you're probably out of luck unless you have a ton of $€£ to spend.

The good: think about using openvpn or similar to connect to your LAN, or establish a reverse ssh tunnel using autossh.
Once that is done, you will be able to reach your pi over that channel.

Dave Driesen
Linux dev and oldskool elite

bobdxcool
Posts: 84
Joined: Sun Apr 14, 2013 12:41 pm

Re: 3G internet for Raspberry pi- static IP

Fri Jun 07, 2013 2:25 pm

Yes, I'm using PPP protocol.

I could not understand by what you meant, as i'm a newbie.

So, you say its impossible to get static ip for the usb modem, without spending money.

I did not get the other part you said.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: 3G internet for Raspberry pi- static IP

Fri Jun 07, 2013 2:35 pm

You will not get a static IP from a 3G provider, also your IP is highly likely to be internal anyway like a NAT router which basically means your Pi cannot receive incoming connections.

Richard S.

Return to “Networking and servers”