I have a Raspberry Pi running Raspbian

The Raspberry Pi is connected to internet via a 3G USB Dongle.

I can access internet via this 3G dongle.

How can I now access the RasPi from "outside" i.e. the internet. Seems to me that I need "port forwarding" which seems to make sense when I have a router. When using a 3G connection I don't have a router so what are my options?

I would like to be able to SSH into my RasPi.

  • What do the following commands return? ifconfig -a and traceroute google.com Commented Oct 9, 2014 at 15:15
  • @Morgan - Please see the ifconfig & traceroute results here - pho.to/7RMN0
    – OneGuyInDc
    Commented Oct 9, 2014 at 15:45
  • OK, I assume your 3G USB adapter is the interface ppp0. To access the Internet, there is only your 3G adapter, right? Can you ping from outside your network? Could you paste the restult of route from the RPi? (maybe to be prepended by sudo) Commented Oct 10, 2014 at 7:28
  • Try using TelNet - It may help!
    – user21941
    Commented Oct 15, 2014 at 9:58

4 Answers 4


The problem is that the most Telco operators do "Carrier grade NAT" here to hide a lot of costumers behind the same IP. You can't influence that to open the SSH Port.

One option is to use a Telco provider which provide a real IP address(really rare). Some Telcos offer special APNs which provide you a global unique IP Address.


You can use hamachi to create a VPN and connect your PC and the Raspberry to the same network. You can then access your Rpi via SSH.

  • Whilst this may theoretically answer the question, it would be preferable to include the essential parts and specific details of the answer here, and provide a link(s) for reference. Commented Oct 10, 2014 at 21:35

The trick is to use an IPv6 address as described in the blog of Peter Mount. I followed the instructions and I can ssh into my RasPi which has a Huawei E160 3G dongle.


If you have a global unique IP address i.e. you're not behind your ISP's NAT, you should be able to connect directly using your IP address assuming SSH is enabled on your Pi and accepting connections.

If you do not have a unique address, consider using a service like Weaved which works similar to TeamViewer in that it allows connections through routers without port-forwarding.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.