Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
bijuvc #1
CGI Variables CGI.REMOTE_ADDR
I am using cold fusion MX and Iplannet. Is it possible to find the client IP
Address using the CGI variable, CGI.REMOTE_ADDR
in CFC. it is showng the server IP address where the CFC is published. It
works perfectly in a CFM page. But it is not working in CFC. Please help to
find the issue.
Thanks
bijuvc Guest
-
$ENV{'REMOTE_ADDR'}
Dan Muey wrote: I'm no security expert, but how can these be spoofed? They don't come from the request headers, but are derived from the TCP... -
#24515 [Fbk->NoF]: $_SERVER[remote_addr] different to $remote_addr
ID: 24515 Updated by: sniper@php.net Reported By: phpbug at easihosting dot co dot uk -Status: Feedback... -
#24515 [Opn->Fbk]: $_SERVER[remote_addr] different to $remote_addr
ID: 24515 Updated by: sniper@php.net Reported By: phpbug at easihosting dot co dot uk -Status: Open +Status: ... -
#24515 [Fbk->Opn]: $_SERVER[remote_addr] different to $remote_addr
ID: 24515 User updated by: phpbug at easihosting dot co dot uk Reported By: phpbug at easihosting dot co dot uk -Status: ... -
Server variables Remote_ADDR / REMOTE_HOST ? - Difference
All, I am trying to log the IP address of visitors to my site using ASP as follows <% Dim strIPAdd Dim srtHostName srtIPAdd =... -
MikerRoo #2
Re: CGI Variables CGI.REMOTE_ADDR
Wierd. It works for me.
Maybe you could work around this by having your Application.cfm or Application.cfc copy REMOTE_ADDR to the Request scope.
MikerRoo Guest
-
bijuvc #3
Re: CGI Variables CGI.REMOTE_ADDR
It is working if I call the cfc as componet.
But it is not working If I call that cfc as web services.
It might be a bug. Lets see what macromedia say about it.
Cold fusion Component (test1.cfc)
<cfcomponent>
<cffunction name="myMethod" returntype="string" access="remote">
<cfreturn cgi.REMOTE_ADDR>
</cffunction>
</cfcomponent>
Test case 1- Calling test1.cfc as a web service in a CFM page.
<cfinvoke webservice="http://server.v/app/test/test1.cfc?WSDL"
method="myMethod"
returnvariable="test">
</cfinvoke>
<cfdump var="#test#">
The output will be the server IP address where the web service published.
Test case 2- Calling test1.cfc as a component in a CFM page.
<cfinvoke component="test1" method="myMethod" returnvariable=" test >
</cfinvoke>
<cfdump var="#test#">
The output will be the client IP Address . Working perfectly.
bijuvc Guest
-
bijuvc #4
Re: CGI Variables CGI.REMOTE_ADDR
Hi Macromedia,
Could you please answer this issue. I posted it a week ago. Nobody did respond.
Thanks
bijuvc Guest
-
Stefan K. #5
Re: CGI Variables CGI.REMOTE_ADDR
Originally posted by: bijuvc
It is working if I call the cfc as componet.
But it is not working If I call that cfc as web services.
It might be a bug. Lets see what macromedia say about it.
When you call a webservice, your server sort of performs a cfHTTP (a
http-request) to the webservice.
So the webservice will always have your server as client, cgi-remote_addr
within the webservice will always be your servers IP.
Not a bug, rather basic understanding of the technique below.
Stefan K. Guest
-
Stefan K. #6
Re: CGI Variables CGI.REMOTE_ADDR
This is a developers forum, not help-forum from Macromedia.
Don't expect an answer from Macromedia itself, it happens, but rarely.
Think:
Would Macromedia have help-forum with experienced developers assisting with
all these problems FOR FREE?
Stefan K. Guest



Reply With Quote

