B315 Remote Access

charlieharper

Expert Member
Joined
Jun 1, 2007
Messages
3,861
Reaction score
1,976
Location
South Coast, KZN
Hey guys.
So I wrote a little script that would pull some data (eg usage / http://192.168.8.1/api/monitoring/month_statistics) hourly and save it onto a sqlite db. Works perfectly locally from my Mac.

Now I'm attempting to get my VPS to do this for me with a cron job, which means I would need to enable remote access.
I've setup the router with no-ip and it's resolving to my external ip... however, it's not giving me access to the router itself.

Am I missing something?
Is it even possible with this router?

Thanks :)
 
Are you logged in to the router? Do you check in the script you are logged on?
Router won't give you stats without loggin in.

[ADDED:] Just found that it keeps giving you stats even after logout, but before you login first time it just gives error code.
 
I was looking for this functionality as well but after numerous internet searches found that there is no remote management access on the B315, not with the current firmware anyhow.
 
Are you logged in to the router? Do you check in the script you are logged on?
Router won't give you stats without loggin in.

[ADDED:] Just found that it keeps giving you stats even after logout, but before you login first time it just gives error code.
I log in with a python script, using a headless version of Firefox.
 
Last edited:
I was looking for this functionality as well but after numerous internet searches found that there is no remote management access on the B315, not with the current firmware anyhow.
So disappointing... It used to be so easy with my ADSL routers.
 
I log in with a python script, using a headless version of Firefox.
I have seen number of scripts on the Internet containing errors. You can verify whether router is responding by entering this address to the Web browser (using Chrome). Before you login, response is (error code): 125002

Then login to the router using the same browse tab, and repeat operation, response is:
424895074 32523531 296748 2018-9-1

These numbers correspond to the "Current Volume", "Total Volume", etc...
You can see description of the fields in E5186 Toolbox: http://mybroadband.co.za/vb/showthr...x-for-new-Huawei-HiLink-devices-(E5186-B315s)

Hope it helps.
 
Last edited:
I have seen number of scripts on the Internet containing errors. You can verify whether router is responding by entering this address to the Web browser (using Chrome). Before you login, response is (error code): 125002

Then login to the router using the same browse tab, and repeat operation, response is:
424895074 32523531 296748 2018-9-1

These numbers correspond to the "Current Volume", "Total Volume", etc...
You can see description of the fields in E5186 Toolbox: http://mybroadband.co.za/vb/showthr...x-for-new-Huawei-HiLink-devices-(E5186-B315s)

Hope it helps.

Like it's working hundreds from my local machines - I just can't login remotely, which according to Huawei is disabled for security reasons. Bummer.
Guess I'll just configure my little Linux machine to run as a server permanently for this as opposed to my VPS.

But anyway, I'll put the code on Github later if anyone is interested in checking it out.
 
Last edited:
Also, just thought I'd share, my brother wrote a little Telegram Bot that lets the family know at 6am how much data we've used.
Screen Shot 2018-09-04 at 16.48.12.png
 
Like it's working hundreds from my local machines - I just can't login remotely, which according to Huawei is disabled for security reasons. Bummer.
Guess I'll just configure my little Linux machine to run as a server permanently for this as opposed to my VPS.

But anyway, I'll put the code on Github later if anyone is interested in checking it out.
Or run a reverse proxy on a pi that will expose the web management behind a Ssl authentication layer. You could even add a openvpn server and restrict access with a certificate/ridiculous password
 
Top
Sign up to the MyBroadband newsletter
X