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
    About the element14 Community
  • 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 685 subscribers
  • Views 2718 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
  • bhuvan
    0 bhuvan over 11 years ago in reply to rew

    rew

    I meant this, http://www.tunnelsup.com/raspberry-pi-phoning-home-using-a-reverse-remote-ssh-tunnel

     

    I am using the motion camera software on port number 3456 on the pi.

     

    Will the camera be accessible with the above method/ tunelling method that you mentioned ??

    • 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 would work. It is the same as what I was suggesting. That guy looked longer at the manual to figure out you need to specify "-N" to indicate to SSH that it doesn't need to do anything but open the port.

     

    You specify "3456" instead of 22....

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

    I'm trying to do exactly the same thing on my Raspberry Pi.  I would like to be able to use two ports though, one for video, and one for serial data to communicate with a connected UART device.

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

    Two options: run two ssh tunnels to two ports (but this assumes you have a way of connecting a port to the uart). Or just open up the "ssh" port of your 'pi using the tunnel so that you can ssh back into the pi to for the uart stuff.

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

    Try http://www.noip.com/ they give you a static domain name and update their system when your IP address changes.

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

    Hi Mr. Roger

     

      I tried the following steps below to view the video stream remotely , but not able to. Please help me.

     

    Note: I have rented a server with static IP on aws and referring to the same below.

    I have a USB camera connected and motion software running and wvdial running (3g dongle).

    From the PI's terminal, typed the following :

    ifconfig    ppp0      Link encap:Point-to-Point Protocol inet addr:100.106.202.59  P-t-P:10.64.64.64  Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1 RX packets:212 errors:0 dropped:0 overruns:0 frame:0 TX packets:224 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:9585 (9.3 KiB)  TX bytes:11292 (11.0 KiB) 

    Then typed in:

    sudo autossh -M 65500 -o ServerAliveInterval=20 -L 16090:100.106.202.59:8081 -R 2222:localhost:22 user@server 

    The pi was now logged into my server.

    Next, from the server (logged in via putty) I typed in:

    ssh -p 2222 pi@127.0.0.1 

    And I was able to login to the pi.

    Now, I opened up a browser on my windows laptop connected to the internet (different network) and typed in

    myserveripaddress:16090 

    And nothing showed up in the browser.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
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 © 2026 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