Hello Bastien,

I would expect this to work when the URL you surf to is http://127.0.0.1/...

There are rules for the source address selection for outgoing IP
packets; I'm not sure if this is OS dependent. I think the proper way
is to iterate over your network interfaces and find out if one of them
corresponds to the clientAddress().

BR,
Wim.

2012/10/16 Bastien AMIEL <bastien.am...@opencubetech.com>:
> Hi,
>
> I need to detect if my client browser is the same than the current WT
> server.
>
> I was using
>
>      environment().clientAddress() == "127.0.0.1"
>
> but it seems that this may send the non loopback address too.
> What would be the best way to make this work ?
>
> Thank you for reading.
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to