I integrated sign in with google option in my tomcat web-app. sign in with google option works perfectly when used localhost, because I have added the localhost URL in authorised javascript origins.

But, I want my web app to work when entering the Ip address too, I am able to see the sign in page but when i try to sign in with google option, it doesn't show any google accounts. I am using dynamic ip address. Help me to resolve this issue.