Huawei B315 and DDNS

Patverner

New Member
Joined
Nov 23, 2010
Messages
8
Reaction score
0
Location
Die Wilgers, Pretoria
I am in general very happy with my B315 and its performance, but I need DDNS but not to DynDNS or No-Ip. My host(s) are Linux, and until recently I used PPPoE via iburst for access to the internet, so I always had the external IP available and could update my DNS happily.

The B315 shows the external IP under the Device settings, but how can I get this info into my host?
It seems that the only access to B315 from the LAN is the http interface; I cannot telnet nor ssh to the device in the base address.
My older Sitecom router allowed one to forward the router log file to a host on the LAN, which I could filter and catch the external IP, but the B315 has no such capability.

I am currently using the "bot.whatismyipaddress.com" to get my address and reset my DDNS, but this is a clumsy solution.

So - how can I log into the B315 to get this data? Is there any way that I can sense that the B315 has re-negotiated a connection and has started a new connection?
 
The only other way would be to run an ip updater on one of your machines.
 
Hi There I wonder if anyone can help me I have just purchased the LTE-315 with MWEB, I have a provision-isr camera system and I cannot see the camera's on my phone, but I do get the email's on the motion alarm. I use to be able to set this up on my ADSL, I do have a DDN's name for my camera's but not sure how to put it into the router? also everytime I try and save my new user name and password it doesn't and I have to keep re-setting
 
The B315 shows the external IP under the Device settings, but how can I get this info into my host?
You should be aware that on the cellular networks auto-assigned WAN IP address of the router is frequently not your external Internet IP but some address from the reserved private space. You cannot pass private address to your DDNS server, it will not work. Check it out before you continue reading.

You can use Hi-Link API to query WAN IP address from the router. In Linux you can use curl for XMS queries. Corresponding command is:
/api/monitoring/status
You have to parse the value inside WanIPAddress tag.

Before going for full programming, you can test individual commands and their output in Windows using E5186 Toolbox: https://mybroadband.co.za/vb/showth...x-for-new-Huawei-HiLink-devices-(E5186-B315s)

Find user suppplied documentation of HiLink API here: https://blog.hqcodeshop.fi/archives/259-Huawei-E5186-AJAX-API.html
Read user comments. There is by example very useful Python script for restarting router. I have modified version (which actually works), I would have to search for it.

I saw some projects on github, but didn't look for details.
 
Top
Sign up to the MyBroadband newsletter
X