asmith Posted April 14, 2008 Share Posted April 14, 2008 hey guys i was reading about ip for a while, and i used <?php $a = getenv(REMOTE_ADDR); echo $a; ?> for finding what ip i'm using.I tried a program, which changes the ip... the thing i faced is, while i got my ip changed, i checked the new one on that code and i saw it changed. then i tested that on my friend vbulletin forum, and that forum detected recorded my original ip. again on some business site ( can't remember) at the bottom of the page it said : your ip is detected as -my original ip. i wonder how they get the original ip, any kind of coding for it ? thanks Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/ Share on other sites More sharing options...
zq29 Posted April 14, 2008 Share Posted April 14, 2008 Might be cached? How is this program changing your external IP? Aren't they issued by your ISP? Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516719 Share on other sites More sharing options...
asmith Posted April 14, 2008 Author Share Posted April 14, 2008 i tried this program : http://en.wikipedia.org/wiki/Freegate didn't want to mention such program for i dunno some kinda of rules everywhere but good for some information. How is this program changing your external IP? Aren't they issued by your ISP? yes it is, but without it sometimes you can't get what you find. out of interest, for example the word "hot" is filtered, so you can't search for hot domain, hot php codes, anything related to this word, hot tea btw, on one site i remember it was the first time , and it had said my ip is -the original- . while the freegate was on and that code i had written was showing the new ip. any idea? (i found it so intresting) Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516775 Share on other sites More sharing options...
PFMaBiSmAd Posted April 14, 2008 Share Posted April 14, 2008 Did you read the information at that link? It is about relaying through a proxy server. That does not change your IP address, it uses another server to make the request for you and relay the contents back to you. Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516798 Share on other sites More sharing options...
asmith Posted April 14, 2008 Author Share Posted April 14, 2008 so why this : <?php $a = getenv(REMOTE_ADDR); echo $a; ?> shows the changed ip ? Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516830 Share on other sites More sharing options...
zq29 Posted April 14, 2008 Share Posted April 14, 2008 so why this : <?php $a = getenv(REMOTE_ADDR); echo $a; ?> shows the changed ip ? Because that is the IP that the request is coming from. You are requesting it from the proxy, the proxy is requesting it from the script, the script returns it to the proxy and the proxy returns it to you. EDIT: vB likely shows your actual IP rather than the proxies as there are plug-ins available (or it might be standard now) that can detect proxies and trace the original IP. Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516843 Share on other sites More sharing options...
asmith Posted April 14, 2008 Author Share Posted April 14, 2008 thanks, that's it! so what my code would be if i want to get my real ip ? Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516853 Share on other sites More sharing options...
fenway Posted April 14, 2008 Share Posted April 14, 2008 thanks, that's it! so what my code would be if i want to get my real ip ? You can't -- that's how proxies work. If you're behind a firewall, your internal/private IP is not visible to the outside world. Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516897 Share on other sites More sharing options...
asmith Posted April 14, 2008 Author Share Posted April 14, 2008 EDIT: vB likely shows your actual IP rather than the proxies as there are plug-ins available (or it might be standard now) that can detect proxies and trace the original IP. i'm really sorry, got no idea what is vB. what is it? do a google search , i did "vB ip" , it showing about function in visual basic that gets the ip, is that what you meant? You can't -- that's how proxies work. If you're behind a firewall, your internal/private IP is not visible to the outside world. so that'll take us to the first place. Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516931 Share on other sites More sharing options...
zq29 Posted April 14, 2008 Share Posted April 14, 2008 then i tested that on my friend vbulletin forum, and that forum detected recorded my original ip. EDIT: vB likely shows your actual IP rather than the proxies as there are plug-ins available (or it might be standard now) that can detect proxies and trace the original IP. i'm really sorry, got no idea what is vB. what is it? do a google search , i did "vB ip" , it showing about function in visual basic that gets the ip, is that what you meant? vB == vBulletin Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516946 Share on other sites More sharing options...
PFMaBiSmAd Posted April 14, 2008 Share Posted April 14, 2008 You might want to read this - http://www.phpfreaks.com/forums/index.php?topic=114669.0 There are two types of proxies, anonymous (ones that don't want you to know they are proxies, nor who they are forwarding requests for) and non-anonymous (ones that do want you to know they are proxies and they want you to know who they are forwarding request for.) For a non-anonymous proxy, you will typically receive the HTTP_FORWARDED_FOR header. For an anonymous proxy, you won't receive any overt information that indicates the request came from a proxy. Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516949 Share on other sites More sharing options...
asmith Posted April 14, 2008 Author Share Posted April 14, 2008 @SemiApocalyptic thanks i'll take a look at vB stuff, maybe i could dig something out about what they actually do. @PFMaBiSmAd thanks for the link, needed to read such thing. Quote Link to comment https://forums.phpfreaks.com/topic/101038-discover-true-ip/#findComment-516976 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.