Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to assign different ip address to the devices which connect to my router? When I visit cmyip.com from my psp and laptop, I see that they're the same. I need this because I'm working on my personal project which has a login system that checks on the ip address of the device, I can't test it properly if the other device has the same external ip with my laptop.

share|improve this question
add comment

2 Answers

A slightly longer answer is that the IP address you see is the one assigned to your router by your ISP and you will only ever get one of those. ISPs change these addresses so they cannot be relied upon to remain the same for an extended period - the period might be days or weeks, it depends on the ISP and connection type.

Inside your network all your devices will have their own IP addresses, so if your testing is internal you will be fine.

share|improve this answer
    
I'm using $_SERVER['REMOTE_ADDR'] to determine the address. –  Wern Ancheta May 7 '11 at 12:40
    
@Wern, it's a really, really, really terrible, horrible, bad idea to think an IP address is unique to a single person/machine/device/anything. Stop now a read up on credential/session management. –  Chris S May 8 '11 at 14:51
add comment

If your router is natting, the short answer is no.

A possible solution to have a different external address for one of the computer, would be to use a VPN.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.