Sign in to follow this  
Followers 0
Calistoga

Get IP from domain

3 posts in this topic

Hi,

I am working on a small script that needs to compare the external IP (_GetIP()) with the IP of a domain.

Let's say i need to get the IP of http://example.server.com, does anyone of you know how to go about that?

I was unable to find anything in the help file, or on this forum (I usually do :) ).

Share this post


Link to post
Share on other sites



Hi,

I am working on a small script that needs to compare the external IP (_GetIP()) with the IP of a domain.

Let's say i need to get the IP of http://example.server.com, does anyone of you know how to go about that?

I was unable to find anything in the help file, or on this forum (I usually do :) ).

Hi,

quite simple:

TCPStartUp ()

TCPNameToIP ("example.server.com"); see help for return value

TCPShutdown ( )

;-))

Stefan

Share this post


Link to post
Share on other sites

Thank you! I overlooked that function completely! :)

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