12-18-2002, 05:46 AM
|
#1
|
|
abstraction=_root.truth;
Join Date: Jun 2002
Location: Bonn, Germany
Posts: 779
|
getting tcp/ip address in flash
Hi All,
this is a simple question...
I want to retreive the ip address of the person who is visiting my site. Does anyone know how this is done in Flash?? Maybe a server side script or something..
Thanx for any help.
the doctor
|
|
|
12-18-2002, 02:11 PM
|
#2
|
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
|
serverside scripts will be the way to go. i know it can be done with coldfusion, i don't know how to do it, but i know it can be done.
pick the server side script you plan on using, go to a bunch of web pages geared to that script, and do some major searching... you'll find something.
just keep in mind that many (most) people have dynamically created tcpip addresses that can and do change.
__________________
tg
---
what the hell was i thinking?
|
|
|
12-18-2002, 02:14 PM
|
#3
|
|
abstraction=_root.truth;
Join Date: Jun 2002
Location: Bonn, Germany
Posts: 779
|
thanx tg, thats part of what I want, the dyn ip thing. I have some fun visual plans for those four digits. I'll do some research then.
cheers, dr.s
|
|
|
01-11-2003, 08:03 PM
|
#4
|
|
abstraction=_root.truth;
Join Date: Jun 2002
Location: Bonn, Germany
Posts: 779
|
for those who want to know, here is the php script for the ip detector
PHP Code:
<?
$ip = getenv('REMOTE_ADDR'); //~ get ip address
$ip = "&ip=".$ip."&"; //~ make it a flashable variable
echo $ip; //~ spit it out
?>
then just put a text field with the variable ip in it.. woala
cheers, dr.s
|
|
|
06-23-2009, 05:35 PM
|
#5
|
|
Registered User
Join Date: Jun 2009
Posts: 1
|
use javascript
I haven't done this yet, but couldn't you just use externalinterface to call a JS function that returns the IP address? No server involved that way.
|
|
|
06-30-2009, 06:35 PM
|
#6
|
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
|
could be, dont know. test it, post your results.... seeing as this thread is from 6 years ago, lots of things have changed so anything may be possible.
__________________
tg
---
what the hell was i thinking?
|
|
|
06-30-2009, 09:55 PM
|
#7
|
|
jordanrift.com
Join Date: Sep 2007
Location: Phoenix, AZ
Posts: 366
|
Quote:
Originally Posted by stephenp
I haven't done this yet, but couldn't you just use externalinterface to call a JS function that returns the IP address? No server involved that way.
|
Because JS has no native way to get an IP address from the host. That's why.
Minimally, you'd need to use a server-side include, a bit of server-side code to output it to the DOM (where JS could then read it), or an AJAX call. No matter how you slice it, though, you're going to have to get the server involved.
|
|
|
07-03-2009, 11:18 AM
|
#8
|
|
Registered User
Join Date: Jul 2009
Posts: 1
|
hai,
We can find the ip address from the site http://www.ip-details.com/
|
|
|
04-26-2010, 08:02 AM
|
#10
|
|
Scottish and mad fer it!!
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,601
|
This works without having to use a php script?
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 01:38 AM.
///
|
|