element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum dynamic DNS for 3G USB modem raspberry pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 16 replies
  • Subscribers 676 subscribers
  • Views 2501 views
  • Users 0 members are here
  • dns
  • raspberry_pi
  • raspberrypi
  • 3g
  • usbmodem
Related

dynamic DNS for 3G USB modem raspberry pi

bhuvan
bhuvan over 11 years ago

Hi guys

 

I have a 3G USB modem (ZTE Mf 70) . i want to access a IP camera on a particular port from the pi from anywhere in the world.

I wanted the pi to use the same Ip address everytime on bootup. I thought of using a hostname which would map to the IP address everytime (even if Ip address changes)

 

 

I wanted to know if installing a dynamic dns application on the pi, would help to achieve this.

 

or else, is there any other way of doing this ??

  • Sign in to reply
  • Cancel
Parents
  • rew
    0 rew over 11 years ago

    Your provider (in this case the 3G one) will assign you an IP address. When your location is static, say on a cable or ADSL connection, they may decide to give you the same IP address every time your computer/modem starts up. But they could also decide: we need less IP addresses because half the people have their modem turned off. So then they have to cycle through the IP addresses to serivice those that are online.

     

    Anyway, with 3G, you are likely to get a new/changing IP address every time your connection starts up. Or maybe even when you switch towers (but I doubt that:  they should make arrangements to fix that if it happens).

     

    Anyway, if you install something like "dyndns", you will be able to refer to the 'pi as <something>.dyndns.org, which will resolve to whatever IP address you got this time.

     

    However, I've also seen 3G providers that use "internal" IP addresses on their network. In that case instead of assigning an externally visible IP address to every "phone", they use an "internal only" IP address range, that only works within their own network. And when packets from your 'pi go out on the internet they are quickly translated to some public IP address. Return traffic is similarly modified to go back to your phone. This way they can save enormously on the number of public IP addresses that they need. But it means you cannot reach the internal IP addresses at all from the outside. (which is usually a bonus, because it prevents remote network attacks!).

     

    So, if you do a quick "ifconfig" and show us the results we can look up if your 3G modem gets a public IP address.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhuvan
    0 bhuvan over 11 years ago in reply to rew

    Thank you for your reply .

    rew

    When I do ifconfig on the pi, the Ip address I get is something like 192.168.0.100, which is an internal address I guess. Will dydns still work ?

    What I am trying to do is use motion camera software on the pi to broadcast a video stream onto a certain IP address and port number.

     

    I want to be able to use the same Ip address every-time (reboot, new connection, etc).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 11 years ago in reply to bhuvan

    Yup! That's an internal address which is not reachable from the outside.

     

    I personally own a "server" on the internet. For cases like this I will have the 'pi call out to the server which is similar to loading a website. Thus the provider will have to make that "work", otherwise nobody would be able to use the internet.

     

    Then I create a "tunnel", so that from the server I can reach the 'pi. Next some trickery with ports and stuff and I'd be able to reach the 'pi from around the globe.

     

    If you don't have your own server, I'm not sure if you'd be able to find a low-cost provider for such a service. I've searched for "free tunnel service" for a few minutes now, and the services that come up do something close to the reverse of what you want.... :-(

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • rew
    0 rew over 11 years ago in reply to bhuvan

    Yup! That's an internal address which is not reachable from the outside.

     

    I personally own a "server" on the internet. For cases like this I will have the 'pi call out to the server which is similar to loading a website. Thus the provider will have to make that "work", otherwise nobody would be able to use the internet.

     

    Then I create a "tunnel", so that from the server I can reach the 'pi. Next some trickery with ports and stuff and I'd be able to reach the 'pi from around the globe.

     

    If you don't have your own server, I'm not sure if you'd be able to find a low-cost provider for such a service. I've searched for "free tunnel service" for a few minutes now, and the services that come up do something close to the reverse of what you want.... :-(

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube