Net_RouterOS icon indicating copy to clipboard operation
Net_RouterOS copied to clipboard

Unable to connect to the router

Open asoko2 opened this issue 5 years ago • 4 comments

I try the test script, I got 'Unable to connect to the router' result. I have disabled my firewall, set outbound rule for apache and PHP, still can't get it work.

What's wrong?

Thanks

asoko2 avatar Apr 25 '20 18:04 asoko2

There may be a firewall rule at the router as well.

If it's not in the same LAN as PHP, but is instead accessing the router via a WAN interface, there definetly is one by default.

boenrobot avatar Apr 26 '20 18:04 boenrobot

The router and my PHP web server are at the same LAN. And also, the firewall rule is still the default. I didn't change any firewall rules except adding NAT rule for WAN connection.

This is my firewall rule https://imgur.com/gYD8Qzg

And here is the NAT https://imgur.com/pUvJftQ

asoko2 avatar Apr 26 '20 21:04 asoko2

Ah. You're in the same LAN, but have a hotspot there.

The device PHP is running on needs to be allowed by the hotspot, be it via a login, or a bypass rule in ip-bindings.

boenrobot avatar Apr 26 '20 21:04 boenrobot

Can you show me how to do it? Allow the PHP to connect via the hotspot?

asoko2 avatar Apr 27 '20 02:04 asoko2