[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
The problem is that the server can at best tell the ip of the last 
proxy which sent the request to it. So, it may be goofed by NAT etc.

Cheers,
Sandeep

--- In flexcoders@yahoogroups.com, "?? " 
<[EMAIL PROTECTED]> wrote:
>
> You can trick with request to the server. ))
> 
> Cheers,
> Mozilla By
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Sandeep Malik
> Sent: Wednesday, August 30, 2006 4:27 PM
> To: flexcoders@yahoogroups.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.txt
> Search Archives: 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/
 





[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
The problem is that the server can at max tell us the last proxy 
that sent it the data, so it may be goofed by NAT etc.

Cheers,
Sandeep

--- In flexcoders@yahoogroups.com, "?? " 
<[EMAIL PROTECTED]> wrote:
>
> You can trick with request to the server. ))
> 
> Cheers,
> Mozilla By
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Sandeep Malik
> Sent: Wednesday, August 30, 2006 4:27 PM
> To: flexcoders@yahoogroups.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.txt
> Search Archives: 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/
 





[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
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 flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> 
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, ??  <[EMAIL PROTECTED]> wrote:
> >
> >   You can trick with request to the server. ))
> >
> > Cheers,
> > Mozilla By
> >
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com  
[mailto:
> > flexcoders@yahoogroups.com ] On
> > Behalf Of Sandeep Malik
> > Sent: Wednesday, August 30, 2006 4:27 PM
> > To: flexcoders@yahoogroups.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.txt
> > Search Archives: 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/
 





[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
Found one more way to do the same using JavaScript. Not sure, which 
ones's better, but it works too.


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



Cheers,
Sandeep

--- In flexcoders@yahoogroups.com, "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/1005.html
> 
> hth,
> matt horn
> flex docs 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Malik
> > Sent: Wednesday, August 30, 2006 3:02 PM
> > To: flexcoders@yahoogroups.com
> > 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 flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com> , "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, ??   wrote:
> > > >
> > > > You can trick with request to the server. ))
> > > >
> > > > Cheers,
> > > > Mozilla By
> > > >
> > > >
> > > > -Original Message-
> > > > From: flexcoders@yahoogroups.com 
> > > > <mailto:flexcoders%40yahoogroups.com>  
> > > > 
> > [mailto:
> > > > flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>  
> > > > ] On Behalf Of Sandeep Malik
> > > > Sent: Wednesday, August 30, 2006 4:27 PM
> > > > To: flexcoders@yahoogroups.com 
> > <mailto: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/
 




RE: [flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Matt Horn
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/1005.html

hth,
matt horn
flex docs 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Malik
> Sent: Wednesday, August 30, 2006 3:02 PM
> To: flexcoders@yahoogroups.com
> 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 flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com> , "Abdul Qabiz" 
> <[EMAIL PROTECTED]>
> 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, ??  <[EMAIL PROTECTED]> wrote:
> > >
> > > You can trick with request to the server. ))
> > >
> > > Cheers,
> > > Mozilla By
> > >
> > >
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com 
> > > <mailto:flexcoders%40yahoogroups.com>  
> > > 
> [mailto:
> > > flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> > > ] On Behalf Of Sandeep Malik
> > > Sent: Wednesday, August 30, 2006 4:27 PM
> > > To: flexcoders@yahoogroups.com 
> <mailto: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/