Get an IP from behind a router

April 29, 2011 at 04:49:25
Specs: Linux x86_64
i have a router connected to my ISP which can get me 2 different IP's at all times (the router gets one IP).
Now i want to get my computer to have a different ip as my router has (seen from outside my home network) - i want my computer that accesses the internet through my router to have a different IP as my router. I know that if my computer gets it's IP from my router's subnet, then it will (seen from outside) always have the same IP as my router. So the question is how do i get around this ? Do i just have to change my PC's DNS / gateway settings to match my router's ? The PC is connected to my router via wifi. Or would forwarding some ports on my router work ?
Thanks for any help

See More: Get an IP from behind a router

Report •

April 29, 2011 at 07:41:06
Since you're talking about an IP provided by your ISP, no, you can't give it to a client PC behind your router and expect it to work. In order to use this IP directly on the PC, you'd have to configure it on the PC's NIC (and all other pertinent TCP/IP settings such as DG, DNS, SM) and then take the network cable going from your modem to your router out of the router and plug it in to the computer.

Perhaps if you explain what it is you're trying to do, we can help you with that.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***

Report •

April 29, 2011 at 07:52:55
what do you think your computer getting a public ip is going to do for you beyond making you a easy target for port trojans?

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's

Report •

April 30, 2011 at 07:02:13
Hmm.. you pretty much nailed what i was trying to do.
So you are telling me that there is NO way to do this ?
I was thinking along this lines : the communication from the PC to the internet goes through the router. Can't i convince the router to be transparent for my PC ? I have fount a system routing table in the router's configurations.
So what i would like to do is the router to talk to the PC for so long that they can authenticate (i am not an expert but as far as i know - on a WPA wifi they must successfully make a handshake and exchange some info before the PC gets authenticated. And only after it is authenticated the PC can get an IP from the router) and then work transparently for the PC and send all it's traffic directly to the internet - all traffic including it's DNS request and so on. Can this be somehow done ? For what sort of a configuration should i look in my router's settings ?
Can't i make my router reroute all traffic originating from my PC's IP to the internet ?
Hmm just thought of this (why it might not work) :
if that could be done then the router should be able to listen to all traffic intended for my PC's IP from the internet, but as the router already has its own IP and as it is (protocol specifications or something like that?) configured to only listen to packets designated for it's own IP from the internet - it can't reroute the PC's packets. Am i close ?
So from what you are saying i would take that it can't be done ?

Report •

Related Solutions

Ask Question