LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-17-2016, 04:23 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 535

Rep: Reputation: 30
Exclamation how to setup 3G wireless modem with dynamic dns client?


Hi,
I configured my ubuntu xenial computer for my domain and web server, I use 3G wireless modem to connect to the internet, i want to reach my web host from the internet, my dynamic dns client should update my ip to my dynamic dns server.
My 3G wireless modem show the WAN IP 10.152.183.15 which is a private ip address and i didn't find any public ip address for my modem, is all 3G wireless modems has public address and how i find it? when i ask the my ip from internet i get an ip range 180.94.0.0 and don't know who's ip is this, because https://who.is says " This IP address range is not registered in the ARIN database." any help please?
 
Old 06-17-2016, 05:01 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
You've essentially answered your own question here. Not all mobile broadband service providers connect you with an internet-facing public IP address. They often use NAT and private IP addresses instead. Some may be able to offer a dynamic or fixed public IP for an additional charge, so this is really a question for them.
 
Old 06-17-2016, 06:41 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,876

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
I guess it could be some odd provider. In the US for the last 10 years or so I have only found that the modems did get a public IP.

I kind of get the feeling that your ddns update program isn't following the wireless connection.

Can you log into the modem for more information?
 
Old 06-19-2016, 05:15 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
from my experience, 3g providers always provide dynamic dns, as well.
your 3g dongle should just work, and don't worry about the ip. it will change. some things you just cannot do with mobile broadband (like being able to contact your machine from the outside).
 
Old 06-20-2016, 01:39 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
Quote:
your 3g dongle should just work, and don't worry about the ip. it will change. some things you just cannot do with mobile broadband (like being able to contact your machine from the outside).
Yes, but the OP specifically mentioned that they need a public IP address for access to the web server.
 
Old 06-22-2016, 02:50 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
Quote:
Originally Posted by ferrari View Post
Yes, but the OP specifically mentioned that they need a public IP address for access to the web server.
the way i understood this is op wants to access a machine that is connected to the internet through a 3g dongle.
access it from the outside.
and in my experience, there's no way to do that because the providers have all sorts of mechanisms in place. and the ip is always changing.

maybe there's software to circumvent that, but honestly i don't think so.
you can't run a web server through mobile broadband.
my opinion.
 
Old 06-22-2016, 03:17 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Some 3g providers will give you a public IP address, most won't. If yours doesn't, there's not a lot you can do. You can try calling them, they might have an option to let you switch to a public IP for $xx/month.

Quote:
Originally Posted by jefro View Post
I guess it could be some odd provider. In the US for the last 10 years or so I have only found that the modems did get a public IP.
Which providers? I know for a fact that Verizon and AT&T give you non-routable private IPs on a local network. I believe both have options for purchasing a public IP, but I think it's for business accounts only.

ref:
http://www.howardforums.com/showthre...dress-on-3G-4G
http://stackoverflow.com/questions/1...ess-for-iphone

and many others, including my own remote system that uses a Verizon 3G modem and is definitely non-routable. I have to have the remote system autonomously open and maintain a reverse ssh tunnel back to my home server so I can connect to it.

It makes sense if you think about it too. According to this chart, there were ~29 mobile broadband accounts per 100 people in the world back in 2013. The current world population is ~7.4 billion, which means assuming the penetration has only risen since 2013, there are between 2.1-3.7 billion mobile broadband accounts today (a linear rise would put it somewhere around 50% penetration today). There are only 4.3 billion IPv4 addresses, so if every mobile account had its own public IP, somewhere between 50-85% of the entire IPv4 spectrum would be needlessly taken up by cell phones that don't need a routable address anyway.

Last edited by suicidaleggroll; 06-22-2016 at 03:56 PM.
 
Old 06-22-2016, 04:05 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,876

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
I just hooked up my old 4G LTE modem and connected it to my router by way of tethering.

It is usually for failover but in this case I ran it without the normal wan. It still does get a public IP and you can still log into it directly on the web based management to find the public ip. It is a gsm, I don't have access to my friends old 3g hotspot that ran on sprint anymore but I get the feeling I used it years ago exactly like this.

The problem I suspect is that the program needed to follow the public IP is not correctly using the connection.

Until the OP logs into the modem to see what it really shows then we won't know.

Last edited by jefro; 06-22-2016 at 08:01 PM.
 
Old 06-22-2016, 04:18 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
Quote:
the way i understood this is op wants to access a machine that is connected to the internet through a 3g dongle.
access it from the outside.
and in my experience, there's no way to do that because the providers have all sorts of mechanisms in place. and the ip is always changing.
@ondoho: That's why the OP also mentioned using dynamic DNS, but as others have suggested some ISPs can provide static IP addresses as well.
 
Old 06-22-2016, 04:27 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
The company I work for have a couple of remote 3G devices which we need to monitor. It has a VPN connection to our local server, so that we can get to it when needed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic dns setup on 3G USB modem bobdxcool Linux - Networking 1 06-20-2014 03:50 PM
Setup a Dynamic DNS wood Linux - Newbie 3 09-21-2008 04:23 PM
Dynamic DNS Setup for either Fedora Core client Dimensional Linux - Networking 2 09-18-2007 06:48 AM
Dynamic DNS Troubles (client-side) samus8zero2x Linux - Networking 2 02-26-2004 12:52 PM
Client to use Dynamic DNS afuchigami Linux - Networking 11 01-13-2003 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration