How to access host's port from container?

i want to connect my container to host’s port that forwarded via ssh
for example, i run this command from my host:

ssh user@host -p 22221 -L3308:127.0.0.1:3306

how to connect my container to host’s 3308 port?
i’ve tried using the gateway ip (ex: 172.18.0.1:3308) but it did not work