Git Product home page Git Product logo

Comments (3)

ondras12345 avatar ondras12345 commented on May 30, 2024 2

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.

mmikhan avatar mmikhan commented on May 30, 2024 1

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.

muhammad-ihsan avatar muhammad-ihsan commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.