My IP
Thu, 01/10/2013 - 15:36 — sandipIP Address: 123.125.71.51
- sandip's blog
- Login or register to post comments
- Read more
Get public IP Address
Mon, 08/27/2012 - 21:01 — sandipGet current public IP via command line curl and wget.
With curl:
curl icanhazip.com
curl ifconfig.me
With wget:
wget -qO- icanhazip.com
wget -qO- ifconfig.me/ip
- sandip's blog
- Login or register to post comments
- Read more
Converting Shared to Exclusive IP for Plesk Domain
Wed, 04/06/2011 - 08:35 — sandipFirst go into "Clients", select the corresponding client IP Addresses and assign the additional IP address.
Then go into "Domains", select the domain that should be converted to exclusive IP and modify the "Web Host Settings" and assign it the new IP.
- sandip's blog
- Login or register to post comments
- Read more
IP range to CIDR conversion
Thu, 05/15/2008 - 10:19 — sandipI've often had to convert IP range with netmask to a CIDR notation. Below is a quick perl script to help with the conversion:
#!/usr/bin/perl -w
# range2cidr.pl
use Net::CIDR;
use Net::CIDR ':all';
if (@ARGV == 0) {
die "Usage Example: $0 192.168.0.0-192.168.255.255 \n";
}
print join("\n", Net::CIDR::range2cidr("$A RGV[0]")) . "\n";