i thought i only needed to change this line:
Code:
ServerAddr.sin_addr.s_addr = INADDR_ANY;