Comments (3)
Check that API is not restricted to an IP address range /ip service print
. It could also be blocked by one of the rules in /ip firewall filter print
. Users /user print
can also be restricted to a range of IP addresses.
Since you are trying to access a public IP address, it is most likely the firewall that is causing you problems.
Also, please make sure you use API-SSL to prevent sending your password in plain text over the Internet. Even with SSL, I would not recommend that you open the API to the Internet.
from routeros-api-php.
Never mind, I was able to figure it out. It looks like the api end point was disabled from the Mikrotik Router OS → IP → Services settings. Enabling it established the connection.
from routeros-api-php.
i get some error like this, on local machine its working well. But not on my production server.
the ping to mikrotik is working fine:
PING 103.130.19x.1xx (103.130.19x.1xx) 56(84) bytes of data.
64 bytes from 103.130.19x.1xx: icmp_seq=1 ttl=54 time=21.4 ms
64 bytes from 103.130.19x.1xx: icmp_seq=2 ttl=54 time=20.5 ms
64 bytes from 103.130.19x.1xx: icmp_seq=3 ttl=54 time=21.2 ms
64 bytes from 103.130.19x.1xx: icmp_seq=4 ttl=54 time=21.3 ms
64 bytes from 103.130.19x.1xx: icmp_seq=5 ttl=54 time=21.4 ms
64 bytes from 103.130.19x.1xx: icmp_seq=6 ttl=54 time=20.9 ms
did I miss something?
from routeros-api-php.
Related Issues (20)
- Got stuck when device is not available
- How to handle response error properly?
- Is there any way to get a user total download upload size of data?
- Wol HOT 2
- /export does not work ROUTEROS7 HOT 3
- done HOT 1
- Stream timed out error HOT 4
- Use /tool/ip-scan address=x.x.x.x HOT 9
- Find command doesn't support query
- script stucks when devbice is unavaiable HOT 2
- requires ext-sockets HOT 1
- Multiple query HOT 4
- Upgrade phpseclib HOT 7
- Why is it that when I try to use local it's fine, whereas when I try to upload it on the cpanel liveserver it can't connect HOT 2
- Can I fill the `host` not with IPv4 but with domain ? like tunnel.web.id ? HOT 2
- remove pppoe active not work HOT 1
- PHP Version Support HOT 2
- Problem executing a query HOT 1
- works with angular or nextjs frontend? HOT 1
- RestAPI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from routeros-api-php.