# "getaddrinfo ENOTFOUND https://1f121fc7.ngrok.io https://1f121fc7.ngrok.io:3306"

**URL:** <https://community.auth0.com/t/getaddrinfo-enotfound-https-1f121fc7-ngrok-io-https-1f121fc7-ngrok-io-3306/36813>\
**Category:** Get Help\
**Created:** [January 24, 2020, 1:06pm UTC](https://community.auth0.com/t/getaddrinfo-enotfound-https-1f121fc7-ngrok-io-https-1f121fc7-ngrok-io-3306/36813 "2020-01-24T13:06:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![haroon.momin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/haroon.momin/32/13039_2.png) [@haroon.momin](https://community.auth0.com/u/haroon.momin)\
**Post date:** [January 24, 2020, 1:06pm UTC](https://community.auth0.com/t/getaddrinfo-enotfound-https-1f121fc7-ngrok-io-https-1f121fc7-ngrok-io-3306/36813/1 "2020-01-24T13:06:17Z")

</div>

i am connecting my localhost to Auth0 server with ngrok.exe with 443 port.  
as i am using own db with Auth0 try click and this message came "“getaddrinfo ENOTFOUND [https://1f121fc7.ngrok.io](https://1f121fc7.ngrok.io) [https://1f121fc7.ngrok.io:3306](https://1f121fc7.ngrok.io:3306)"”.  
function login(email, password, callback) {  
const mysql = require(‘mysql’);  
const bcrypt = require(‘bcrypt’);

const connection = mysql.createConnection({  
host:‘[https://1f121fc7.ngrok.io](https://1f121fc7.ngrok.io)’,  
user: ‘root’,  
password: ‘’,  
database: ‘dbname’  
});

connection.connect();

const query = ‘SELECT id, email FROM users WHERE email = ?’;

connection.query(query, [email], function(err, results) {  
if (err) return callback(err);  
if (results.length === 0) return callback(new WrongUsernameOrPasswordError(email));  
const user = results[0];

```
bcrypt.compare(password, user.password, function(err, isValid) {
  if (err || !isValid) return callback(err || new WrongUsernameOrPasswordError(email));

  callback(null, {
    user_id: user.id.toString(),
     email: user.email
  });
});

```

});  
}

what is wrong in it. plz answer it ASAP. Thanks. I have development env.

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [January 24, 2020, 5:35pm UTC](https://community.auth0.com/t/getaddrinfo-enotfound-https-1f121fc7-ngrok-io-https-1f121fc7-ngrok-io-3306/36813/2 "2020-01-24T17:35:23Z")

</div>

Hello!

getaddrinfo ENOTFOUND generally means the client was not able to connect to given address. I would recommend trying to specify the host without https:

example:

```auto
{
    host : 'localhost',
    port : 455,
    path : '/quote/random'
}

```

---

<div class="post-metadata">

**Author:** ![haroon.momin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/haroon.momin/32/13039_2.png) [@haroon.momin](https://community.auth0.com/u/haroon.momin)\
**Post date:** [January 25, 2020, 7:14am UTC](https://community.auth0.com/t/getaddrinfo-enotfound-https-1f121fc7-ngrok-io-https-1f121fc7-ngrok-io-3306/36813/3 "2020-01-25T07:14:43Z")

</div>

Thanks @karen1,

I did that, now I am getting this error.  
“connect ETIMEDOUT” .

I am a beginner developer. I am connecting this with ngrok, with my local DB.  
I am using Auth0 provided custom login with custom DB.  
and i am checking on Auth0 CLICKING on TRY button.  
I have also check with whitelist IPs but no luck.  
This is my code.  
const connection = mysql.createConnection({  
host: ‘[d2c6ec27.ngrok.io](http://d2c6ec27.ngrok.io)’,  
user: ‘root’,  
password: ‘’,  
database: ‘hstarapp’  
});  
plz guide me. Thanks in advance…
