Jump to content

Get IP from domain


Recommended Posts

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 :) ).

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...