summaryrefslogtreecommitdiff
path: root/ip/ip.c
blob: d4fe9500d920ece2125456d18a319dd7f0c806ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* $Id$ */

#include <stdio.h>
#include <stdlib.h>

int
main()
{
	char	*ra;

	printf("Content-type: %s\r\n\r\n", "text/plain");

	if ((ra = getenv("REMOTE_ADDR")) != NULL)
		printf("Your IP is: %s\n", ra);

	return 0;
}