dimmer
Posts: 1
Joined: Fri Aug 02, 2013 6:32 pm
Location: Беларусь

Can't connect to raspberry while it uses 3G

Mon Aug 05, 2013 4:01 pm

Hi. I plugged in 3G dongle to my rpi and setup internet (2013-07-26-wheezy-raspbian). Internet works well, but I can't connect to the raspberry via putty (SSH). I installed noip. It shows me the ip of the rpi. But even when I try to ping it. It fails.

marco75
Posts: 5
Joined: Mon Dec 02, 2013 4:29 am

Re: Can't connect to raspberry while it uses 3G

Mon Dec 02, 2013 4:42 am

Same thing happens here. Does anyone have a solution/tip?

smithg400
Posts: 148
Joined: Sat Dec 24, 2011 3:37 pm

Re: Can't connect to raspberry while it uses 3G

Mon Dec 02, 2013 7:56 am

Are you trying to ssh/ping to the 3G network interface? I'd expect that firewalls in the mobile network prohibit this.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Can't connect to raspberry while it uses 3G

Mon Dec 02, 2013 6:35 pm

It is my understanding that you can't SSH or have a web server or anything else that requires port forwarding with 'broadband' type ISP's because you won't get a public IP address.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Can't connect to raspberry while it uses 3G

Mon Dec 02, 2013 6:38 pm

What ports does your 3G provider have open? Call their helpdesk and ask. They are probably doing port blocking and traffic shaping.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

marco75
Posts: 5
Joined: Mon Dec 02, 2013 4:29 am

Re: Can't connect to raspberry while it uses 3G

Fri Dec 06, 2013 9:04 pm

contacted them yesterday and they said that they do not block ssh, and confirm that we can use it. i'm using no-ip.

gmc
Posts: 123
Joined: Fri Mar 09, 2012 11:31 am
Location: Cheshire, UK
Contact: Website

Re: Can't connect to raspberry while it uses 3G

Fri Dec 06, 2013 9:24 pm

Where are you trying to putty from?

Also what IP does the 3G modem assign to the adapter. I've seen some providers assign private IP's but then this is NAT'd on their side to a public IP.

marco75
Posts: 5
Joined: Mon Dec 02, 2013 4:29 am

Re: Can't connect to raspberry while it uses 3G

Sat Dec 07, 2013 7:13 pm

gmc wrote:Where are you trying to putty from?

Also what IP does the 3G modem assign to the adapter. I've seen some providers assign private IP's but then this is NAT'd on their side to a public IP.
Probably. but i haven't found a workaround yet.
ip: 10.66.142.203/32

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Can't connect to raspberry while it uses 3G

Sat Dec 07, 2013 7:33 pm

That is a private IP range which isn't available from the Internet. You'll need some form of tunnelling / real world internet assistance to be able to get to the Pi. Its becoming increasingly common with the limited availability of IPV4 addresses and the reluctance of ISPs to move to IPV6. In most places in Asia, fixed line broadband uses a similar system. Its probably only a matter of time before we all have to suffer it.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

marco75
Posts: 5
Joined: Mon Dec 02, 2013 4:29 am

Re: Can't connect to raspberry while it uses 3G

Thu Dec 12, 2013 9:15 pm

FOUND the solution: reverse SSH session at boot.
Now, only thing missing is de usb modem to always be detected as modem 19d2:0031.

Return to “Troubleshooting”