xstevey_bx Posted February 4, 2009 Share Posted February 4, 2009 Is it possible to use PHP to detect the IP of a particular computer behind a router? Just now im using $_SERVER['REMOTE_ADDR'] But it seems to only detect the routers IP address Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/ Share on other sites More sharing options...
printf Posted February 4, 2009 Share Posted February 4, 2009 No! Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754197 Share on other sites More sharing options...
JonnoTheDev Posted February 4, 2009 Share Posted February 4, 2009 Not possible for anything to see this address. It is a private IP on your local LAN. Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754198 Share on other sites More sharing options...
nadeemshafi9 Posted February 4, 2009 Share Posted February 4, 2009 Not possible for anything to see this address. It is a private IP on your local LAN. not even with javascript ? Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754250 Share on other sites More sharing options...
JonnoTheDev Posted February 4, 2009 Share Posted February 4, 2009 Nothing at all. Only your public IP can be got at which is the IP assigned by your ISP. You do not browse on a private IP such as 192.168.x.x Why would you want this address anyhow. It will not give you any information on who the person is? Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754251 Share on other sites More sharing options...
nadeemshafi9 Posted February 4, 2009 Share Posted February 4, 2009 yes please tell your whole idea may be flawed, why do you want the internal address ? Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754253 Share on other sites More sharing options...
runnerjp Posted February 4, 2009 Share Posted February 4, 2009 i suppose he wants to block ips... but cant as he will be blockin everyone using that router Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754259 Share on other sites More sharing options...
worldcomingtoanend Posted February 4, 2009 Share Posted February 4, 2009 not possible at all, the addresses behind a router are internal addresses and cant be routed at all unless if they are mapped onto the router and represented as a whole bunch by that single router ip address which u r able to detect. The ONLY way I know of getting behind an ip address which is not a router is by forwarding certain ports - something usually down on firewalls and then access your inside PC remotely using programs like putty. Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754271 Share on other sites More sharing options...
uniflare Posted February 4, 2009 Share Posted February 4, 2009 http://ip-lookup.net/index.php This page uses avascript to do it, you would need to run local javascript/flash code etc, something that the client downloads and runs on the users machine rather than executed code like php on the server. I dont know about javascript unfortunately maybe someone else can help you . Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-754275 Share on other sites More sharing options...
xstevey_bx Posted February 10, 2009 Author Share Posted February 10, 2009 I am creating an online game which requires people to log on from as many different ip addresses as they can. In large networks such as the ones in colleges and universities it would be handy if I could record the ip address of the individual computer rather than the one ip address for the router that every computer is connected to. I will look into the javascript method and see if that will be of any use. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-759043 Share on other sites More sharing options...
premiso Posted February 10, 2009 Share Posted February 10, 2009 If you can, you probably have to use an ActiveX control to do it. Which the user has to allow to be installed. I am not sure, cause I have never been able to do it, nor have I really looked. But with an activex control allowed by the user I am sure it is possible. Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-759049 Share on other sites More sharing options...
mat-tastic Posted February 10, 2009 Share Posted February 10, 2009 Is it possible to use PHP to detect the IP of a particular computer behind a router? Just now im using $_SERVER['REMOTE_ADDR'] But it seems to only detect the routers IP address Networking Basics to be honest. NO external host can see the internal network IP of a person's machine unless the person specifically allows it, e.g ActiveX control. Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-759069 Share on other sites More sharing options...
Zane Posted February 10, 2009 Share Posted February 10, 2009 I am creating an online game which requires people to log on from as many different ip addresses as they can. In large networks such as the ones in colleges and universities it would be handy if I could record the ip address of the individual computer rather than the one ip address for the router that every computer is connected to. I will look into the javascript method and see if that will be of any use. Thanks What in the world kind of game is that? Log on from as many IPs as possible. It almost sounds to me like a hacking/cracking ploy. Could you please elaborate on the actual gameplay of this game. Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-759078 Share on other sites More sharing options...
Maq Posted February 10, 2009 Share Posted February 10, 2009 What in the world kind of game is that? It's called the "login game". You go into a computer lab and log in with as many computers as possible (that won't look suspicious or weird....) Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-759079 Share on other sites More sharing options...
Zane Posted February 10, 2009 Share Posted February 10, 2009 True that, but the OP said this game requires people to log on from as many IPs as they can. It's just worded so oddly. I mean, what's gonna happen if you log in from the same IP twice? Does it restrict you access until you find a new one? Do you get points for every new IP? Why would you make a game getting people to collaboratively collect IPs? It's as if you were making a pretend online computer census......which would explain the need for private IPs. The only way you'll get these private IPs is if you can get software installed behind the router of a user and then have it send the information back. Quote Link to comment https://forums.phpfreaks.com/topic/143745-ip-address-of-a-computer-behind-a-router/#findComment-759084 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.