for heavens sake, if you find a "hole" in the sandbox model, it's
not a feature... ;o)

> I guess you have to use something like signed applet (hm.. is there 
> signed javascript?) and try to grant permission to get the local ip 
> address. Otherwise, you should have find a hole in the sandbox model. 
> Anyway, I am wondering what good is it to get the IP behind proxy 
> because most likely it is internal IP like 10.xxx or 192.168.xxx.
> 
> Regards,
> Derek
> 
> -----Original Message-----
> From: Ronald J Reinhart [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 7:58 AM
> To: JDJList
> Subject: [jdjlist] RE: Get Client's Ip address/machine name
> 
> 
> 
> 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
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

Reply via email to