Remote server MongoDB connection from Compass

Hi,

I will connect to a Jumpserver through ssh and will connect to the db server from the jump server.

I am not able to ping to the db server from my local machine.
How to connect to the db server from compass on my local machine.

Regards,
RK