Vasil Rangelov
Vasil Rangelov
`false`? Are you sure it's not `null`? `null` is returned when the property isn't present in the response. In turn, the example code ``` php if (null !== $mac) {...
In your modified code, `$ip` is the router IP, but what you want the error message to show is `$_SERVER['REMOTE_ADDR']`, because that is what the query checks for. That's the...
In that case, yeah, the script will always be false, because the router's IP is not part of the ARP table. You need to modify the line ``` php RouterOS\Query::where('address',...
That depends on a lot of factors about the router configuration. If the routers uses hotspot, and you have disabled anonymous proxy, you can look for the `$_SERVER['X_FORWARDED_FOR']` header. Another...
Not quite that simple I'm afraid... I had written something like that at one point, but since deleted it, as it turned out I could use `$_SERVER['X_FORWARDED_FOR']` for that router......
Well... sorry for having taken so long... I finally found a _continious_ stretch of free time to fully test this out... And this is what I ended up with: ```...
The web server also needs to be a member of the VPN, and (more importantly) be accessed through that VPN IP. I understand you might want to have your web...
But what about when you open up the PHP page from an end user device? In the browser, are you opening ```http://192.168.100.200/``` (where that example IP is the VPN IP...
A redirect is OK, but the PHP page the user is redirected to needs to use a subdomain that resolves to the VPN IP of the web server (if not...
To be perfectly honest, I've never tested any of that code through a VPN, so I wasn't sure if ```$_SERVER['REMOTE_ADDR']``` would do the trick with it too... I just assumed...