Google drive authentication

I want to authorize google drive access for getting backup of database and files. when I click on “Authorize Google Drive Access” button it is redrecting to me on authentication page and it says error 400. here I found that it is not getting my domain name in url it taking my local IP and the url is
http://xxx.xxx.x.xx/api/method/frappe.integrations.google_oauth.callback

what is the solution and what can I do ?