Connecting to a Server Using C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raevian
    New Member
    • Aug 2007
    • 6

    Connecting to a Server Using C#

    Hi,

    I would like to ask for help on how to connect remotely into a server using C#.
    Any help would be appreciated.Tha nks!
  • RoninZA
    New Member
    • Jul 2007
    • 78

    #2
    You'll need to give us a few more details of your problem... what are you trying to connect to on the remote server, what are you trying to do, etc...

    Comment

    • raevian
      New Member
      • Aug 2007
      • 6

      #3
      I would like to make a C# application that will connect to a remote host/server. How am i going to implement it?What is the command for that? By the way, that application will invoke some file on the server. Then, the file will do some job.

      Thanks!

      Comment

      • raevian
        New Member
        • Aug 2007
        • 6

        #4
        Any help, please? Thanks!

        Comment

        • RoninZA
          New Member
          • Jul 2007
          • 78

          #5
          so you're trying to connect to a remote server to execute a file/job on that server?

          If this is the case, you'll have to create a listener service (Windows/Web - but I think Windows would be easier to implement, web security is typically a nightmare).

          What I would do is to create a Windows Service that uses an System.Net.Http Listener object, which listens for incoming requests. When it receives a request (that you would send from the client machine using an System.Net.Http Request object), it would execute the job required.

          Hope it helps!

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Use Sockets. Or a socket wrapper such as TcpClient and TcpListener
            Originally posted by raevian
            Hi,

            I would like to ask for help on how to connect remotely into a server using C#.
            Any help would be appreciated.Tha nks!

            Comment

            Working...