Private Networking ECONNREFUSED

a year 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:


    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

7 Replies

a year ago

is you backend listening on port 80?


a year ago

Oh you're right it's listening on 8080


a year ago

try port 8080 in your url then


a year ago

It works thanks !


a year ago

no problem!


a year ago

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


a year ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...