Private Network Problem
itsjoeoui
HOBBYOP

4 months 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

4 months ago

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


4 months ago

  1. Is the "Frankfurter" service listening on port 8080?
  2. Is the other service in the same environment?

itsjoeoui
HOBBYOP

4 months ago

  1. Yes
  2. Yes

itsjoeoui
HOBBYOP

4 months 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

4 months ago

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


4 months ago

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

4 months 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

4 months ago

same error


4 months ago

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


itsjoeoui
HOBBYOP

4 months ago

1466835055254175744

1466835055832862720


itsjoeoui
HOBBYOP

4 months ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...