How to set the listening address for a Shopify Remix project?

How to set the listening address for a Shopify Remix project?

MikeGuo
Shopify Partner
10 0 0

When I deployed the project to fly.io, I encountered the following error.

 

 

WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:8081
Found these processes inside the machine with open listening sockets:
PROCESS | ADDRESSES
-----------------*---------------------------------------
/.fly/hallpass | [fdaa:9:421e:*****c:bbfe:906e:2]:22


-------
✔ Cleared lease for 7811009a996418
-------
Checking DNS configuration for fi***l.fly.dev
WARN DNS checks failed: expected 1 AAAA records for fi***l.fly.dev., got 0

 

 

 I saw someone suggest that it might be due to the listen address.

 

 

That warning happens when the app process isn’t listening on port 8081, it actually checks within the VM.

This is usually because it’s listening on 127.0.0.1, it needs to be listening on 0.0.0.0 for our proxy to be able to access it.

 

 

So, I would like to ask how to change the listen address in a Shopify Remix project?

Replies 2 (2)

MikeGuo
Shopify Partner
10 0 0

Is there anyone?

MikeGuo
Shopify Partner
10 0 0

I need help