Changing the value does not affect any existing database, the value in the client setting is the default for new databases.
1) Delete the Database.
2) Go to client settimngs, make sure that the correct database server is selecetd there and click on save. You have to save the clinet settings once even if the correct server shows up already, as if there is only one db server, then this one shows up of course in the list even of you have not selected it yet.
3) Create a new database as client.
If I select allow remote access and input the ip of the webserver I can connect.
Thats required beside the above settings, even if it is not related to the original problem. To access a database from a specific IP, you have to allow access from this IP to the database if the database and web server are not the same server.