|
-
Jan 1st, 2003, 07:01 PM
#1
Thread Starter
Hyperactive Member
Ok You Math Wiz's...
I need some help on IP Address incrementation. I have a few ways to possibly do it but I'm not 100% sure.
One method would be to convert the IP address to a DWord list like here then increment the value by 1 then convert the dword back to IP? This seems to work but I'm not sure how to go about converting it to a dword and back again.
Another method would be shifting the bits (as my c++ buddy says to do) but I am not quite sure what he means.
Another way would be to use the Socket.Net.IPAddress.Address Int value but I don't understand how it increments..
3568844760 = 216.63.184.212
3568844761 = 217.63.184.212
Changing the latter value by 1 changes the first Quad, I don't understand that one bit..
Basically I just need to Step though a range of manually set IP addresses and I'm not sure just what would be the best way..
Cheers to the person who can help me out with this
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|