Error 10049 with C socket connection on local IP address

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

    Error 10049 with C socket connection on local IP address

    Hi,
    i am writing a simple program in c for socket connection. ANd running the sample code in MSDN lib. My question is that when using the addr 127.0.0.1 loop back test can both sever and client run and will be connected or either one will only run. And also i am getting error no 10049 when using my LAn pc ip addr 192.168.0.0 .Whats wrong. Any one who knows the concept plz help.
  • kky2k
    New Member
    • May 2007
    • 34

    #2
    Originally posted by gnanapoongothai
    Hi,
    i am writing a simple program in c for socket connection. ANd running the sample code in MSDN lib. My question is that when using the addr 127.0.0.1 loop back test can both sever and client run and will be connected or either one will only run. And also i am getting error no 10049 when using my LAn pc ip addr 192.168.0.0 .Whats wrong. Any one who knows the concept plz help.
    so ur requirement is running both client and server in the same pc..so first run the client and then the server... but wat matters is the reciever end has to be run first then the sending end..

    and regarding ur 10049 error try to disable ur firewall and antivirus if any..

    Comment

    • gnanapoongothai
      New Member
      • Jun 2007
      • 62

      #3
      After disabling firewall and antivirus still the problem exsist. Could any know abt it .plz help. Any change to be done in the code other than yhe ip addr.

      Comment

      • gnanapoongothai
        New Member
        • Jun 2007
        • 62

        #4
        The client sever is now working. when u specify the IP addr to the sever its giving bind error. When making it "0.0.0.0" to make it accept any client connection its working properly. thanks for all who took interset in this.

        Comment

        • sicarie
          Recognized Expert Specialist
          • Nov 2006
          • 4677

          #5
          Originally posted by gnanapoongothai
          The client sever is now working. when u specify the IP addr to the sever its giving bind error. When making it "0.0.0.0" to make it accept any client connection its working properly. thanks for all who took interset in this.
          Thanks for posting your answer. Next time you start a thread, please make sure you read this first, especially the parts about good thread titles and posting what you have and what you have tried.

          Thanks!

          Comment

          Working...