Hacker News new | past | comments | ask | show | jobs | submit login

You can even have the JSON version:

    location /json_ip {
        default_type application/json;
        return 200 "{\"ip\":\"$remote_addr\"}";
    }



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: