I just tried on a box behind a proxy and it shows the proxy address so it's
still a problem.


                                                                                       
         
                    Ronald J                                                           
         
                    Reinhart/ASD/        To:     "JDJList" 
<[EMAIL PROTECTED]>        
                    CSC                  cc:                                           
         
                    @CSC                 Subject:     [jdjlist] RE: Get Client's Ip    
         
                                         address/machine name                          
         
                    08/15/2002                                                         
         
                    10:58 AM                                                           
         
                    Please                                                             
         
                    respond to                                                         
         
                    "JDJList"                                                          
         
                                                                                       
         
                                                                                       
         





I was intrigued with the proxy problem because I ran into it a long time
ago.  A thought occurred that perhaps a way around the the problem would be
to get the ip address via javascript, set a cookie and then the next
request would send the cookie with the ip address.
Javascripts.com has a script that gets the ip address this way and
apparently works  in both NS and IE ....
http://javascript.internet.com/user-details/ip-address.html

var ip = '<!--#echo var="REMOTE_ADDR"-->';

I haven't had a chance yet to try this behind a proxy the rest of the
process.





                    "Yan, Hong
                    [IT]"                To:     "JDJList"
<[EMAIL PROTECTED]>
                    <hong.yan            cc:
                    @citigroup.co        Subject:     [jdjlist] RE: Get
Client's Ip
                    m>                   address/machine name

                    08/15/2002
                    10:19 AM
                    Please
                    respond to
                    "JDJList"






Again, this is not _exactly_ the client IP. It is the IP of the client
proxy
server if there is one.

rgds


Jeff

-----Original Message-----
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 9:03 AM
To: JDJList
Subject: [jdjlist] RE: Get Client's Ip address/machine name


It's unfortunate that Alan doesn't know a thing - "An empty vessel makes
the
greatest noise"

You can get the ipaddress using the request object as follows.

request.getRemoteAddr();

-----Original Message-----
From: Mark E. Zawadzki [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 3:18 PM
To: JDJList
Subject: [jdjlist] RE: Get Client's Ip address/machine name


Still, his solution was better than the one that you posted !

--- Alan Williamson <[EMAIL PROTECTED]> wrote:
>
>
> You can get it from the http header - but if the client has a proxy
server,
> then the IP there would be that of the proxy server.
>
> [ArW]  Get it from the http header????  While technically correct ... not
> the way to do it.
>
> Talk about the blind leading the blind!!!!
>
>
>
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
>


=====

Mark Zawadzki Performance Engineer/DBA/Programmer extraordinaire'
[EMAIL PROTECTED] [EMAIL PROTECTED]

 "Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the universe trying to build
bigger and better idiots.

So far, the universe is winning"

 Robert Cringle (columnist, author, host of "Triumph of the Nerds")


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm


To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm




To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm




To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to