Private Network Problem
itsjoeoui
HOBBYOP

a month ago

I have a Docker container deployed and the private domain is frankfurter.railway.internal

I tried to curl this in another railway server curl http://frankfurter.railway.internal:8080 but I get curl: (7) Failed to connect to frankfurter.railway.internal port 8080 after 57 ms: Couldn't connect to server

$10 Bounty

11 Replies

itsjoeoui
HOBBYOP

a month ago

Project ID: 78ddbf30-8335-4dce-8fb2-17afb650dc8a


  1. Is the "Frankfurter" service listening on port 8080?

  2. Is the other service in the same environment?


itsjoeoui
HOBBYOP

a month ago

  1. Yes

  2. Yes


itsjoeoui
HOBBYOP

a month ago

In Frankfurther:

root@43a39618c46d:/app# curl localhost:8080
{
  "name": "Frankfurter",
  "description": "Currency data API",
  "versions": {
    "v1": "/v1"
  },
  "docs": "https://frankfurter.dev",
  "source": "https://github.com/lineofflight/frankfurter"
}
root@43a39618c46d:/app#

itsjoeoui
HOBBYOP

a month ago

btw my project seems to be ipv6 only. could that be the reason


That may be the cause, could you run curl -6 http://frankfurter.railway.internal:8080 and see if that produces a different result?


itsjoeoui
HOBBYOP

a month ago

root@42aacfd01ed9:/app# curl -6 http://frankfurter.railway.internal:8080
curl: (7) Failed to connect to frankfurter.railway.internal port 8080 after 57 ms: Couldn't connect to server
root@42aacfd01ed9:/app#

itsjoeoui
HOBBYOP

a month ago

same error


sanity check, could you screenshot the private networking section under service settings?


itsjoeoui
HOBBYOP

a month ago

1466835055254175700
1466835055832862700


itsjoeoui
HOBBYOP

a month ago

I ssh'ed into the server and tried to curl frankfurter


Loading...