Tag Archives | ipaddress

VestaCP: How to change IP Address

Step 1: go to folder /etc/nginx/conf.d/ you will see the file oldip.conf like 23.227.177.193.conf with content: You must make new file: newip.conf like 111.111.111.111.conf with content and delete the old file: oldip.conf. Step 2: restart nginx Step 3: go to folder /etc/httpd/conf.d/ you will see the file oldip.conf like 23.227.177.193.conf with content: Note: with debian […]

Read full story Comments { 0 }

Kloxo: How to change IP Address

Step 1: use this SSH command line: Step 2: Step 3: Done!

Read full story Comments { 0 }

PHP: Simple script to detect Germany ip address

PHP: Simple script to detect Germany ip address Example 1: Result: Example 2: Result: Note: image copyright: blog.gostorm.net

Read full story Comments { 0 }

How to change the IP Address in Kloxo

How to change the IP Address in Kloxo Step 1: use the following commands. Step 2: login to the Kloxo administration area (account: admin) Step 3: go to Server Home > IP Addresses Step 4: click Reread IPs Step 5: Back to Home, click Resources > DNS Templates Step 6: update any references with any templates to the old IP […]

Read full story Comments { 0 }
PHP: Convert IP Range to CIDR

PHP: Convert IP Range to CIDR

Read first: PHP: Convert CIDR to ipaddress range PHP: check valid ipaddress or CIDR notation range This function work done with small IP range ex: 111.234.23.1 – 11.234.23.243 Solution 1 Example of usage: result: Array ( [0] => 121.0.47.0/32 [1] => 121.0.47.1/31 [2] => 121.0.47.3/30 [3] => 121.0.47.7/29 [4] => 121.0.47.15/28 [5] => 121.0.47.31/26 [6] […]

Read full story Comments { 1 }
PHP: check valid ipaddress or CIDR notation range

PHP: check valid ipaddress or CIDR notation range

This function checks for a valid IP address or CIDR notation address range. Example of usage:

Read full story Comments { 0 }
PHP: Convert CIDR to ipaddress range

PHP: Convert CIDR to ipaddress range

This function takes an IP address and CIDR netmask (e.g. 102.68.1.0/25), and calculate IP address range in that netblock. Example: result: array(2) { [0]=> string(10) “102.68.1.0” [1]=> string(12) “102.68.1.127” }

Read full story Comments { 0 }