|
-
Mar 2nd, 2006, 09:40 PM
#1
Re: converting IP address to IP number
 Originally Posted by System_Error
String s = ip_address;
StringTokenizer st = new StringTokenizer(s,'.');
//lloop and create a new string
You only get IP addresses as Array of bytes so I think my way is better
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 3rd, 2006, 06:09 AM
#2
Frenzied Member
Re: converting IP address to IP number
Probably. Just now remembered they were byte arrays when you said that.
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
|