PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → NetListIPAddress function only returns an IP
NetListIPAddress function only returns an IP
Started by Hoelb, May, 03 2023 5:05 PM - 1 reply
Posted on May, 03 2023 - 5:05 PM
Hello!

When querying a computer in the network, the NetListIPAddress function only returns an IP.
Even if several network cards are active.
e.g. NetListIPAddress("Server") executed on a client returns only 1 IP address.
If it is run on the computer in question without specifying the PC name, all available IP addresses are returned.
NetListIPAddress() executed on the server returns all available IP addresses with CR separated.

Am I doing something wrong. ;(

thank you for your help :)
Posted on May, 24 2023 - 5:53 PM
Response from Technical Support - Thank you

Hi,

Because that's how this function works.

When called locally (ie without parameters), the function enumerate all network interfaces on the computer and get their respective addresses.

When called with a name, it does a DNS resolution and returns the corresponding results.

For example, if you try NetListIPAddress("ftp.pcsoft.fr"), you'll get four answers.

The Free Technical Support is entirely at your service.