Container unable to reach other container

Hey,

I have 2 containers that need to be able to communicate with each other but they can’t for some reason.

container A that can not reach container X is host only so is using the truenas host IP to commicate.

Container X has a fixed IP of 192.168.0.60.

I can reach the webapp running on container X from my local lan and the truenas host can not reach it and container A can not reach it.

truenas
Screenshot 2024-08-31 at 11.36.24 a.m.
container A

root@webapp-ix-chart-85cd74ff46-z784p:/# nc -zv 192.168.0.60 80
nc: connect to 192.168.0.60 port 80 (tcp) failed: No route to host

my own machine
Screenshot 2024-08-31 at 11.38.34 a.m.

I have tired added a static route to true nas and restarting the container but still get the same result.

Anyone have any idea what is going on.

Could it be that you need a bridge?