Re: CGI.SERVER_NAME
I just did some tests, and CGI.SERVER_NAME displays whatever URL was used to access the page. So if the IP address is 1.1.1.1, and these three hosts point to 1.1.1.1: x.com, b.com, xb.org, and they all point to the same webpage with this code: it'll output the following: url: http://1.1.1.1 outputs: 1.1.1.1 url: x.com outputs: x.com url: b.com outputs: b.com url: xb.com outputs: xb.com Since you are using curl and you are specifying the IP in the URL, CGI.SERVER_NAME will be 1.1.1.1. Since this is a private IP address, under certain circumstances, this should never leak. For example, it could leak if you have a device (proxy server or load balancer) between the internet and the server, and all requests are being proxied from this device, and the device talks to your server via IP, and not via a hostname, then the internet would see the IP address as CGI.SERVER_NAME Chad Gray wrote: > While going through PCI compliance it appears that CGI.SERVER_NAME can leak > the internal private IP address. > > Does CGI.SERVER_NAME default to the internal IP setup in IIS? > > I have a re-direct in Application.cfm that if the user is on HTTPS to > cflocation them to http://#CGI.SERVER_NAME#/ and this leaks the private IP > 10.1.0.0 when using CURL > > curl -0 -k --head -v -H "Host: "https://1.1.1.1 > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334100 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CGI.SERVER_NAME
While going through PCI compliance it appears that CGI.SERVER_NAME can leak the internal private IP address. Does CGI.SERVER_NAME default to the internal IP setup in IIS? I have a re-direct in Application.cfm that if the user is on HTTPS to cflocation them to http://#CGI.SERVER_NAME#/ and this leaks the private IP 10.1.0.0 when using CURL curl -0 -k --head -v -H "Host: "https://1.1.1.1 Could this be DNS setup? Thanks, Chad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334099 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What *exactly* does cgi.server_name return.
Since IIS uses the DNS alias in the URL and that can easily be spoof by modifying your HOSTS file, I use a Java class if I need to identify a machine (like for environmental changes). InetAddress = createObject("java", "java.net.InetAddress"); hostName = InetAddress.getLocalHost().getHostName(); At least in IIS, this returns the fully qualified domain name of the ColdFusion machine. It looks like Mike is using Apache, so this might not be of specific use to him. However, it's here for others to find later. :) Jason ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: What *exactly* does cgi.server_name return.
> What exactly is cgi.server_name expected to return? The thing about CGI variables is that these expectations can be pretty vague. CF doesn't control them; they're controlled by the web server and/or the operating system. I would generally expect it to return the server hostname, IP address or DNS alias name used in the URL that got you to the server in the first place, but I wouldn't be completely surprised if it returns something else. If you want to know what it should return generally, you'd go here: http://www.w3.org/CGI/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: What *exactly* does cgi.server_name return.
Ian Skinner wrote: > I think I can get the answer faster from this helpful and generous group > of people then I can write one line of code and try it out on a wide > variety of environments. It depends on the web server. IIS should return whatever is in the "domain" part of the URL the user used to access the page. Apache uses the host header as set in the server configuration from what I can tell from other responses (I don't use Apache personally). -Justin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: What *exactly* does cgi.server_name return.
I thought I'd add to this: http://134.139.143.25/stompy/server.cfm http://cfdev.cota.csulb.edu/stompy/server.cfm http://servername/stompy/server.cfm http://servername.ad.dns.entry/stompy/server.cfm http://localhost/stompy/server.cfm all return: CGI.SERVER_NAME: cfdev.cota.csulb.edu I do have the servername set to cfdev.cota.csulb.edu in the httpd.conf file. Mike Mike Soultanian wrote: > http://134.139.143.25/stompy/server.cfm > > or > > http://cfdev.cota.csulb.edu/stompy/server.cfm > > both return: > > CGI.SERVER_NAME: cfdev.cota.csulb.edu > > It looks like it returns the name registered in the web server (apache, > in my case). The above addresses both go to the same server. > > Mike > > > Ian Skinner wrote: >> I think I can get the answer faster from this helpful and generous group >> of people then I can write one line of code and try it out on a wide >> variety of environments. >> >> What exactly is cgi.server_name expected to return? Looking at the >> following examples what would you expect to be in this variable? >> >> http://calpip-devsite/index.cfm >> >> http://calpip.cdpr.ca.gov/index.cfm >> >> http://calpip-devsite.inisde.cdpr.ca.gov/index.cfm >> >> http://10.104.106.113/index.cfm >> >> http://134.186.118.90/index.cfm/ >> >> TIA >> Ian >> >> >> >> >> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: What *exactly* does cgi.server_name return.
Adrian Lynch wrote: > calpip-devsite/index.cfm calpip-devsite > calpip.cdpr.ca.gov/index.cfm calpip.cdpr.ca.gov > calpip-devsite.inisde.cdpr.ca.gov/index.cfm > calpip-devsite.inisde.cdpr.ca.gov > 10.104.106.113/index.cfm 10.104.106.113 > 134.186.118.90/index.cfm/ 134.186.118.90 That is what I thought, but I wasn't 100% certain about the behavior with domains and sub-domains and potential IP addresses. And I just did not have a quick and easy variety of these options for testing to see for myself. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: What *exactly* does cgi.server_name return.
calpip-devsite/index.cfmcalpip-devsite calpip.cdpr.ca.gov/index.cfmcalpip.cdpr.ca.gov calpip-devsite.inisde.cdpr.ca.gov/index.cfm calpip-devsite.inisde.cdpr.ca.gov 10.104.106.113/index.cfm10.104.106.113 134.186.118.90/index.cfm/ 134.186.118.90 But, I did read somewhere that depending on your set up, either SERVER_NAME or the other one that looks like it returns the same thing can include the port. Google for something like "difference between SERVER_NAME and [some other CGI var that I can't remember]" and you'll come across a post or two that explains what it returns. Or not :OD Adrian > -Original Message- > From: Ian Skinner [mailto:h...@ilsweb.com] > Sent: 12 March 2009 17:20 > To: cf-talk > Subject: What *exactly* does cgi.server_name return. > > > I think I can get the answer faster from this helpful and generous > group > of people then I can write one line of code and try it out on a wide > variety of environments. > > What exactly is cgi.server_name expected to return? Looking at the > following examples what would you expect to be in this variable? > > http://calpip-devsite/index.cfm > > http://calpip.cdpr.ca.gov/index.cfm > > http://calpip-devsite.inisde.cdpr.ca.gov/index.cfm > > http://10.104.106.113/index.cfm > > http://134.186.118.90/index.cfm/ > > TIA > Ian ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320462 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: What *exactly* does cgi.server_name return.
http://134.139.143.25/stompy/server.cfm or http://cfdev.cota.csulb.edu/stompy/server.cfm both return: CGI.SERVER_NAME: cfdev.cota.csulb.edu It looks like it returns the name registered in the web server (apache, in my case). The above addresses both go to the same server. Mike Ian Skinner wrote: > I think I can get the answer faster from this helpful and generous group > of people then I can write one line of code and try it out on a wide > variety of environments. > > What exactly is cgi.server_name expected to return? Looking at the > following examples what would you expect to be in this variable? > > http://calpip-devsite/index.cfm > > http://calpip.cdpr.ca.gov/index.cfm > > http://calpip-devsite.inisde.cdpr.ca.gov/index.cfm > > http://10.104.106.113/index.cfm > > http://134.186.118.90/index.cfm/ > > TIA > Ian > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320461 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
What *exactly* does cgi.server_name return.
I think I can get the answer faster from this helpful and generous group of people then I can write one line of code and try it out on a wide variety of environments. What exactly is cgi.server_name expected to return? Looking at the following examples what would you expect to be in this variable? http://calpip-devsite/index.cfm http://calpip.cdpr.ca.gov/index.cfm http://calpip-devsite.inisde.cdpr.ca.gov/index.cfm http://10.104.106.113/index.cfm http://134.186.118.90/index.cfm/ TIA Ian ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320460 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CGI.Server_Name -- showing as IP of client?
I never saw Bobby's response quoted below, but yes, I'm sure the app is NOT running at the IP that's coming through in the cgi.server_name variable. Attempting to access those IPs in the browser fails (server not found or server 500 errors, depends on the IP). I'm not really trying to get the server_name from the cgi structure. I know which servers our application is running on. My question has to do with whether I can simply presume these requests are hack/spam attempts, or whether there are legitimate situations where this would happen, e.g., cgi.server_name == cgi.remote_addr Interestingly, I just came upon this post from Ray Camden, which shows just how ridiculously trivial it is to spoof cgi.server_name: http://www.coldfusionjedi.com/index.cfm/2008/6/5/Use-cgiservername-Be-careful Cheers, Kris > Write the error message in order to know more about it. > > You can get the server name using several CGIs variables: > > CGI.SERVER_NAME=iswebmx.lv.cfemex.com > CGI.HTTP_HOST=iswebmx.lv.cfemex.com > CGI.HTTP_REFERER=http://iswebmx.lv.cfemex.com/ > > you can use list function in order to pick server name from http_referer too. > > if you enable debuggin monitore in your ColdFusion Administrator to your IP > you will see all this information in CFMs you invoke > > i hope it helps you... > > greetings > > >>Is it possible that your app is indeed running on the server at that IP >>address? Have you tried to access the IP in a browser? >> >>.:.:.:.:.:.:.:.:.:.:. >>Bobby Hartsfield >>http://acoderslife.com >>http://cf4em.com >> >>I know the cgi structure can be spoofed, and admit to my ignorance as far as >>that goes. We've been getting some error messages showing cgi.Server_Name >>fulfilled with the caller's IP address. >> >>So here is my question: How would this happen? In what cases does the >>CGI.server_name variable get fulfilled with something other than the >>server_name (either IP or domain) CF is running on? Is this a >>browser-specific thing? Or is it really only an indication of a hack >>attempt? >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317735 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CGI.Server_Name -- showing as IP of client?
Write the error message in order to know more about it. You can get the server name using several CGIs variables: CGI.SERVER_NAME=iswebmx.lv.cfemex.com CGI.HTTP_HOST=iswebmx.lv.cfemex.com CGI.HTTP_REFERER=http://iswebmx.lv.cfemex.com/ you can use list function in order to pick server name from http_referer too. if you enable debuggin monitore in your ColdFusion Administrator to your IP you will see all this information in CFMs you invoke i hope it helps you... greetings >Is it possible that your app is indeed running on the server at that IP >address? Have you tried to access the IP in a browser? > >.:.:.:.:.:.:.:.:.:.:. >Bobby Hartsfield >http://acoderslife.com >http://cf4em.com > >I know the cgi structure can be spoofed, and admit to my ignorance as far as >that goes. We've been getting some error messages showing cgi.Server_Name >fulfilled with the caller's IP address. > >So here is my question: How would this happen? In what cases does the >CGI.server_name variable get fulfilled with something other than the >server_name (either IP or domain) CF is running on? Is this a >browser-specific thing? Or is it really only an indication of a hack >attempt? > >Thanks, >Kris ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317732 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CGI.Server_Name -- showing as IP of client?
Is it possible that your app is indeed running on the server at that IP address? Have you tried to access the IP in a browser? ..:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Kris Jones [mailto:kris.jon...@verizon.net] Sent: Wednesday, January 07, 2009 12:07 PM To: cf-talk Subject: CGI.Server_Name -- showing as IP of client? I know the cgi structure can be spoofed, and admit to my ignorance as far as that goes. We've been getting some error messages showing cgi.Server_Name fulfilled with the caller's IP address. So here is my question: How would this happen? In what cases does the CGI.server_name variable get fulfilled with something other than the server_name (either IP or domain) CF is running on? Is this a browser-specific thing? Or is it really only an indication of a hack attempt? Thanks, Kris ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317700 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CGI.Server_Name -- showing as IP of client ?
What web server are you using? I believe ColdFusion is dependent on the web server to supply the CGI information. ~Brad Original Message Subject: CGI.Server_Name -- showing as IP of client? From: "Kris Jones" Date: Wed, January 07, 2009 11:06 am To: cf-talk I know the cgi structure can be spoofed, and admit to my ignorance as far as that goes. We've been getting some error messages showing cgi.Server_Name fulfilled with the caller's IP address. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317536 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CGI.Server_Name -- showing as IP of client?
I know the cgi structure can be spoofed, and admit to my ignorance as far as that goes. We've been getting some error messages showing cgi.Server_Name fulfilled with the caller's IP address. So here is my question: How would this happen? In what cases does the CGI.server_name variable get fulfilled with something other than the server_name (either IP or domain) CF is running on? Is this a browser-specific thing? Or is it really only an indication of a hack attempt? Thanks, Kris ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317535 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: #CGI.SERVER_NAME# to display IP
That'd be the user agent... not the server. Bots are not "net connections". They use an ISP to get a net connection :) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Paul Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, October 10, 2005 8:31 AM To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP great thanks, and not everybody uses an isp for their net connetion. i.e. search engine robots. Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Kerry" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, October 10, 2005 1:10 PM Subject: RE: #CGI.SERVER_NAME# to display IP > If the ISP is what you want to get, then this should do it. > > > iaclass=CreateObject("java", "java.net.InetAddress"); > addresses = iaclass.getAllByName(cgi.REMOTE_ADDR); > for (i=1; i lte arraylen(addresses); i=i+1) > { > hostname = addresses[i].getHostName(); > writeoutput( hostname &""); > } > > > -Original Message- > From: Paul Stewart [mailto:[EMAIL PROTECTED] > Sent: 10 October 2005 11:59 > To: CF-Talk > Subject: Re: #CGI.SERVER_NAME# to display IP > > > yeah will see that remote_ip addr PHP has a function that converts that to > a > server name i.e. googlebot(whatever). Does coldfusion / java have a > similar > function / method? is that ok big man? > > Paul Stewart > Site Developer > [EMAIL PROTECTED] > www.whichfranchise.com > > - Original Message - > From: "Kerry" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Monday, October 10, 2005 10:03 AM > Subject: RE: #CGI.SERVER_NAME# to display IP > > >> what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and >> _you_ are the server? >> >> -Original Message- >> From: Paul Stewart [mailto:[EMAIL PROTECTED] >> Sent: 10 October 2005 09:32 >> To: CF-Talk >> Subject: Re: #CGI.SERVER_NAME# to display IP >> >> >> How do you get the name of the remote server, rather than just the IP >> addr? >> When i used PHP to log visits it gave you this? Is there any way to do it >> in >> CF/Java? >> >> Paul Stewart >> Site Developer >> [EMAIL PROTECTED] >> www.whichfranchise.com >> >> - Original Message - >> From: "Larry Juncker" <[EMAIL PROTECTED]> >> To: "CF-Talk" >> Sent: Thursday, October 06, 2005 12:11 PM >> Subject: RE: #CGI.SERVER_NAME# to display IP >> >> >>> No >>> If you want to see the IP Address you type in #CGI.REMOTE_ADDR# >>> >>> The following webpage will give you a list of the Cold Fusion Variables >>> >>> >> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm >>> >>> Hope this helps. >>> >>> >>> Larry Juncker >>> President & CEO >>> ALJ Computer Services, LLC >>> 1445 So 27th Street >>> Fort Dodge, IA 50501 >>> Office 515-576-0885 >>> Fax 515-576-8510 >>> Cell 515-571-1826 >>> [EMAIL PROTECTED] >>> >>> -Original Message- >>> From: Les Mizzell [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, October 05, 2005 6:21 PM >>> To: CF-Talk >>> Subject: #CGI.SERVER_NAME# to display IP >>> >>> Is there any way to get #CGI.SERVER_NAME# to display the IP address >>> instead >>> of the name (www.mysite.com) >>> >>> >>> -- >>> --- >>> Les Mizzell >>> >>> >>> >>> >> >> >> >> > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220561 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: #CGI.SERVER_NAME# to display IP
On Monday 10 October 2005 13:30, Paul Stewart wrote: > great thanks, and not everybody uses an isp for their net connetion. i.e. No, trust me, everyone has to have a ISP. No Service Provider, no Internet :-) > search engine robots. Google's googlebot (for instance) will use Google's ISP. -- Tom Chiverton Advanced ColdFusion Programmer ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220541 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
google recommends that you use the user agent property to detect their bots... http://www.google.com/webmasters/bot.html cgi.HTTP_USER_AGENT -Original Message- From: Paul Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2005 13:31 To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP great thanks, and not everybody uses an isp for their net connetion. i.e. search engine robots. Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Kerry" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, October 10, 2005 1:10 PM Subject: RE: #CGI.SERVER_NAME# to display IP > If the ISP is what you want to get, then this should do it. > > > iaclass=CreateObject("java", "java.net.InetAddress"); > addresses = iaclass.getAllByName(cgi.REMOTE_ADDR); > for (i=1; i lte arraylen(addresses); i=i+1) > { > hostname = addresses[i].getHostName(); > writeoutput( hostname &""); > } > > > -Original Message- > From: Paul Stewart [mailto:[EMAIL PROTECTED] > Sent: 10 October 2005 11:59 > To: CF-Talk > Subject: Re: #CGI.SERVER_NAME# to display IP > > > yeah will see that remote_ip addr PHP has a function that converts that to > a > server name i.e. googlebot(whatever). Does coldfusion / java have a > similar > function / method? is that ok big man? > > Paul Stewart > Site Developer > [EMAIL PROTECTED] > www.whichfranchise.com > > ----- Original Message - > From: "Kerry" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Monday, October 10, 2005 10:03 AM > Subject: RE: #CGI.SERVER_NAME# to display IP > > >> what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and >> _you_ are the server? >> >> -Original Message- >> From: Paul Stewart [mailto:[EMAIL PROTECTED] >> Sent: 10 October 2005 09:32 >> To: CF-Talk >> Subject: Re: #CGI.SERVER_NAME# to display IP >> >> >> How do you get the name of the remote server, rather than just the IP >> addr? >> When i used PHP to log visits it gave you this? Is there any way to do it >> in >> CF/Java? >> >> Paul Stewart >> Site Developer >> [EMAIL PROTECTED] >> www.whichfranchise.com >> >> - Original Message - >> From: "Larry Juncker" <[EMAIL PROTECTED]> >> To: "CF-Talk" >> Sent: Thursday, October 06, 2005 12:11 PM >> Subject: RE: #CGI.SERVER_NAME# to display IP >> >> >>> No >>> If you want to see the IP Address you type in #CGI.REMOTE_ADDR# >>> >>> The following webpage will give you a list of the Cold Fusion Variables >>> >>> >> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm >>> >>> Hope this helps. >>> >>> >>> Larry Juncker >>> President & CEO >>> ALJ Computer Services, LLC >>> 1445 So 27th Street >>> Fort Dodge, IA 50501 >>> Office 515-576-0885 >>> Fax 515-576-8510 >>> Cell 515-571-1826 >>> [EMAIL PROTECTED] >>> >>> -Original Message- >>> From: Les Mizzell [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, October 05, 2005 6:21 PM >>> To: CF-Talk >>> Subject: #CGI.SERVER_NAME# to display IP >>> >>> Is there any way to get #CGI.SERVER_NAME# to display the IP address >>> instead >>> of the name (www.mysite.com) >>> >>> >>> -- >>> --- >>> Les Mizzell >>> >>> >>> >>> >> >> >> >> > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220528 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: #CGI.SERVER_NAME# to display IP
great thanks, and not everybody uses an isp for their net connetion. i.e. search engine robots. Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Kerry" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, October 10, 2005 1:10 PM Subject: RE: #CGI.SERVER_NAME# to display IP > If the ISP is what you want to get, then this should do it. > > > iaclass=CreateObject("java", "java.net.InetAddress"); > addresses = iaclass.getAllByName(cgi.REMOTE_ADDR); > for (i=1; i lte arraylen(addresses); i=i+1) > { > hostname = addresses[i].getHostName(); > writeoutput( hostname &""); > } > > > -Original Message- > From: Paul Stewart [mailto:[EMAIL PROTECTED] > Sent: 10 October 2005 11:59 > To: CF-Talk > Subject: Re: #CGI.SERVER_NAME# to display IP > > > yeah will see that remote_ip addr PHP has a function that converts that to > a > server name i.e. googlebot(whatever). Does coldfusion / java have a > similar > function / method? is that ok big man? > > Paul Stewart > Site Developer > [EMAIL PROTECTED] > www.whichfranchise.com > > ----- Original Message - > From: "Kerry" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Monday, October 10, 2005 10:03 AM > Subject: RE: #CGI.SERVER_NAME# to display IP > > >> what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and >> _you_ are the server? >> >> -Original Message- >> From: Paul Stewart [mailto:[EMAIL PROTECTED] >> Sent: 10 October 2005 09:32 >> To: CF-Talk >> Subject: Re: #CGI.SERVER_NAME# to display IP >> >> >> How do you get the name of the remote server, rather than just the IP >> addr? >> When i used PHP to log visits it gave you this? Is there any way to do it >> in >> CF/Java? >> >> Paul Stewart >> Site Developer >> [EMAIL PROTECTED] >> www.whichfranchise.com >> >> - Original Message - >> From: "Larry Juncker" <[EMAIL PROTECTED]> >> To: "CF-Talk" >> Sent: Thursday, October 06, 2005 12:11 PM >> Subject: RE: #CGI.SERVER_NAME# to display IP >> >> >>> No >>> If you want to see the IP Address you type in #CGI.REMOTE_ADDR# >>> >>> The following webpage will give you a list of the Cold Fusion Variables >>> >>> >> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm >>> >>> Hope this helps. >>> >>> >>> Larry Juncker >>> President & CEO >>> ALJ Computer Services, LLC >>> 1445 So 27th Street >>> Fort Dodge, IA 50501 >>> Office 515-576-0885 >>> Fax 515-576-8510 >>> Cell 515-571-1826 >>> [EMAIL PROTECTED] >>> >>> -Original Message- >>> From: Les Mizzell [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, October 05, 2005 6:21 PM >>> To: CF-Talk >>> Subject: #CGI.SERVER_NAME# to display IP >>> >>> Is there any way to get #CGI.SERVER_NAME# to display the IP address >>> instead >>> of the name (www.mysite.com) >>> >>> >>> -- >>> --- >>> Les Mizzell >>> >>> >>> >>> >> >> >> >> > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220526 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
If the ISP is what you want to get, then this should do it. iaclass=CreateObject("java", "java.net.InetAddress"); addresses = iaclass.getAllByName(cgi.REMOTE_ADDR); for (i=1; i lte arraylen(addresses); i=i+1) { hostname = addresses[i].getHostName(); writeoutput( hostname &""); } -Original Message- From: Paul Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2005 11:59 To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP yeah will see that remote_ip addr PHP has a function that converts that to a server name i.e. googlebot(whatever). Does coldfusion / java have a similar function / method? is that ok big man? Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Kerry" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, October 10, 2005 10:03 AM Subject: RE: #CGI.SERVER_NAME# to display IP > what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and > _you_ are the server? > > -Original Message- > From: Paul Stewart [mailto:[EMAIL PROTECTED] > Sent: 10 October 2005 09:32 > To: CF-Talk > Subject: Re: #CGI.SERVER_NAME# to display IP > > > How do you get the name of the remote server, rather than just the IP > addr? > When i used PHP to log visits it gave you this? Is there any way to do it > in > CF/Java? > > Paul Stewart > Site Developer > [EMAIL PROTECTED] > www.whichfranchise.com > > - Original Message - > From: "Larry Juncker" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Thursday, October 06, 2005 12:11 PM > Subject: RE: #CGI.SERVER_NAME# to display IP > > >> No >> If you want to see the IP Address you type in #CGI.REMOTE_ADDR# >> >> The following webpage will give you a list of the Cold Fusion Variables >> >> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm >> >> Hope this helps. >> >> >> Larry Juncker >> President & CEO >> ALJ Computer Services, LLC >> 1445 So 27th Street >> Fort Dodge, IA 50501 >> Office 515-576-0885 >> Fax 515-576-8510 >> Cell 515-571-1826 >> [EMAIL PROTECTED] >> >> -Original Message- >> From: Les Mizzell [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 05, 2005 6:21 PM >> To: CF-Talk >> Subject: #CGI.SERVER_NAME# to display IP >> >> Is there any way to get #CGI.SERVER_NAME# to display the IP address >> instead >> of the name (www.mysite.com) >> >> >> -- >> --- >> Les Mizzell >> >> >> >> > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220524 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
sorry, I still dont really understand what you are trying to acheive. What is confusing me is that a visitor to your website is not a "server". e.g. you log on to your ISP and they give you an IP, then you visit a website which tracks that IP, and then the site admin does a look up on it, and they will get your ISP's domain. Is that what you want? -Original Message- From: Paul Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2005 11:59 To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP yeah will see that remote_ip addr PHP has a function that converts that to a server name i.e. googlebot(whatever). Does coldfusion / java have a similar function / method? is that ok big man? Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220523 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
sorry, still dont really understand what you are trying to acheive. What is confusing me is that a visitor to your website is not a "server". e.g. you log on to your ISP and they give you an IP, then you visit a website which tracks that IP, and then the site admin does a look up on it, and they will get your ISP's domain. Is that what you want? -Original Message- From: Paul Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2005 11:59 To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP yeah will see that remote_ip addr PHP has a function that converts that to a server name i.e. googlebot(whatever). Does coldfusion / java have a similar function / method? is that ok big man? Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Kerry" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, October 10, 2005 10:03 AM Subject: RE: #CGI.SERVER_NAME# to display IP > what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and > _you_ are the server? > > -Original Message- > From: Paul Stewart [mailto:[EMAIL PROTECTED] > Sent: 10 October 2005 09:32 > To: CF-Talk > Subject: Re: #CGI.SERVER_NAME# to display IP > > > How do you get the name of the remote server, rather than just the IP > addr? > When i used PHP to log visits it gave you this? Is there any way to do it > in > CF/Java? > > Paul Stewart > Site Developer > [EMAIL PROTECTED] > www.whichfranchise.com > > - Original Message - > From: "Larry Juncker" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Thursday, October 06, 2005 12:11 PM > Subject: RE: #CGI.SERVER_NAME# to display IP > > >> No >> If you want to see the IP Address you type in #CGI.REMOTE_ADDR# >> >> The following webpage will give you a list of the Cold Fusion Variables >> >> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm >> >> Hope this helps. >> >> >> Larry Juncker >> President & CEO >> ALJ Computer Services, LLC >> 1445 So 27th Street >> Fort Dodge, IA 50501 >> Office 515-576-0885 >> Fax 515-576-8510 >> Cell 515-571-1826 >> [EMAIL PROTECTED] >> >> -Original Message- >> From: Les Mizzell [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 05, 2005 6:21 PM >> To: CF-Talk >> Subject: #CGI.SERVER_NAME# to display IP >> >> Is there any way to get #CGI.SERVER_NAME# to display the IP address >> instead >> of the name (www.mysite.com) >> >> >> -- >> --- >> Les Mizzell >> >> >> >> > > > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220522 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: #CGI.SERVER_NAME# to display IP
yeah will see that remote_ip addr PHP has a function that converts that to a server name i.e. googlebot(whatever). Does coldfusion / java have a similar function / method? is that ok big man? Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Kerry" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, October 10, 2005 10:03 AM Subject: RE: #CGI.SERVER_NAME# to display IP > what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and > _you_ are the server? > > -Original Message- > From: Paul Stewart [mailto:[EMAIL PROTECTED] > Sent: 10 October 2005 09:32 > To: CF-Talk > Subject: Re: #CGI.SERVER_NAME# to display IP > > > How do you get the name of the remote server, rather than just the IP > addr? > When i used PHP to log visits it gave you this? Is there any way to do it > in > CF/Java? > > Paul Stewart > Site Developer > [EMAIL PROTECTED] > www.whichfranchise.com > > - Original Message - > From: "Larry Juncker" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Thursday, October 06, 2005 12:11 PM > Subject: RE: #CGI.SERVER_NAME# to display IP > > >> No >> If you want to see the IP Address you type in #CGI.REMOTE_ADDR# >> >> The following webpage will give you a list of the Cold Fusion Variables >> >> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm >> >> Hope this helps. >> >> >> Larry Juncker >> President & CEO >> ALJ Computer Services, LLC >> 1445 So 27th Street >> Fort Dodge, IA 50501 >> Office 515-576-0885 >> Fax 515-576-8510 >> Cell 515-571-1826 >> [EMAIL PROTECTED] >> >> -Original Message- >> From: Les Mizzell [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 05, 2005 6:21 PM >> To: CF-Talk >> Subject: #CGI.SERVER_NAME# to display IP >> >> Is there any way to get #CGI.SERVER_NAME# to display the IP address >> instead >> of the name (www.mysite.com) >> >> >> -- >> --- >> Les Mizzell >> >> >> >> > > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220521 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
what remote server? CGI.REMOTE_ADDR gives you the IP of the client, and _you_ are the server? -Original Message- From: Paul Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2005 09:32 To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP How do you get the name of the remote server, rather than just the IP addr? When i used PHP to log visits it gave you this? Is there any way to do it in CF/Java? Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Larry Juncker" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, October 06, 2005 12:11 PM Subject: RE: #CGI.SERVER_NAME# to display IP > No > If you want to see the IP Address you type in #CGI.REMOTE_ADDR# > > The following webpage will give you a list of the Cold Fusion Variables > > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm > > Hope this helps. > > > Larry Juncker > President & CEO > ALJ Computer Services, LLC > 1445 So 27th Street > Fort Dodge, IA 50501 > Office 515-576-0885 > Fax 515-576-8510 > Cell 515-571-1826 > [EMAIL PROTECTED] > > -Original Message- > From: Les Mizzell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 05, 2005 6:21 PM > To: CF-Talk > Subject: #CGI.SERVER_NAME# to display IP > > Is there any way to get #CGI.SERVER_NAME# to display the IP address > instead > of the name (www.mysite.com) > > > -- > --- > Les Mizzell > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220516 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: #CGI.SERVER_NAME# to display IP
How do you get the name of the remote server, rather than just the IP addr? When i used PHP to log visits it gave you this? Is there any way to do it in CF/Java? Paul Stewart Site Developer [EMAIL PROTECTED] www.whichfranchise.com - Original Message - From: "Larry Juncker" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, October 06, 2005 12:11 PM Subject: RE: #CGI.SERVER_NAME# to display IP > No > If you want to see the IP Address you type in #CGI.REMOTE_ADDR# > > The following webpage will give you a list of the Cold Fusion Variables > > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm > > Hope this helps. > > > Larry Juncker > President & CEO > ALJ Computer Services, LLC > 1445 So 27th Street > Fort Dodge, IA 50501 > Office 515-576-0885 > Fax 515-576-8510 > Cell 515-571-1826 > [EMAIL PROTECTED] > > -Original Message- > From: Les Mizzell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 05, 2005 6:21 PM > To: CF-Talk > Subject: #CGI.SERVER_NAME# to display IP > > Is there any way to get #CGI.SERVER_NAME# to display the IP address > instead > of the name (www.mysite.com) > > > -- > --- > Les Mizzell > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220515 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
> You could cfexecute ipconfig or ifconfig, and then parse the results. Or you could use nslookup/dig. I used this a while back to get the true IP vs the local private address. If it's a local address you want, the java.net.InetAddress that Martin posted is what you need (cfdump that for some more goodies). #listfirst(trim(listlast(results, ":")))# Here's what a basic google nslookup from my windows machine Server: gnbonc-dns-cac-03.triad.rr.com Address: 24.28.227.63 Non-authoritative answer: Name:google.com Addresses: 216.239.57.99, 216.239.37.99 If I check my site (and most others I deal with) it's more along the lines of... Server: gnbonc-dns-cac-03.tri Address: 24.28.227.63 Non-authoritative answer: Name:acoderslife.com Address: 216.27.16.80 Notice the word Address: with one ip instead of Addresses: and a list of IPs Anyway, trim listlast with a colon delim shoud get you everything after that last 'Address(es):' which is USUALLY what you want but just incase it's a list of addresses, listfirst or last on that too. Of course, if it is a linux server it'll be a bit more challenging with the dig results but do-able, just look for the "ANSWER SECTION:" ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 8:38 AM To: CF-Talk Subject: Re: #CGI.SERVER_NAME# to display IP On Thursday 06 October 2005 12:22, Michael T. Tangorre wrote: > the IP appears in the URL instead of the server name or using a Java class > to translate. You could cfexecute ipconfig or ifconfig, and then parse the results. You wouldn't be able to tell which of several interfaces was being used though, even if you use a Java class afaik. -- Tom Chiverton Advanced ColdFusion Programmer ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220482 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: #CGI.SERVER_NAME# to display IP
On Thursday 06 October 2005 12:22, Michael T. Tangorre wrote: > the IP appears in the URL instead of the server name or using a Java class > to translate. You could cfexecute ipconfig or ifconfig, and then parse the results. You wouldn't be able to tell which of several interfaces was being used though, even if you use a Java class afaik. -- Tom Chiverton Advanced ColdFusion Programmer ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220192 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
Actually, cgi.remote_addr gives you the IP of the client making the request not the server IP as Les is looking for. The only way to get the IP is if the IP appears in the URL instead of the server name or using a Java class to translate. http://localhost/test.cfm yields localhost http://127.0.0.1/test.cfm yields 127.0.0.1 Mike > From: Larry Juncker [mailto:[EMAIL PROTECTED] > No > If you want to see the IP Address you type in #CGI.REMOTE_ADDR# > From: Les Mizzell [mailto:[EMAIL PROTECTED] > Is there any way to get #CGI.SERVER_NAME# to display the IP > address instead of the name (www.mysite.com) ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220191 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
I think what Lez wants is the server IP not the one of the remote visitor.. Use this to get the server IP function GetServerIP() { var iaclass=""; var addr=""; // Init class iaclass=CreateObject("java", "java.net.InetAddress"); //Get Local host variable addr=iaclass.getLocalHost(); // Return ip address return addr.getHostAddress(); } Martin Parry http://www.beetrootstreet.com -Original Message- From: Larry Juncker [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 12:12 To: CF-Talk Subject: RE: #CGI.SERVER_NAME# to display IP No If you want to see the IP Address you type in #CGI.REMOTE_ADDR# ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220190 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: #CGI.SERVER_NAME# to display IP
No If you want to see the IP Address you type in #CGI.REMOTE_ADDR# The following webpage will give you a list of the Cold Fusion Variables http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm Hope this helps. Larry Juncker President & CEO ALJ Computer Services, LLC 1445 So 27th Street Fort Dodge, IA 50501 Office 515-576-0885 Fax 515-576-8510 Cell 515-571-1826 [EMAIL PROTECTED] -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 6:21 PM To: CF-Talk Subject: #CGI.SERVER_NAME# to display IP Is there any way to get #CGI.SERVER_NAME# to display the IP address instead of the name (www.mysite.com) -- --- Les Mizzell ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220189 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
#CGI.SERVER_NAME# to display IP
Is there any way to get #CGI.SERVER_NAME# to display the IP address instead of the name (www.mysite.com) -- --- Les Mizzell ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220176 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54