Yep sorry Mike your right, I said Ping, I meant IPConfig, If I wanted to ping, well I'd be back with the original problem...
respectfully, j -----Original Message----- From: Mike Townend [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 11:06 AM To: CF-Talk Subject: RE: server ip and CGI vars Im not sure if you will be able to truly do this using the standard CGI variables... The nearest one to this would be the SERVER_NAME or the HTTP_HOST... However... This is passed by the client... for our internal dev servers we access them via an IP address.. so I have added the word DEV to my hosts file with the associated IP address... and with the Debug output on the server the server_name and http_host contain the word Dev which will be unresolvable at the CFServer... What you could potentially do is CFExecute the IPConfig command from the CMD prompt on the server.. this *should* return the IP's that the server has... HTH At 10:55 3/7/2002 +0100, you wrote: >Will I can't see anything listed that will give this info, > >all listed CGI vars are, > >ALL_HTTP >AUTH_TYPE >CONTENT_LENGTH >CONTENT_TYPE >GATEWAY_INTERFACE >HTTP_ACCEPT >HTTP_REFERER >HTTP_USER_AGENT >PATH_INFO >PATH_TRANSLATED >QUERY_STRING >REMOTE_ADDR >REMOTE_HOST >REMOTE_IDENT >REMOTE_USER >REQUEST_BODY >REQUEST_METHOD >SCRIPT_NAME >SERVER_PORT >SERVER_PROTOCOL >SERVER_SOFTWARE > >nothing specifies the server IP, I think there must functions used that are >not listed, > >the only way I can think to do this is to > ><CFEXECUTE> a ping command, then do a hard coded <SWITCH><CASE> of known >IP's > >We have four servers and move applications to diifferent servers for various >reasons >and within app gloabls would like to determine the IP as oppossed to a DNS >so as to set >the apprpriate system vars, > > > >-----Original Message----- >From: Will Swain [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, July 03, 2002 10:48 AM >To: CF-Talk >Subject: RE: server ip and CGI vars > > >try SERVER_NAME - Server's hostname, DNS alias, or IP address as it appears >in self-referencing URLs. > >The cf docs have a full listing of CGI vars > >HTH > >w > >-----Original Message----- >From: John McCosker [mailto:[EMAIL PROTECTED]] >Sent: 03 July 2002 10:22 >To: CF-Talk >Subject: server ip and CGI vars > > >Hey Guys, > >What is the CGI var, >that will give me the servers IP on which CF is sitting, > >also how do I get ip address resolved to different domain names, > >i.e. http//wwww.address1.com > http//wwww.address2.co.uk, > >repectfully, > >j > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

