thanks for the help guys but it didn't help.
the wsa gets initialized correctly according to the return value from WSAStartup.
The error reply comes the same nanosecond it executes gethostbyname. Winsock is not even trying to resolve the host from ioftpd
I'll have to call it for today. Been banging my head for too long now.
Thanks