Although the searched FQDN appears in etc\hosts file.
Any idea? Thanks a lot!
Since I don't have code, here's a guess:
Doesn't work; getaddrinfo takes a hostname not a URL.
Take a look at this hostname not translated into an IP address using Winsock
getaddrinfo may be giving you an IPv6 address, or perhaps the machine has more than one IP address and you're trying to connect to the wrong one.