gatsbyjs/gatsby

The project is only functional on localhost and does not work with Astrill VPN.

Opened this issue · 1 comments

Preliminary Checks

Description

I found a portfolio website template built with Gatsby that works perfectly on localhost; however, it doesn't function with Astrill VPN. Is Gatsby incompatible with VPN services?

Reproduction Link

https://github.com/bchiang7/v4

Steps to Reproduce

  1. Download the source code from GitHub
  2. Install node modules and Astrill VPN
  3. Turn on VPN and Run the project

Expected Result

The website should load at localhost:8000

Actual Result

Localhost refused to connect

Environment

System: Windows 11
Browsers: Chrome

Config Flags

No response

This sounds like an issue with your environment, not with the gatsby framework.

You might try:

gatsby develop --help
# or 
gatsby serve --help

That will show you the various options you can specify. It sounds like you want to specify some other host name other than localhost:

  -H, --host                  Set host. Defaults to localhost                            [string] [default: "localhost"]