Showing posts with label Network. Show all posts
Showing posts with label Network. Show all posts

Saturday, February 21, 2009

Get Public IP from Linux command

Just copy paste following command and hit enter:-




wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'



Result:-




harith@cengkeh:~$ wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
124.13.233.xxx
harith@cengkeh:~$



Other option is using curl :-




curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'



if you dont have curl, download by using following command:-




sudo apt-get install curl






Monday, January 26, 2009

MTR for network diagnostic

Mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.

use MTR
How to install:-

# yum -y install mtr

for windows use WinMTR by download here
http://download.cengkeh.net/software/WinMTR.exe