Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problems in binding INADDR_ANY

problems in binding INADDR_ANY

Scheduled Pinned Locked Moved C / C++ / MFC
wpfwcfsysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mpk1979
    wrote on last edited by
    #1

    Hi all, My application was binding to a specific address earlier, but now there is a requirement of binding it to INADDR_ANY, the problem which i'am facing while binding to INADDR_ANY is...the client can able to listen to the data coming from main IP of server i.e for ex: my server system is having 7 IP's like 172.16.8.1 to 172.16.8.7, and main IP is 172.16.8.1...if client is connecting with 172.16.8.1 it works fine...but if it is connecting with other IP's, client is unable to listen to the data coming from other IPS. Can any one suggest me a solution for this mpk1979

    M 1 Reply Last reply
    0
    • M mpk1979

      Hi all, My application was binding to a specific address earlier, but now there is a requirement of binding it to INADDR_ANY, the problem which i'am facing while binding to INADDR_ANY is...the client can able to listen to the data coming from main IP of server i.e for ex: my server system is having 7 IP's like 172.16.8.1 to 172.16.8.7, and main IP is 172.16.8.1...if client is connecting with 172.16.8.1 it works fine...but if it is connecting with other IP's, client is unable to listen to the data coming from other IPS. Can any one suggest me a solution for this mpk1979

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      If you bind to INADDR_ANY how will the other end know what address to send to?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups