Sign in to follow this  
Followers 0
omikron48

About @IPAddress#

3 posts in this topic

Topic.

Or is @IPAddress1 always the Local Area Connection?

Share this post


Link to post
Share on other sites



@IPAddress1 is the IP address of the first network adapter (the primary network adapter). The IP address returned is usually that of your gateway to the internet.

When the other network adapters are not connected, then @IPADdress2, 3 and 4 will always return 0.0.0.0

Share this post


Link to post
Share on other sites

You could parse the output from the following:

IPCONFIG

NETSH

WMI: "SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True"

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  
Followers 0