IP address: Difference between revisions

add RedHat example
Line 16: Line 16:
|}
|}


== External ==
If you're looking for your external IP address instead, simply google "what is my ip?"


If you're looking for your external IP address instead, simply google "what is my ip?"
== Older ==
On older systems you might need to use <code>ifconfig</code>, and specify the <code>/sbin</code> path because it's not in the standard path for regular users on RedHat.
<source lang="bash">
/sbin/ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | sort -n | awk '{print $1}'
</source>


[[Category:System Administration]]
[[Category:System Administration]]