oh well, i had those files, but was missing others so i just updated. works no. kindof...
i've changed my code to this
now i got another friend to test this (seeing as frend above has gone to a festival ) and what he got was his computer name(normal) followed ONLY by his LAN IP. this should work shoudln't it?
char listServer = "localhost";
//first get your own IP
//geting host name for local 'puter
//making a hostent with above name
localMachine = gethostbyname(localName);
strcpy(localAddrs,"IP for computer name:\n\r");
for(int i = 0;localMachine->h_addr_list[i]!= 0; i++)
strcat(localAddrs,inet_ntoa(*(struct in_addr *) localMachine->h_addr_list[i]));
//print IP (hopefuly)
MessageBox(NULL,localAddrs,"did you know",MB_OK);
int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
//first initiate winsock
WORD winsockVersion = MAKEWORD(2,0);