What variable holds the IP address of a server?
CGI.REMOTE_ADDR
Umm.. that's looks like my IP. Not the IP of the server.
That's correct. There's no CGI variable which exposes any meaningful
information about the IP address or DNS entry for a server.
Presumably that's a security
You could try to ping cgi.server_name. I think there is a tag by Lewis
Sellers at www.intrafoundation.com that does this.
Would that work if the domain name was only used in an intranet environment?
Thanks for the info, BTW.
PS. I know next-to-nothing about DNS and the network admin isn't
What variable holds the IP address of a server?
CGI.REMOTE_ADDR
Umm.. that's looks like my IP. Not the IP of the server.
That's correct. There's no CGI variable which exposes any meaningful
information about the IP address or DNS entry for a server.
what about
How reliable would this scenario be, then:
One application with one application.cfm. Three locations for the
application: local development machine, public production server,
private production server. Only some resources are available on
each platform, need a way to determine which platform
How reliable would this scenario be, then:
One application with one application.cfm. Three locations for the
application: local development machine, public production server,
private production server. Only some resources are available on
each platform, need a way to determine which
As an alternative, what I generally recommend for machine-specific
application settings is that you store them on the machine itself,
and have your application read those values from wherever you've
stored them. You could store them in a text file, or within the
registry, for example. If
What variable holds the IP address of a server?
CGI.REMOTE_ADDR
Umm.. that's looks like my IP. Not the IP of the server.
That's correct. There's no CGI variable which exposes any
meaningful information about the IP address or DNS entry
for a server.
Presumably
CGI.HTTP_HOST
HTH,
Stephen
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe:
2001 8:01 AM
Subject: RE: Displaying the IP of a server
What variable holds the IP address of a server?
CGI.REMOTE_ADDR
Umm.. that's looks like my IP. Not the IP of the server.
That's correct. There's no CGI variable which exposes any meaningful
information about the IP
What variable holds the IP address of a server?
CGI.REMOTE_ADDR
Umm.. that's looks like my IP. Not the IP of the server.
--
Aidan Whitehall [EMAIL PROTECTED]
Netshopper UK Ltd
Advanced Web Solutions Services
http://www.netshopperuk.com/
Telephone +44 (01744) 648650
Fax +44 (01744)
There's a custom tag in the gallery called cfx_nslookup that will allow you
to get this. It can do a forward or reverse lookup.
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 3:28 AM
To: CF-Talk
Subject: RE: Displaying the IP
You could try to ping cgi.server_name. I think there is a tag by Lewis
Sellers at www.intrafoundation.com that does this.
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives:
What variable holds the IP address of a server?
CGI.REMOTE_ADDR
Umm.. that's looks like my IP. Not the IP of the server.
That's correct. There's no CGI variable which exposes any meaningful
information about the IP address or DNS entry for a server.
Dave Watts, CTO, Fig Leaf Software
cgi.remote_addr
Aidan Whitehall [EMAIL PROTECTED] wrote:
Can't find the answer to this probably oh-so-easy question...
What variable holds the IP address of a server?
Turned debugging and there's no cgi variable that displays it... only server
name which is the URL part after http://.
CGI.REMOTE_ADDR
Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 4:19 AM
To: CF-Talk
Subject: Displaying the IP of a server
Can't find the answer to
SERVER_NAME is avaiable, cannot find the IP however...
Terry Bader
IT/Web Specialist
EDO Corp - Combat Systems
(757) 424-1004 ext 361 - Work
[EMAIL PROTECTED]
(757)581-5981 - Mobile
[EMAIL PROTECTED]
icq: 5202487 aim:
To: CF-Talk
Subject: RE: Displaying the IP of a server
CGI.REMOTE_ADDR
Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 4:19 AM
To: CF-Talk
Subject: Displaying
17 matches
Mail list logo