Nginx snippet for showing plain text IP adress of client as a response.
server {
server_name ip.slavi.cc;
location / {
return 200 $remote_addr;
add_header Content-Type text/plain;
default_type text/plain;
}
}