Boris Nikk

Results 15 comments of Boris Nikk

On our company router we have two networks, public and private. I've connected to both for testing purposes. And when I search by MAC I get the following error: ```...

Thanks. Error message is returned this way. However theres a Notice you might want to look into for the next update. `Notice: Array to string conversion in /var/www/.../PEAR2/Net/RouterOS/Util.php on line...

When using `$mac = $client->sendSync($printRequest)->current()->getProperty('mac-address');` I got this error: `PEAR2\Net\Transmitter\SocketException: Failed to connect with socket. in /home/admin/web/domain/public_html/PEAR2/Net/Transmitter/TcpClient.php:199 Stack trace: #0 /home/admin/web/domain/public_html/PEAR2/Net/Transmitter/TcpClient.php(160): PEAR2\Net\Transmitter\TcpClient->createException('Failed to cone...', 8) #1 /home/admin/web/domain/public_html/PEAR2/Net/RouterOS/Communicator.php(141): PEAR2\Net\Transmitter\TcpClient->__construct('95.xx.xx.81', 8728, false,...

I've downloaded the latest version **1.0.0b5**, however it still doesn't seem to work. With: `$mac = var_dump(get_class_methods($client->sendSync($printRequest)->current()));` I get: `array(11) { [0]=> string(11) "__construct" [1]=> string(7) "getType" [2]=> string(11) "getArgument"...

Its **null**, not false sorry. Just in case there is something wrong with the condition, I am `echo`ing `$mac` in `else`. ``` echo 'Your IP ('.$ip.$mac. ') is not part...

`$ip = $_SERVER['REMOTE_ADDR'];` I am using it this way in order to be able to have multiple routers access this page. This way it does establish a connection with the...

So how do you propose I get the IP so I can have multiple routers opening this page, with the same login info just different IPs? The IPs on some...

So either: ``` $printRequest->setQuery( RouterOS\Query::where('src-reply-address', $_SERVER['REMOTE_PORT']) ); ``` or this then: ``` $printRequest->setQuery( RouterOS\Query::where('dst-reply-address', $_SERVER['REMOTE_PORT']) ); ``` Or did you mean `$_SERVER['X_FORWARDED_FOR']` instead of `$_SERVER['REMOTE_PORT']`?

You mentioned something about hotspot above. It should "hopefully" work regardless whether its a hotspot or not. I'll try, thought I doubt I'll solve it...a total newb with RouterOS and...

> Hi, i already updated script to login with version 6.43. > > ``` > private static function _login( > Communicator $com, > $username, > $password = '', > $timeout...