help, when logging in after entering the credentials and secret, it throws an error, it happens with everything, google sheets, excel and many more, I don’t know how to solve this problem
You need to ensure your n8n instance has the WEBHOOK_URL environment variable set to your full public URL.
- Incorrect:
localhost:5678or just the IP address. - Correct:
https://n8n.vpscl-1992083.vpshostgator.com
If you are using Docker, add this to your environment section: WEBHOOK_URL=https://n8n.vpscl-1992083.vpshostgator.com
Also, make sure the subdomain is valid

I still can’t bro, where do you make the environment change?
I have n8n on hostgator and it’s caused me a lot of problems, but that complicates things for my workflows
For OAuth2 (Google Sheets, Excel, etc.) to work, the “Redirect URI” must be a valid, publicly reachable URL. Because your domain is not resolving to an IP address, the browser fails to load the page after you enter your credentials.
Before changing anything in n8n, you must make the domain actually exist.
- Log into your HostGator cPanel/DNS Management.
- Look for Zone Editor or DNS Records.
- You need to add an A Record for the subdomain
n8n.- Name:
n8n.vpscl-1992083.vpshostgator.com(or justn8ndepending on the interface). - Type:
A - Value/Address: Enter the Public IP address of your VPS.
- Name:
- Save the record and wait a few minutes (or up to 24 to 72 hours) for it to propagate. You will know it’s working when you can successfully
pingthat address again.
Once the DNS is fixed, n8n needs to know that this is its official “public face” so it can generate the correct callback URLs for Google and Microsoft.
Depending on how you installed n8n on HostGator, you change the environment variables here:
- If using Docker (Most Common): Look for your
docker-compose.ymlfile or your.envfile. You need to set theWEBHOOK_URLvariable:
WEBHOOK_URL=https://n8n.vpscl-1992083.vpshostgator.com/
-
After changing this, you must restart the container:
docker-compose up -d. -
If using npm/Command Line: You need to export the variable before starting n8n:
export WEBHOOK_URL=https://n8n.vpscl-1992083.vpshostgator.com/
n8n start
Thanks a lot bro, I’ll give it a try and let you know if I manage to pull it off.
Did you follow my instruction?
What did you do? Write clearly
This is expected. How do you run n8n?
Hi, I managed to do everything you told me to do, but the problem of not being able to connect the accounts I want to connect keeps happening. Also, when I access n8n from Hostgator, it says the page is not secure.
No, you did not. Otherwise I would be seeing this
and not this
![]()
You still did not answer my question
Without sufficient context, you will always be stuck.
Please follow the instructions exactly and highlight any issues encountered along the way.
Claiming to do “everything” when you did not will not help you

