Private Network Problem
itsjoeoui
HOBBYOP

16 days 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](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

16 days 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

16 days ago

  1. Yes

  2. Yes


itsjoeoui
HOBBYOP

16 days 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

16 days 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](http://frankfurter.railway.internal:8080) and see if that produces a different result?


itsjoeoui
HOBBYOP

16 days 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

16 days ago

same error


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


itsjoeoui
HOBBYOP

16 days ago

1466835055254175700
1466835055832862700


itsjoeoui
HOBBYOP

16 days ago

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


Loading...