Click here to Skip to main content
14,238,683 members
Rate this:
Please Sign up or sign in to vote.
See more:
Connect to another pc
I have username and password of another pc and I want to connect to that pc from my pc. How can I do this by programming c# or or Delphi?
Updated 20-Apr-11 18:06pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

No, you don't have username and password of another PCs — PCs do not have them. There is no just "connect". This question is incorrect. "Browser" is irrelevant.

It all depends on what you're running on the "other PC". You need to run two applications (can be services, usually one of them: on one and on another PC. As the simplest option you can share some directories on one of the PCs (and than you will need some username and password). And how about Remote Desktop — yet another thing?

For starter, read this:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

Ask a question when you know what do you want to know. Right now, you don't.

Rate this:
Please Sign up or sign in to vote.

Solution 2

you can use WMI it is intended to monitor the hardware and software on remote computers. Remote connections for WMI in .NET Framework are accomplished through the ManagementScope object Connecting remotely using classes in the System.Management namespace uses DCOM as the underlying remote mechanism. WMI remote connections must comply with DCOM security requirements for impersonation and authentication.
Take a look there-[How To: Connect to a Remote Computer][^] for more details.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100