I can\'t seem to find anything that tells me if a port in my router is open or not. Is this even possible?
The code I have right now doesn\'t really seem to work...<
If you're connecting to the loopback adapter — localhost
or 127.0.0.1
(there's no place like 127.0.0.1!), you're unlikely to ever go out to the router. The OS is smart enough to recognize that it's a special address. Dunno if that holds true as well if you actually specify your machine's "real" IP address.
See also this question: What is the purpose of the Microsoft Loopback Adapter?
Also note that running traceroute localhost
(tracert localhost
in Windows) shows that the only network node involved is your own machine. The router is never involved.