I hope some one can send me a tip about this issue
Do Exist any how to get the ip off the User and send it some how back to me
thanks in Advance
By The Way, have a nice Day![]()
Professional Software Development Tools
I hope some one can send me a tip about this issue
Do Exist any how to get the ip off the User and send it some how back to me
thanks in Advance
By The Way, have a nice Day![]()
Have a look at System.GetLANInfo to get IP.
As for how you send it back to you...could be a FTP or HTTP based solution.
Code:TextFile.WriteFromString(_TempFolder.."\\ip.txt", HTTP.Submit("http://luacom.net/ip.php", {}, SUBMITWEB_GET, 20, 80, nil, nil)); FTP.Connect("server-goes-here.com", "username", "password", "", true); FTP.Upload(_TempFolder.."\\ip.txt", "ip_"..Math.Random(10000000000)..".txt", nil);
Thanks Trying today
It will be fun
Thanks Again![]()
PHP file:
AMS:PHP Code:<?
if(getenv("HTTP_X_FORWARDED_FOR")) {
$ip = getenv("HTTP_X_FORWARDED_FOR");
} elseif(getenv("HTTP_CLIENT_IP")) {
$ip = getenv("HTTP_CLIENT_IP");
} else {
$ip = $_SERVER["REMOTE_ADDR"];
}
echo $ip;
?>PHP Code:IP=HTTP.Submit("http://adresstophpfile.com/filename.php", {}, SUBMITWEB_GET, 20, 80, nil, nil));
Dialog.Message("Your IP Adress", IP);
Elevation for you People Thanks
Solving and complementing your stuf with my Stuff
Wish you Fun
Bytes
Do i did it rigth
TextFile.WriteFromString(_TempFolder.."\\ip.txt", HTTP.Submit("http://www.mysite.com/ip.php", {}, SUBMITWEB_GET, 20, 80, nil, nil));
FTP.Connect("ftp://mysite.com/", "login", "password", "", true);
FTP.Upload(_TempFolder.."\\ip.txt", "ip_"..Math.Random(10000000000)..".txt", nil);
do i need to replace the word _TempFolder.. with my folder all ready created at the ftp server
No, you need to tick the FTP Action Plugin in the Plugins dialog.
Do i need another file or other code becouse i cant find the random txt file u talk about
i just change the url add login and pass add ftp server and i leave anything else
TextFile.WriteFromString(_TempFolder.."\\ip.txt", HTTP.Submit("http://luacom.net/ip.php", {}, SUBMITWEB_GET, 20, 80, nil, nil));
FTP.Connect("server-goes-here.com", "username", "password", "", true);
FTP.Upload(_TempFolder.."\\ip.txt", "ip_"..Math.Random(10000000000)..".txt", nil);
If all is working correctly you should see the file on the FTP sever.
dude activate the FTP plugin, and what i would do is also add a value to an ini file wich IP is wich File... so you can read it with an application or with the naked eye...