I don’t know if the last solution would work the same way with swarm, but I just shared it in another topic minutes ago.
For swarm host network I found this old topic
I don’t know what your expectation was by using overlay networks. Maybe I get something wrong, but you either use the host network mode in containers or make a service listen on an IP which is available from containers.