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

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?

Is there anyone?

I need help

Have you fixed this one, im stuck in this

Did you solved it ? I am also stuck in it

I am also facing same issue, can you help me !

i am also facing this issue whenever i try to open the page its not working properly.I am confused whats the issue really is.

I was experiencing the same issue, albeit using @shopify/shopify-app-react-router, but I think I found a solution. I just edited package.json under the docker-start script with an inline environment variable assignment of HOST=0.0.0.0.

"docker-start": "npm run setup && HOST=0.0.0.0 npm run start"

N.B. I’ve never worked with the template, React Router, Remix, or fly.io. In fact, this is the first time I’ve developed a Shopify app at all. So hopefully someone else can provide a better solution but, in the meantime, this appears to work. ¯\_(ツ)_/¯