Jump to content
Sign in to follow this  
hiimjoey11

TCPNameToIP

Recommended Posts

hiimjoey11

Am i using this function incorrectly?  In my hosts file i have

192.168.1.1     test

Then in autoit i tried

$hostsName = TCPNameToIP("test")
MsgBox(0,"", $hostName)

And it returns blank?

Edited by hiimjoey11

Share this post


Link to post
Share on other sites
MikahS

Did you use

TCPStartup()

above TCPNameToIP?

EDIT: Glad you figured it out ;)

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
hiimjoey11

Did you use

TCPStartup()

above TCPNameToIP?

 

haha i actually just re-read the help file and was going to come back to mark it as resolved.. Thank you for helping!

Share this post


Link to post
Share on other sites
MikahS

My pleasure ;)


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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  

×