Page 1 of 1

IP Address Not Recognized

Posted: Mon Mar 12, 2018 5:56 am
by Gobbo
Hi,

Admin won't allow ne to update my settings, as it says 'Warning: You do not have permission to modify settings!'.

Is this due to having a SP which only use dynamic IPs?

If so is there a fix for this?

Re: IP Address Not Recognized

Posted: Mon Mar 12, 2018 6:40 am
by thekrotek
This question was asked god knows how many times. Search by error message to find the solution. In the future search first, ask later.

Re: IP Address Not Recognized

Posted: Mon Mar 12, 2018 8:32 am
by IP_CAM
...and always check, if possibly some Modification already exists.
You could try out one of those... ;)
Ernie
---
Disable API checks
OpenCart API can cause you a lot of pain with different error messages like "Warning: You do not have
permission to access the API!" or "Warning: Your IP is not allowed to access this API!". If your IP-address
changes frequently, these messages can drive you mad. This little extension removes both session and
IP-address checks for API to make your life a little easier.
NOTE: By removing API security checks you can make your OpenCart API vulnerable!
https://www.opencart.com/index.php?rout ... n_id=30437
---
Fix permission to access the API error
https://www.opencart.com/index.php?rout ... n_id=28614
---

Re: IP Address Not Recognized

Posted: Tue Mar 13, 2018 9:41 pm
by Gobbo
Thanks for your help on this matter.

I had to put in an extension to disable the API request.

What does the API stop if it was enabled?

Re: IP Address Not Recognized

Posted: Tue Mar 13, 2018 10:09 pm
by straightlight
What does the API stop if it was enabled?
The API prevents unauthorized access to add, edit or remove any transactions from your catalog/controller/api folder by default by using a backward compatibility method. By disabling the API checks, you may also create security holes without realizing it.

Re: IP Address Not Recognized

Posted: Wed Mar 14, 2018 9:23 pm
by Gobbo
Okay, but I don't think there is anyway around this unless I change ISP? Which supply's a static IP address.

How would I go back to using the API if I have already used up the IP place holders?

Re: IP Address Not Recognized

Posted: Wed Mar 14, 2018 9:25 pm
by straightlight
The IP addresses must remain static in the first place. Merchant-based solutions do not usually involve using dynamic IP addresses when managing a store.

Re: IP Address Not Recognized

Posted: Sat Apr 07, 2018 7:38 am
by xairflyer
I have installed the extension and it is showing in my modifications as enabled and worked the day I installed it but when I came back to it few days later I still get the api error message

Re: IP Address Not Recognized

Posted: Sat Apr 07, 2018 9:34 pm
by straightlight
Then your API address is dynamic rather than static.

Re: IP Address Not Recognized

Posted: Mon Apr 09, 2018 6:55 pm
by xairflyer
straightlight wrote:
Sat Apr 07, 2018 9:34 pm
Then your API address is dynamic rather than static.
Ok so as long as I just update each time its ok, but ideally I want a static ip

Re: IP Address Not Recognized

Posted: Mon Aug 26, 2019 5:09 pm
by mundi07
Oh got it just need to set it up after every update. gatotv catmouse app