I have an XP-based PC running VMWare with RHL. The PC has two ethernet cards directly connected to another ethernet device. I can ping the device from VMWare, and the device can ping my PC with the static IP addresses I set.
However, the server program running on the PC fails to bind. The error is, "cannot assign requested address".
if ((socket1 = socket(PF_INET, SOCK_STREAM, 0)) < 0)
addr1.sin_family = PF_INET;
addr1.sin_addr.s_addr = htonl("126.96.36.199");
addr1.sin_port = htons(0);
if ((bind (socket1, (struct sockaddr*)&addr1, sizeof(addr1))) < 0)
The IP addresses of both the PC and the device are set up in the "hosts" of the cofguration. The PC ethernet devices are setup with their IP address, SN Mask of 255.255.255.0 and no default gateway address.
Thanks for any help.