Geek Posted March 23, 2012 Posted March 23, 2012 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2012/03/router-ip-address.jpg" alt="Router IP Address" title="router-ip-address" width="620" height="151" class="aligncenter size-full wp-image-28741" /></p> <p>To quickly retrieve the IP address of the router you are connected through, type the following at the command line: </p> <p><code>netstat -rn |grep default</code></p> <p>The result will look something like this, showing the router IP directly after “default”: </p> <p><code>default 192.168.1.1 UGSc 108 0 en0</code></p> <p>netstat will work for both wired and wireless connections, the difference of which will be shown as the interface. These are typically en0 and en1, though the port interfaces will vary slightly with Macs that don’t include ethernet ports or AirPort wireless card, and for Macs with only one form of network connectivity it will almost always be en0. </p> <p>For users who don’t want to bother with the command line, the router IP can also be <a href="http://osxdaily.com/2011/09/15/find-a-routers-ip-address-in-mac-os-x/">found from the Network system preference panel</a>. </p> <p><em>Thanks to Hans and Jen for the <a href="http://osxdaily.com/2011/09/15/find-a-routers-ip-address-in-mac-os-x/#comment-363431">tip</a></em></p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/xlhX9G-SSADQkvWX6VWWAdj7BQQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/xlhX9G-SSADQkvWX6VWWAdj7BQQ/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/xlhX9G-SSADQkvWX6VWWAdj7BQQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/xlhX9G-SSADQkvWX6VWWAdj7BQQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=gjU8nlAv5gg:I_FPj-GJt-s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=gjU8nlAv5gg:I_FPj-GJt-s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=gjU8nlAv5gg:I_FPj-GJt-s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=gjU8nlAv5gg:I_FPj-GJt-s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=gjU8nlAv5gg:I_FPj-GJt-s:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=gjU8nlAv5gg:I_FPj-GJt-s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=gjU8nlAv5gg:I_FPj-GJt-s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/gjU8nlAv5gg" height="1" width="1"/> View the full article
Recommended Posts