1

I have 2 internet-connected 4G modems connected to 2 separate computers and I'd like to send/receive data between them with sockets (UDP) using the modems' packet-switched 4G Internet connection, not using AT commands to dial each other.

The problem is that I can't get either modem to receive incoming UDP traffic from the other. The provider is NAT'ing both devices and I can't do any port forwarding within the GSM provider's router. It looks like the GSM provider blocks incoming connections to both devices, so how can I do socket communication? I've thought about setting up a FTP/web/email server to relay traffic between the two devices, but I'd rather do it with socket (TCP or UDP). Any ideas?

2
  • Please don't post on multiple StackExchange sites. If you post to a "wrong" site, users will move the question quickly superuser.com/questions/859646/…
    – Dave M
    Jan 2, 2015 at 16:01
  • You would do that as with any other NATted internet connection; the fact that it's a mobile network doesn't change much, unless the data is really small in which case you could rely on SMS.
    – user186340
    Jan 2, 2015 at 19:58

1 Answer 1

3

I will assume that each of the modems have a private IP address and they're NAT through the internet by your provider using a public IP address.

Usually providers block private IP communications with each other (this is called Intra APN communication) the reason is quite obvious: Security. If the subscribers are in the same private network, they likely might be able to access each others IP/ports including Windows shared folders that might not be password protected. Have you tried to ping from one IP to another?

Having said this, your provider should protect you from that scenario that I've just specified.

There are a few workarounds but none are optimal:

1) Buy a private APN from your telco provider. This will allow your SIM cards to communicate freely with each other but not to the world. This is usually a corporate service and for individuals might be a little costly.

2) Connect to an external public IP (VPN/Proxy) responsible to switch the data between the two GSM nodes.

I'm not sure if this is exactly your case but I work for a telco provider and I managed the Packet Switching (PS) Core team for more than 2 years and we dealt a few times with scenarios like those.

I hope this helps.

1
  • Hi Andre! Could you please shed some more light in your second proposition? If the GSM node has a private address which is managed by the internal network of the provider, how can I connect it to a VPN/proxy and expect it to work... It is not a public address? It would only make sense if the VPN/proxy service is also offered by the same provider, isn't it? Thanks.
    – marc
    Mar 17, 2017 at 7:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .