They are either or.
If you do user defined bridge, don't modify the proxy conf and it should work (after you enable it by renaming).
If you do host networking or macvlan, replace the container name with the ip address.
What you tried to do above was mixing and matching. You had user defined bridge network, but you also tried to connect via ip of the host. However, because you did not map the container port on the host port, connection through host ip did not work.