I am trying to run dfx on my public ip using this command :
dfx start --host ‘publicIp:port’
The error i am getting:
Error: Failed to get frontend address.
Caused by: Failed to find reusable socket address
Caused by: Failed to bind socket to publicIp:port.
Caused by: Cannot assign requested address (os error 99)
Is it possible to run it on my public ip ? if so am i doing something wrong here
Ps: trying this on an aws ec2 instance
Did you try 0.0.0.0:port or 127.0.0.1:port?
1 Like
Hi, in my dfx.json has
"networks": {
"local": {
"type": "ephemeral",
"bind": "0.0.0.0:4943",
"provider": "http://localhost:4943"
}
},
And when run dfx start it say:
Replica API running on 0.0.0.0:4943. You must open a new terminal to continue developing. If you’d prefer to stop, quit with ‘Ctrl-C’.
But when I run dfx deploy, it say
dfx deploy
Error: The replica returned an HTTP Error: Http Error: status 400 Bad Request, content type “text/plain; charset=utf-8”, content: error: unknown_domain
details:
The requested domain is not served by this HTTP gateway.
Do you know why does this error happend and how to fix it. Thanks