Docker swarm services are not connected/communicated between two different Ubuntu 22.04 machines (swarm nodes). Docker swarm services communication has a problem in Ubuntu 22.04.
curl -I '<IP address>'
curl: (28) Failed to connect to <contianer id> port 80: Connection timeout.
Please share details about your environment: what cloud or vm platform is used, what firewall ports have been opened on the manger node and the worker node?
Furthermore, is the curl command executed in a container attached to an overlay network?