|
|
Mochuelo <hola@xxxxxxx> writes:
>Hi,
>I believe this must have been asked several times, but I can't find
>the answer in the archives.
>There is a 3Com 812 ADSL router between my computer and internet.
>Recently, I bought a domain name (let's call it test.com (NOT the real
>case)). I made personal.test.com to point to my IP public address,
>which is 80.35.x.x. My private IP address is 192.161.0.10. My PC has a
>web server listening at port 12000, and the router maps 80.35.x.x:80
>to 192.161.0.10:12000.
I hope not. 192.161.x.x is a public IP address. Did you mean 192.168.0.1?
>When someone external to my LAN types
>http://personal.test.com/index.php in their browers, it works OK for
>them. However, when, from inside my LAN, I type the same, I get an
>error saying the page does not exist. If I type
> personal.test.com">http://personal.test.com, I get the configuration page of my router.
So, what does personal.test.com resolve to for you?
ping personal.test.com
list what IP address if you do it from inside?
Also you have set up your web page on port 12000 Your system sending out
http:/personal.test.com will be trying port 80.
>For me to test my pages, I must replace "personal.test.com" by
>"localhost:12000", and then everything works. Of course, I would like
>to have code that would work for everyone, independently on whether
>the person browsing is inside or outside my LAN. How can I do this?
>Schematically:
>personal.test.com --(DNS translation)--> 80.35.x.x(:80) --(PAT in
>router)--> 192.161.0.10:12000.
>Thank you in advance.
>Mochuelo.
|
|