Jump to content
Sign in to follow this  

How to "capture" the IP address

Recommended Posts


Hi all.

I wonder how to write a script that can capture a certain portion of the IP address.


The above IP address, I only wanted to capture the 3rd column of IP, which is

24 in this example.

Anybody knows how to do that ? Please provide a working example.

Thank you....

Does that need to use array ?

Share this post

Link to post
Share on other sites

$ip= ""
$myArray= StringSplit($ip, '.')
MsgBox(0, "3rd. number", $myArray[3])


that simple... wow ! i thought it would be complex !

thanks.... i'll try it out !

to you guys (expert), it is really a "softball" :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.