[NodeJS] IP address is not permitted by RFC 6066

85 / 100 SEO Score

Time to dabble on the technology end and this time no more old time Java, but more to NodeJS. Those looking for the answer to solve the following RFC 6066 issue.

[DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.

It looks all gibberish but after reading through the warning, it is actually very simple. It means that IP address is not permitted but to use the ServerName instead. Wait, hold up, but shouldn’t that be okay? For those that hit this issue, here are some things you might have to check on your NodeJS version.

javascript NodeJS RFC 6066

Open up the command prompt or your terminal and type this

node -v

I believe that your current version would be node v12.xx.x which would create this warning and hence you are not able to connect to the server mentioned.

Where did I learn NodeJS?

Everything now can be learnt online. There are multiple online platforms to perform these and the one I have been using was Udemy. If you would like to learn too, you can sign up too. Click the banner below or the one on the right to learn indefinitely.

Generic Category (English)640x480

Back to NodeJS Error

Solution To Solve IP Address not permitted by RFC 6066

Upgrade NodeJS

Upgrade your NodeJS version into the newest stable release. At time of writing, this is at version 15 which should resolve this issue as I believe the IP address is now ignored in future version.

Use ServerName on Current NodeJS Version

Rather than use the IP address, use the current servername instead and this issue will be resolved. NodeJS is just that simple.

Voila. Problem is now solved.

2 Comments

  1. requiredName September 20, 2022
  2. techieDan June 1, 2023

Leave a Reply