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#
  4. Configure Remote Machine's IP in C# Service At Install Time

Configure Remote Machine's IP in C# Service At Install Time

Scheduled Pinned Locked Moved C#
csharpjsontutorialquestionlearning
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.
  • D Offline
    D Offline
    Django_Untaken
    wrote on last edited by
    #1

    Hi there. I have following scenario - one machine with a service installed (machine 1) - one remote machine with public ip (machine 2) - one machine with web application (machine 3) All these machines could be in the same premises or in different. Since all of these machines and their respective software could be installed in any order, I don't know how to get machine 2's IP. Because my service on machine 1 will use this IP to upload data to it. And, of course, web application on machine 3 will display this data. Any idea what API/library could I use on machine 1 to recieve machine 2's IP? Thanks for anything you share.

    L 2 Replies Last reply
    0
    • D Django_Untaken

      Hi there. I have following scenario - one machine with a service installed (machine 1) - one remote machine with public ip (machine 2) - one machine with web application (machine 3) All these machines could be in the same premises or in different. Since all of these machines and their respective software could be installed in any order, I don't know how to get machine 2's IP. Because my service on machine 1 will use this IP to upload data to it. And, of course, web application on machine 3 will display this data. Any idea what API/library could I use on machine 1 to recieve machine 2's IP? Thanks for anything you share.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The user will have to enter it; there's no way that any api or library could "guess" which computer is meant with "machine 2".

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      1 Reply Last reply
      0
      • D Django_Untaken

        Hi there. I have following scenario - one machine with a service installed (machine 1) - one remote machine with public ip (machine 2) - one machine with web application (machine 3) All these machines could be in the same premises or in different. Since all of these machines and their respective software could be installed in any order, I don't know how to get machine 2's IP. Because my service on machine 1 will use this IP to upload data to it. And, of course, web application on machine 3 will display this data. Any idea what API/library could I use on machine 1 to recieve machine 2's IP? Thanks for anything you share.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Why don't you have machine 2 login to machine 1 and upload (i.e. FTP); instead of 1 calling 2, etc. A scheduler on #2 and an event / file handler on #1 should suffice; based on your description.

        "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

        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