Found one more way to do the same using JavaScript. Not sure, which 
ones's better, but it works too.

<SCRIPT>
var ip = new java.net.InetAddress.getLocalHost();
var ipStr = new java.lang.String(ip);
document.writeln(ipStr.substring(ipStr.indexOf("/")+1));
</SCRIPT>


Cheers,
Sandeep

--- In [email protected], "Matt Horn" <[EMAIL PROTECTED]> wrote:
>
> I think the best thing to do is pass the IP addy via a flashVars
> variable. You do this by editing the HTML wrapper. You can look at 
the
> example here, and modify it to fit your server technology (this 
example
> uses JSP) and your variable input (this example uses query string
> params):
> 
> http://livedocs.macromedia.com/flex/2/docs/00001005.html
> 
> hth,
> matt horn
> flex docs 
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Malik
> > Sent: Wednesday, August 30, 2006 3:02 PM
> > To: [email protected]
> > Subject: [flexcoders] Re: How to get client IP address in flex?
> > 
> > Like what kind of server script are we talking about here and 
> > how do we execute a "server script" on the client side?
> > 
> > -Sandeep
> > 
> > --- In [email protected] 
> > <mailto:flexcoders%40yahoogroups.com> , "Abdul Qabiz" 
> > <abdul.qabiz@>
> > wrote:
> > >
> > > If you are wrapping SWF in server side script, you can easily 
use
> > some
> > > server-side code to find out. SWFs are executed on client and 
they
> > can not
> > > give IP address of client..
> > > 
> > > Doing server-side is quite straight forward...
> > > 
> > > -abdul
> > > 
> > > On 8/30/06, ?????? ???????? <mozilla.by@> wrote:
> > > >
> > > > You can trick with request to the server. ))
> > > >
> > > > Cheers,
> > > > Mozilla By
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: [email protected] 
> > > > <mailto:flexcoders%40yahoogroups.com>  
> > > > <flexcoders%40yahoogroups.com>
> > [mailto:
> > > > [email protected] <mailto:flexcoders%
40yahoogroups.com>  
> > > > <flexcoders%40yahoogroups.com>] On Behalf Of Sandeep Malik
> > > > Sent: Wednesday, August 30, 2006 4:27 PM
> > > > To: [email protected] 
> > <mailto:flexcoders%40yahoogroups.com>  
> > > > <flexcoders%40yahoogroups.com>
> > > > Subject: [flexcoders] How to get client IP address in flex?
> > > >
> > > > Hi Guys,
> > > >
> > > > Is there a way to find client IP (on which the swf file is
> > running)
> > > > through flex or flash?
> > > >
> > > > Cheers,
> > > > Sandeep
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ: 
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.t
> > xt 
<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
> > > > Search Archives: http://www.mail-archive.com/flexcoders% 
> > > > <http://www.mail-archive.com/flexcoders%>
> > 40yahoogroups.com
> > > > Yahoo! Groups Links
> > > >
> > > > 
> > > >
> > >
> > 
> > 
> > 
> >  
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to