How to Add Static IP to Any 3G/4G SIM Mobile

Posted on October 30, 2020 at 7:06 pm

Need a static IP for your 3G/4G/LTE SIM mobile? No problems! You can do this by using a VPN service and a special router that supports VPN protocol (OpenVPN). In my case, I am going to use this super tiny and awesome mini router GL.iNet GL-MT300N-V2:

You can find it also on Amazon (it arrived in 3 days here).

Configuration is simple: [1] connect the router via USB to the PC; [2] connect a cable from another router (WAN) for Internet or you can tethering with your Phone (works perfectly!); [3] go on http://192.168.8.1/ to open the router Admin panel (uses OpenWRT); [4] click on “VPN” -> “OpenVPN Client” on the left menu, then you upload your .ovpn configuration; [5] finally click on “Connect” button, that’s all.

My working .ovpn config file for an old OpenVPN 2.3 looks like this:

client
nobind
dev tun
redirect-gateway def1
auth-nocache
<key>
...
</key>
<cert>
...
</cert>
<ca>
...
</ca>
<dh>
...
</dh>
remote-cert-tls server
tls-version-min 1.2
cipher AES-256-CBC
auth SHA256
key-direction 1
<tls-auth>
...
</tls-auth>
remote XX.XX.XX.XX 12345 udp

* The OpenVPN config must NOT use <connection> groups!

If you have problems configuring OpenVPN just ask on GL.iNet Forum.

Once the OpenVPN client is configured and working, your 3G/4G SIM will connect to the OpenVPN server and thus your IP address will be static. If you use commercial VPNs like NordVPN or CyberGhost VPN you need to buy a dedicated static IP address. Personally I just use a VPS from Scaleway with OpenVPN installed via InstantApps (very simple to install, costs 4.99 EUR /month and you fully own the server with root access).

Any device that will connect to the WiFi of this awesome mini router will automatically use the VPN and thus all devices will have the static IP address of the VPN! This is useful to increase security of your business so only known IP addresses are allowed to login to sensitive control panels. With this router you can have your VPN static IP while traveling and everywhere!

This mini router has low download/upload speeds via OpenVPN (in my tests it arrived at max 10 Mbps/s). If you want to support faster speeds you need to use Brume (GL-MV1000) router, it uses a more performant hardware and OpenVPN client supports up to 97 Mbps/s.

For more routers that support VPN and 3G/4G WWAN card see here:

https://www.gl-inet.com/products/

Updated on November 3, 2020 at 12:06 pm

Receive updates via email

Other Posts

Updated Posts