Accessing your external IP from an internal machine
TheBaron
Austin, TX
this is copied directly from my mom, with all IP's other than localhost removed for the sake of security. shes just saying one IP repeatedly, so all 00.00.000.000's are the same.
hardware is an SMC router with broken DHCP, but that shouldn't have anything to do with this. we need to keep the router firewall enabled
hardware is an SMC router with broken DHCP, but that shouldn't have anything to do with this. we need to keep the router firewall enabled
TheBaron's Mom wrote:Now a question. You know I've got a server at home that I've exposed through the router by designating it's ip address and port as a virtual server. I tell people to execute my stuff at the ip address of the cable modem (00.00.000.000 these days), using the port I designated. This all works fine. Except for one thing -- some of the tests I have to run involve me calling myself as well as the other guys Web services calling me. And I can't invoke my own stuff (actually what I'm saying is that one of my Web services can't invoke another of my Web services) using the external IP address (00.00.000.000:9080) -- get a connection refused exception. Works fine if I invoke my stuff using localhost, but localhost doesn't cut it in the interop test environment. Any idea what I might do to make the external IP address work with the router controlling things (I'd really like to keep the hacker filtering and firewall that the router provides intact)? One other thing -- I believe that this will work just fine if I bypass the router altogether and plug the cable modem directly into my machine (did this last year, but you really are exposed when you do this).
The only thing I've considered (which I haven't tried yet) is to maybe update my Windows hosts file in some way to indicate 00.00.000.000 is [also] localhost? Since I already have something assigned to localhost (127.0.0.1 I think) , I don't know if that is even legal. But I might be on the right track. Or if you think the problem is in the router config rather than the machine itself, there might be something to configure there that I missed. I'm open to suggestions if you have any.
0
Comments
I don't think if I understand what she is trying to do. So please correct me where I am wrong.
However, I do know hosts won't help her on this one. In my experience the WAN IP usually works, sounds like it doesn't though...
and exactly, the only way she can get it to work is to switch over to using LOCALHOST rather than the port forwarded IP
why?
the reason she's going through all this trouble is because our router is a piece of **** - its a perfect example of a problematic network. if it works here, it ought to work anywhere
You can connect to the router's private IP like "192.168.1.1:88" and get the login to the routers setup and go to status to get the wan IP. But I'm sure you knew that. I have loved the smc barricade router for everything but this one thing actually.
Tex
So, basically your ARP table is smart enough to realize that you're requesting to communicate with an internal device and routes your request accordingly.
RFC 826 http://www.faqs.org/rfcs/rfc826.html