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. Remoting between applications on the same machine

Remoting between applications on the same machine

Scheduled Pinned Locked Moved C#
csharpsysadminquestionlearning
3 Posts 3 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.
  • B Offline
    B Offline
    Bog
    wrote on last edited by
    #1

    Hi I have two .net applications running on the same PC. (its a long story.) I need to do a little bit of communication. I've read that Remoting is the way to do this, but all the examples for remoting involve three applications where one is a server, and tcp connections, and complicated stuff I don't need. Is there like a simpler thing I can do? "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    A N 2 Replies Last reply
    0
    • B Bog

      Hi I have two .net applications running on the same PC. (its a long story.) I need to do a little bit of communication. I've read that Remoting is the way to do this, but all the examples for remoting involve three applications where one is a server, and tcp connections, and complicated stuff I don't need. Is there like a simpler thing I can do? "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Bog, Let me suggest the following book on remoting: "Advanced .Net Remoting" C# Edition by APress ISBN 1-59059-025-2 You can implement remoting between your two applications without the need of a "server" application. This means that your two applications each act as a client and a server to each other. This requires that each application in acting as a server must be on a different port number. Beware of UI Controls responding to remoting calls as they are handled on a seperate thread. UI control methods can only be accessed by the "creator" thread which is the application thread. While Remoting in .Net is made simple, it still requires a good understanding of the details to build proper remoting components. Happy coding!

      1 Reply Last reply
      0
      • B Bog

        Hi I have two .net applications running on the same PC. (its a long story.) I need to do a little bit of communication. I've read that Remoting is the way to do this, but all the examples for remoting involve three applications where one is a server, and tcp connections, and complicated stuff I don't need. Is there like a simpler thing I can do? "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        If you want two way communication where each app can talk to the other one, you need to start remoting servers on both applications, and whenever you want to talk to the other app from the current app, make a remoting client connection to the server (that's all). The examples you see use only 2 applications (but 3 or even 4 VS.NET projects for the shared class library and the interface library) Nish


        Extending MFC Applications with the .NET Framework [NW] (My book with Tom) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

        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