MikroTik is a Latvian company which was founded in 1995 in Riga to develop routers and wireless ISP systems. MikroTik now provides hardware and software for Internet connectivity in most of the countries around the world.
Questions tagged [mikrotik]
328 questions
2
votes
2 answers
Splitting mikrotik script into an key/value php array
Let's say, I have this script below in mikrotik router, I want to extract an array with key and value, how to do that if there is another value contains a = character,
add name=100YER on-login=":do {:put \"a\";} on-error={};"…

Akram Alshameeri
- 83
- 10
2
votes
2 answers
Mikrotik Wap AC. Unresettable?
I have 4 of Mikrotik 'Wap AC's.
3 of them are fine. But the fourth one turned out to be a problem, an enigma.
I have reset it (30-30-30) several times but it just refuses to be visible on LAN --WinBox cannot locate it, doing a full network scan…

Adem
- 265
- 3
- 10
2
votes
1 answer
HAProxy $_SERVER['REMOTE_ADDR']
i am struggling with HAProxy setup. Everything works well except IP, which is still displayed as local on web server instead of public. I have tried enable "option forwardfor" doesn´t work.
My setup is like. Mikrotik router, where is public IP. I…

Josef
- 21
- 2
2
votes
1 answer
Mikrotik V6.45.3 login php api Invalid username or password supplied. in Client.php (line 174)
I was trying to login mikrotik 6.45.3 version using php api but, getting error
Invalid username or password supplied. in Client.php (line 174)]".
Lower version of mikrotik firmware working fine with same API. I was trying to find the solution…

Rafiqul Islam
- 21
- 1
- 2
2
votes
1 answer
How to Create New User in Mikrotik Using Laravel?
I am trying to add new user using Mikrotik PHP API in Laravel. I can use the API for other usage (like view user information) but when I try to create new user, it gives me nothing, even no error, just redirect me to intended page.
My route…

Ahsan
- 1,289
- 3
- 13
- 37
2
votes
1 answer
Read data with parameter case insensitive API Mikrotik tik4net
I have a problem with the Mikrotik API in C#
I locate a logged user on hot spot with this code:
connection.LoadSingleOrDefault(connection.CreateParameter("user", *MyUserName*));
However it works on a case-sensitive basis; how can…

Dario
- 21
- 2
2
votes
4 answers
How to remove Mikrotik PHP Api firewall nat entry using find
I am trying to add and remove NAT entry using a single line php api code but unable to do it.
Terminal code Mikrotik:
/ip firewall nat remove [find comment=id9]
//Its working fine on terminal
I am trying writing bellow php api:
to…

Sakif Ahmed
- 21
- 1
- 4
2
votes
0 answers
Android convert diamond question marks to UTF-8 Arabic string
I'm using an API that sends and receives raw bytes.
But i have problem with displaying the Arabic words that comes over the API, it's displaying like diamond question marks "���"
I've tried to convert the string from and to utf-8.
This example…

Amr SubZero
- 1,196
- 5
- 19
- 30
2
votes
1 answer
Mikrtotik - Internal login page causing Infinte loops
I am trying to use the Mikrotik hotspot with following scenario.
When the user connected to hotspot, login.html page redirect to external page index.php to check exist user from csv.
if user exist then it will redirect to redirect.html.
if user not…

M. Qasim
- 53
- 1
- 8
2
votes
2 answers
Mikrotik Hotspot PHP API
i'm working with php api by Mikrotik, but i do not how control if the user is disconnected do not run the limit-uptime?
this is my code
$API->write("/ip/hotspot/user/add", false);
$API->write("=name=".$usuario,…

Miguel Garcia
- 35
- 2
- 8
2
votes
3 answers
How to call an onclick javascript function directly in url?
I want to call to a onclick function as I am writting script for MikroTik RouterBoard in order to restart my Modem by just visiting a simple link directly but what I found was that the page from which Modem is rebooting there is a button which calls…

Umair Shah
- 2,305
- 2
- 25
- 50
2
votes
1 answer
MikroTik automated restore-configuration or backup script
I am trying to solve some case on MikroTikOS 5.56. The only thing I need is force MikroTik to automated restore configuration and reset after it. I need a script to handle this:
Automatically restore configuration or backup file without any user…

user3212139
- 51
- 1
- 5
2
votes
1 answer
how to use mikrotik-api in android studio
I'm trying to use mikrotik api Java in android, but when i downloaded it and added it in android studio project and used it the app forced to close!
The Mikrotik API On Github: https://github.com/GideonLeGrange/mikrotik-java
imports in the begging…

morajabi
- 147
- 5
- 15
2
votes
3 answers
Mikrotik Switch Commands (Create VLAN, Assign PORTS)
I've been working with a cisco switch and the commands are very simple;
eg/ vlan 100 (will add a vlan called 100)
interface 1/0/1 vlan 100 (will assign the vlan 100 to the port)
It seems mikrotik isn't the same. I don't have a mikrotik switch, but…

markthewizard1234
- 501
- 6
- 22
2
votes
1 answer
MikroTik php pear2 api stream_set_blocking() error on windows shared hosting
Getting this error when I try to connect mikrotik router with PHP Pear2 API on shared windows hosting. I don't think I have permission to access php.ini
PHP Warning: stream_set_blocking() has been disabled for security
reasons in
…

rahul chaurasia
- 153
- 1
- 9