View Full Version : ip address
Does anyone know how (or if it is possible) to get flash to return an ip address from a current user.
thanks in advance
Strok
04-05-2001, 06:12 PM
You can pull the IP using javascript and just send that into your movie
var movie = window.document.movie;
var myAddress2 = java.net.InetAddress.getLocalHost();
var ip = myAddress2.getHostAddress();
movie.SetVariable("ip", ip);
Example:
http://www.sinisterwaltz.com/flash4/source/ipcapturenew.htm
drZoode
04-11-2001, 12:30 AM
I have to add that this JavaScript method only works for Netscape browsers, not for Internet Explorer. Also in Netscape 6.0 it returns 127.0.0.1 (a loopback network connection).
Strok
04-11-2001, 12:37 AM
Yes it is true
Author of the script told me , he'll fix it for IE and we'll have it on actionscripts.org as a tutorial
Strok
04-12-2001, 07:35 PM
We have an email from the author:
http://www.sinisterwaltz.com/flash4/source/ipAndDate2.asp
Raster
04-13-2001, 02:08 PM
Also that's .asp code. I saw that the original writter was looking Javascript. Just thought I would throw in my two cents.
Late
drZoode
04-20-2001, 07:46 AM
If you want to use CGI here is a very simple example:
http://zoode-ds.hypermart.net/flash/zoodeExperiments/exp_ipCatcher.html
Source files are available. You can find it in the Experiments section.
http://zoode.cjb.net
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.