Get your public IP with just 2 lines of code

public ip api node.js express vercel
Get your public IP with just 2 lines of code

There are lots of API's that give you your IP address via a GET request, The only problem being most of them have a limited no of API calls for a period of time.

To solve this problem here is a codelab to make your own IP address API with just 2 lines of code.

 

Things we are going to use

  1. Nodejs 14.x
  2. Expressjs
  3. vercel (to deploy the API online)
Discussion

3

0