Connect local MySQL DB to Confluent Cloud using mySQL connector

Hello All, I am trying access local MySQL DB instance in laptop to Confluent cloud (free subscription) using MySQL source connector but it is not connecting. I could provide the correct IP address/hostname in the mySQL source connector properties.

I am able to do JDBC connection via JAVA program using localhost:3306 as hostname with port number.

How we can find the IP address/hostname which works in Confluent Cloud. I tried to find the hostname but that is coming as below

Your current IP address : LAPTOP-PO****/192.168.1.**
Your current Hostname : LAPTOP-PO****

You don’t need Confluent Cloud’s addresses. You need to expose your database from your router.

Answered here jdbc - Confluent MySQL connector connection not established - Stack Overflow