This is my database.yml configuration for development environment.
Now when i am trying to connect through my application it's using
application server IP instead of remote databse IP.
Have you restarted the server since you changed database.yml?
Are you running in development mode on the server?
You could try putting an error in your database.yml to make sure it is
using it. Put invalid username in for example.