Jump to content
Sign in to follow this  
Dampe

Get host by address (Reverse _GetIp() sort of)

Recommended Posts

Dampe

Edit: Just found out the function was written in Inet.au3 >_>

Please delete topic

Edited by Dampe

Share this post


Link to post
Share on other sites
WideBoyDixon

That's nice! A couple of minor observations:

[a] _IsIPAddress() can return 1 even if it's not valid (e.g. "123456.2.3.48261236"). I know that's not going to happen in your script but as a wider function it might be good to correct that by using ^ and $ to delimit the regular expression.

On my PC, I had to swap _GetIP() for @IPAddress1 to get this working correctly. Not your problem I know but just thought I'd mention it.

I can use this in another script I'm writing so thanks again.

WBD

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  

×