error while connecting to the lan ip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gnanapoongothai
    New Member
    • Jun 2007
    • 62

    error while connecting to the lan ip

    hi,
    i am doing simple socket program to send char array and recieve char array. its working fine when ip addr is 127.0.0.1, loop back. both client and sever works fine.
    but when i change the IP adddr to connect to the near by LAN system giving 192.168. . . i was getting an error no 10049 which is by MSDN

    "Cannot assign requested address.
    The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0)."

    what to do ?
    Awating u replies plz.
Working...