CGI | Get Domain Name and client IP lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- cpalx · 2019-09-30 21:01 Hello, Using CGI, 1. how could i get The domian name (i will have several domains going to the same server) 2. Hoiw could i get the Client Ip ---------------------------------------------------------------------- zamronypj · 2019-09-30 21:42 CGI application get those informations from CGI environment variables set by web server Code: [Select]var host, ip : string; ... host := getEnvironmentVariable('HTTP_HOST'); ip:= getEnvironmentVariable('REMOTE_ADDR'); Read https://tools.ietf.org/html/rfc3875 for more information ---------------------------------------------------------------------- cpalx · 2019-10-01 00:53 Thanks a lot.