If the database is on the same system, then the IP is typically something like localhost's 127.0.0.1. If the DB is on the same system, try setting your <hostname> to "localhost" rather than an external IP.