Hello @nevelis ,
Welcome to balena forums!
You can expose your container port making it available from other nodes in the device network in multiple ways:
network: host on your service in docker-compose file - this will make your container to use the host OS network stack, and all ports exposed by the container (for instance, with EXPOSE in Dockerfile) will be published
ports field on your service in docker-compose to something like `- ‘<host_port:container:port/>’. For instance,
Steps above, as I mentioned, will make your container exposed to the network that the device belongs to. Speaking about publically accessible IP address, balena provides a “device URL” functionality but this indeed works with HTTP traffic only (and has websocket support).
Hence, making your device accessible/disocverable (without using the tunnel functionality) would need to be achieved in some other ways.