This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
network:whatismyipshell [2015/03/27 15:36] tschulz created |
network:whatismyipshell [2015/03/27 15:39] tschulz [Linux] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Find External IP Address from Shell ====== | ====== Find External IP Address from Shell ====== | ||
+ | * what is my ip | ||
===== Linux ===== | ===== Linux ===== | ||
- | <file> | + | <file bash> |
curl -s http://whatismijnip.nl |cut -d " " -f 5 | curl -s http://whatismijnip.nl |cut -d " " -f 5 | ||
+ | </file> | ||
+ | |||
+ | ===== FreeBSD ===== | ||
+ | <file> | ||
+ | fetch http://whatismijnip.nl -q -o - | cut -d " " -f 5 | ||
</file> | </file> |