I’ve deployed two very simple web services (Go application, deployed with Dockerfile) and wanted to test whether one service can call the other with a rest/HTTP call.
I used the address I got after the deployment (…fly.dev), but it was unsuccessful, so one app can’t call the other.
Is there any solution for this?
Fly machines run inside a private network, and DNS is set up so that you can find other machines on the same network. For example, if those are two separate fly apps they can find each other by using <appname>.internal as the hostname. For more details, see Private Networking · Fly Docs