A simple Node.js application that displays your IP address.
- Install dependencies:
npm install
- Start the server:
npm start
Once the server is running, you can access the following endpoint:
GET http://localhost:3000/my-ip
- Returns your IP address in JSON format
Example response:
{
"ip": "123.45.67.89"
}