Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27353

VS 2012 [RESOLVED] Converting IP Adresses into 8bit Binarys

$
0
0
Hello.

I've started a utility to calculate a list of subnets from an IP address. It's not going to be a variable length subnet calculator.

192.168.0.0
Should be:
11000000.10101000.00000000.00000000

What's a logical way to do this?

I could create a string, and += a 1 or 0 according to whether an octet is > 128, then > 64 ... etc.

Any suggestions guys?

Viewing all articles
Browse latest Browse all 27353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>