TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Returns the caller's IP address and port

GEThttps://api.testingapis.com/api/echo/ip

Also reports the X-Forwarded-For and X-Real-IP headers when present (display only, not trusted).

Responses

200
Client IP, port and forwarded headers.

Example

Request
curl -X GET "https://api.testingapis.com/api/echo/ip"
Response200 OK
{"ip": "::1", "port": 59394, "forwardedFor": null, "realIp": null}