# Connect local MySQL DB to Confluent Cloud using mySQL connector

**URL:** <https://forum.confluent.io/t/connect-local-mysql-db-to-confluent-cloud-using-mysql-connector/7996>\
**Category:** Confluent Cloud\
**Created:** [1 June 2023 18:13 UTC](https://forum.confluent.io/t/connect-local-mysql-db-to-confluent-cloud-using-mysql-connector/7996 "2023-06-01T18:13:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adhishankarit](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@adhishankarit](https://forum.confluent.io/u/adhishankarit)\
**Post date:** [1 June 2023 18:13 UTC](https://forum.confluent.io/t/connect-local-mysql-db-to-confluent-cloud-using-mysql-connector/7996/1 "2023-06-01T18:13:40Z")

</div>

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\*\*\*\*

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [5 June 2023 17:44 UTC](https://forum.confluent.io/t/connect-local-mysql-db-to-confluent-cloud-using-mysql-connector/7996/2 "2023-06-05T17:44:54Z")

</div>

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](https://stackoverflow.com/questions/76388173/confluent-mysql-connector-connection-not-established/76393428#76393428)
