Ping under mobile network

If none of the more specific forums is the right place to ask

Ping under mobile network

Postby bbonnot » 2017-10-22 05:26

Hello

I am running Debian 9 with kernel 4.9.0-4-amd64. My internet access is through my mobile supplier in 4G by sharing connection with my phone.
I fail to ping my public IP address.

I get my IP on this site:

getIP

and the command :

Code: Select all
ping 37.168.204.187


returns

Code: Select all
PING 37.168.204.187 (37.168.204.187) 56(84) bytes of data.
^C
--- 37.168.204.187 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5124ms
bbonnot
 
Posts: 2
Joined: 2017-10-22 05:22

Re: Ping under mobile network

Postby debiman » 2017-10-22 06:54

this is more or less normal for mobile broadband.

have you tested with soem other IPs, like google's nameserver 8.8.8.8?
User avatar
debiman
 
Posts: 1524
Joined: 2013-03-12 07:18

Re: Ping under mobile network

Postby p.H » 2017-10-22 08:47

Note that the IP address displayed by sites such as GetIP may not be the public IP address of your mobile device, but the public address of a Carrier-grade NAT or a proxy.
Why do you need to ping your own public IP address ?
p.H
 
Posts: 155
Joined: 2017-09-17 07:12

Re: Ping under mobile network

Postby bbonnot » 2017-10-22 11:51

I created a dns for my computer to use it as a ssh server and I can't ping my domain and I found that I can't even ping my ip address.

Yes I can ping 8.8.8.8
bbonnot
 
Posts: 2
Joined: 2017-10-22 05:22

Re: Ping under mobile network

Postby pylkko » 2017-10-22 16:30

Mobile networks are almost always NATted. Basically that means that you don't have an ip of your own. It is shared by everyone (or some subset) of the phones and devices on that carrier.

http://whatismyipaddress.com/nat
User avatar
pylkko
 
Posts: 1174
Joined: 2014-11-06 19:02

Re: Ping under mobile network

Postby reinob » 2017-10-23 11:31

bbonnot wrote:I created a dns for my computer to use it as a ssh server and I can't ping my domain and I found that I can't even ping my ip address.

Yes I can ping 8.8.8.8


adding to what @pylkko said, you are effectively not connected to the Internet but to your providers Intranet.
you won't be able to connect from anywhere to your computer.
reinob
 
Posts: 520
Joined: 2014-06-30 11:42

Re: Ping under mobile network

Postby debiman » 2017-10-24 14:04

yes, your IP is constantly changing.
there would be ways around that (i forget what it's called. some service that constantly checks your IP, and adjusts settings when it changes), but what is probably just as important is that your ISP is likely to have all sorts of restrictions in place that will make it harder or impossible for you to use your machine as a server (effectively that is what it is even if it's "only" ssh) via mobile broadband.
User avatar
debiman
 
Posts: 1524
Joined: 2013-03-12 07:18

Re: Ping under mobile network

Postby pylkko » 2017-10-24 14:44

debiman wrote:yes, your IP is constantly changing.
there would be ways around that (i forget what it's called. some service that constantly checks your IP, and adjusts settings when it changes), but what is probably just as important is that your ISP is likely to have all sorts of restrictions in place that will make it harder or impossible for you to use your machine as a server (effectively that is what it is even if it's "only" ssh) via mobile broadband.

If you are behind a NAT scheme on mobile you basically don't have a personal public ip, so it does not matter if your ip changes... You are not going to be able to connect to your server from outside even if your ip does not change.

The best way around this problem is to contact the service provider and ask for a real connection, as they likely have such things for enterprises. But that might mean you have to pay more.

Then there are NAT traversal techniques... but anyone whose that deep in it likely knows how to find better info than anything available here.
User avatar
pylkko
 
Posts: 1174
Joined: 2014-11-06 19:02


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable