Convert Dotted Quad IP Address to Long IP Address and Vice Versa

Category:
Network/Internet
Type:
Snippets
Difficulty:
Intermediate
Author:
Rick

Version Compatibility:

More information:
IP Addresses are 32-bit values which are typically represented as 8-bit quadruplets (or "dotted quads"). These functions allow you to convert between dotted quad values and long IP addresses (the 32-bit values). You can use the 32-bit value in most internet clients (i.e., web browser, FTP client) instead of the dotted quads or the domain name.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: