-
I'm trying to set up Ogmios with a private testnet (https://github.com/woofpool/cardano-private-testnet-setup). I managed to make the container run and it seems to sync to the chain just fine. However, when I use the Typescript client connect to the Ogmios server and create an interaction context, it fails to connect and throws a socket hang up error
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
You shouldn't be using So, if your connecting to a container and correctly forwarding the container port to your host machine, I'd suggest to try connecting to "localhost" instead. |
Beta Was this translation helpful? Give feedback.
-
I've tried localhost, but still throws the same error though. I also noticed when starting the container message it displays dashboardUrl uses port 1337 for some reason? What I am currently running:
|
Beta Was this translation helpful? Give feedback.
-
Okay so I shut off my mainnet node + ogmios container and now set port 1337 (-p 1337:1337) and it works! Any idea what may be the culprit? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same error using Ogmios with a private network, but changing the port number didn't resolve the issue in my case. is there any extra step you took @Et9797? thanks :) |
Beta Was this translation helpful? Give feedback.
-
As @rhyslbw pointed out, this was mostly an issue with the port mapping between your docker container and your host, not really related to Ogmios. @Et9797 may you mark the discussion as answered, should everything's been answered now :) |
Beta Was this translation helpful? Give feedback.
The port mapping was invalid since Ogmios was being started on the default
1337
. The following would work:or