|
My router is WRT54G v7. When i go to the router page (192.168.1.1) and click on status, it should give me my external WAN IP. However it doesn't seem to do this because it gives me the ip 10.1.21.216 and the default gateway 10.1.21.254
To my knowledge, a 10.xx.xx.xx ip is one of the reserved ranges for an internal ip (the other ones are 192.168.xx.xx and 172.xx.xx.xx). My ip according to "whatismyip.com" is 124.193.xx.xx.
Now I'm confused as fuck because I already have an internal ip which is 192.168.1.102. when i ping it I get <1 ms which is obvious because its me. But when i ping my 10.1.21.216 ip, I get delay of about 3 ms or so. Now some of you may be thinking that this 10.1.21.216 ip isn't me, but I assure you that it is because I hosted a quake server on my comp and then connected to it via console and it worked. So how can I have 2 internal ips and how can I have delay to myself?!
Is there any way for my router to properly recognize my real external ip? It is a big problem because this is preventing me from forwarding ports and thus hosting games.
edit: Thanks mods for moving this, didn't know we had a tech support forum now.
|
It does sound as if you do not receive an actual public IP-adress from your ISP. This is not very uncommon and your best bet is probably to contact your ISP to find out more details.
|
On August 22 2010 22:06 love9n wrote: It does sound as if you do not receive an actual public IP-adress from your ISP. This is not very uncommon and your best bet is probably to contact your ISP to find out more details.
Don't you need a public ip to do things like browse the web?
|
Both of your external IP's are correct, in a sense. Being under this type of configuration is called a being behind a NAT (Network Address Translation). The intricacies of NATs are actually not very complicated; basically one external machine (a gateway) handles the traffic for several client machines, maintaining data organization by using unique ports on the gateway machine. It's a technique for the "efficient" use of IP addresses by an ISP, where they don't need to buy one IP for each customer.
I also live in China, and was behind a NAT when I lived in Beijing. (Fortunately ISPs in SiChuan seem to not use NATs -- woohoo!). For outgoing connections, a NAT is not a problem, since you can still connect to the outside world. It's mainly a problem for incoming connections, because if you have an open port listening, no one can connect, because the open port really needs to be on the gateway machine and you won't know how those forwards are redirecting (and even if you did, it's only a temporary arrangement).
There are two ways to get around NATs. The first technique is called "hole punching", where two machines simultaneously connect to a central server and the server tells the machine behind the NAT to initiate a connection to the other machine; this opens a temporary port in the gateway which can then be reverse-connected by the second machine.
The second technique is to employ an SSH tunnel, which can forward ports and encrypt traffic. For this, you'll need a (linux) SSH shell at a web host where you can open a port. Then you connect from your home computer to the SSH shell host and open a port on the machine, setting up the tunnel to forward all the traffic back to your own computer. Using a tool like "autossh", you can keep this connection alive indefinitely. Then, someone connects to the SSH host on its open port and the traffic is forwarded back to you. You can find more information on SSH tunnels at a guide I wrote awhile back on the subject (http://download.ryansanden.com/ssh_tunnels.txt).
There are several hosts that are compatible with this type of thing. I use WebFaction because the cost is reasonable (~$14/month w/ dedicated IP address, which is necessary for this setup), but there are many options.
Hope that helps!
|
Yep that's good ol' nat hard at work. Did you get this figured out?
|
Thanks Ruien for the advice. I will look into it. Perhaps I could ask my ISP to give me a unique external IP? I want to avoid spending money as much as possible
|
Most ISPs should give out public IPs. Usually NATted IPs are given out on smaller ISPs that can't afford an IP allocation (common with fixed wireless ISPs and some small DSL ISPs).
Ask for a public IP, and if they try to charge you for it then claim that competitor X gives out public IPs for free and ask them why they don't!
|
@R1CH
Yes my ISP is a very small one just for the compound I'm living in. It's pretty goofy and slow and I have to do things like log on to their page before I get any internet T_T
I'll ring them up when I get home, hopefully they will be generous.
|
|
|
|