Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Tuesday, January 13, 2015

Checking current IP from the command line in Linux

wget -q -O - checkip.dyndns.org | sed -e 's/[^0-9.]//g'

Tuesday, September 4, 2012

Windows Firewall from the command line

netsh firewall show state

netsh firewall set opmode mode=DISABLE

netsh firewall set opmode mode=ENABLE exceptions=DISABLE

netsh firewall set opmode mode=ENABLE exceptions=ENABLE

More about it: http://support.microsoft.com/kb/947709