Private Networking ECONNREFUSED

5 months ago

I am trying to reach my Hono backend from my NextJS app using private networking, but on every HTTP request I get this error in my NextJS app:

```error TypeError: fetch failed

at async h (.next/server/app/(routes)/(main)/page.js:1:1795) {

[cause]: Error: connect ECONNREFUSED fd12:c7f1:d3cf:0:2000:16:4e81:67b6:80

  at  (Error: connect ECONNREFUSED fd12:c7f1:d3cf:0:2000:16:4e81:67b6:80) {

errno: -111,

code: 'ECONNREFUSED',

syscall: 'connect',

address: 'fd12:c7f1:d3cf:0:2000:16:4e81:67b6',

port: 80

}

}```

Using public networking works perfectly but I want to switch to private 😢
Both services are under US-West Metal Region

Project ID: e8b842e3-3ef8-4517-8759-b080be8df8ad

Solved

0 Replies

5 months ago

is you backend listening on port 80?


5 months ago

Oh you're right it's listening on 8080


5 months ago

try port 8080 in your url then


5 months ago

It works thanks !


5 months ago

no problem!


5 months ago

Btw do you know how can I get the discord Pro plan role ?


5 months ago

!s


Status changed to Solved brody • 5 months ago