keilamym

IP address funcion

3 posts in this topic

#1 ·  Posted

hi everyone.

quick question. is there a function or method to return the local IP address.

I created a simple script that provides a message box with the computer name. Id like to add the IP address to the message box but I don't see a function for it, and I didn't see anything when I searched the forum.

any help you could provide is appreciated.

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you looked at the macros?  @IPAddress1, @IPAddress2 etc...

You could also use:

TCPStartup()
    $sComputer = TCPNameToIP(@ComputerName)
TCPShutdown()
MsgBox(64, "Local Computer Ip Address", @ComputerName & " IP Address " & $sComputer)

 

Edited by Subz
1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted

crap Subz... why didn't I think of that.

Thank you.

 

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