rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: imon9 on January 06, 2006, 03:46:33 PM
-
hi Rejectto: i know this is un-related to HFS, but i was hoping u can help me out here...
HFS has a very robust way of getting the External IP adress, what is the code to do so?
(i downloaded your source-code but i dunno how to read it..
yeap! u're right...i'm not a programmer.. i'm just helping out a fren to ask coz he needs it for a VOIP plugin for Miranda)..if u are not too busy, perhaps u can show me some light here :)
i found this in ur code, is this the code my fren would be needing:
IP_SERVICES : array [0..0] of string = (
'http://www.rejetto.com/ip.php'
);
u mind providing me the ip.php code??
from what i understand, u use your website as a reference point for other to get their external IP :) very noble of u, but how do u ensure this will work if your website is down?
-
u mind providing me the ip.php code??
if ($ip = getenv('HTTP_X_FORWARDED_FOR')) echo $ip;
else echo getenv('REMOTE_ADDR');
from what i understand, u use your website as a reference point for other to get their external IP :) very noble of u, but how do u ensure this will work if your website is down?
i do not ensure :)
i would like to use more "providers", not just my site, but till now i found none giving always the right address. indded, that array, once contained more than one address. i had to remove them because people complained.
-
http://www.whatismyip.org/
it seems to be running very good, just incase urs wont work, have a backup is good
-
well
i remember i had 4-5 addresses for such service.
then i had to remove all of them because only mine was giving always the right answer.
i don't remember what the problem was, i don't remember anything about this.
i searched through the forum and found nothing. searched ICQ histories, nothing.
does someone remember?
i've been stupid not writing a note about it.
now i will re-add URLs, and hope all goes well, or, this time, i will write a note :)