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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. searching peers using winsock

searching peers using winsock

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminalgorithmsjsontutorial
3 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.
  • K Offline
    K Offline
    ku19832001
    wrote on last edited by
    #1

    Hello all, i have very specific question regarding winsock "In a network of PC's, i want to find the ip addresses of all the nodes that are running my custom made windows service" How to achieve this. Service is made in C++ using win32 api's and i m using winsock for all networking purposes thanks kunal s patel

    S 1 Reply Last reply
    0
    • K ku19832001

      Hello all, i have very specific question regarding winsock "In a network of PC's, i want to find the ip addresses of all the nodes that are running my custom made windows service" How to achieve this. Service is made in C++ using win32 api's and i m using winsock for all networking purposes thanks kunal s patel

      S Offline
      S Offline
      Sakthiu
      wrote on last edited by
      #2

      Hi, I dont know what is your windows service doing. But I have an idea. You can take care of this. The idea is that your windows service program should populate a broadcast message in your network for every time intervals. In that broadcast message you can specify your default message that includes ip address, etc., In your winsock program , you could receive that default message. The default message might have an IP address of the host machine. Using this you can achive your way.

      K 1 Reply Last reply
      0
      • S Sakthiu

        Hi, I dont know what is your windows service doing. But I have an idea. You can take care of this. The idea is that your windows service program should populate a broadcast message in your network for every time intervals. In that broadcast message you can specify your default message that includes ip address, etc., In your winsock program , you could receive that default message. The default message might have an IP address of the host machine. Using this you can achive your way.

        K Offline
        K Offline
        ku19832001
        wrote on last edited by
        #3

        Thanks for the fast reply. Can any one please suggest me how to broadcast a packet in network. What care should i take in sender side and receiver side. A sample code would be of great help thanks kunal s patel

        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