Over a million developers have joined DZone.

CGI Ipaddress

DZone's Guide to

CGI Ipaddress

Free Resource
/* This is a CGI program that prints out the IP address 
 * of the requester.


int main (int argc, char *argv[], char *envp[])
  char *REMOTE_ADDR;

  printf("Content-type: text/plain \n\n");
  return 0;


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}