Click here to Skip to main content
15,878,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to display a remote machines ip address from process name..
Is there any way to find...

Thanks in Advance..
Posted
Comments
Mycroft Holmes 18-Apr-13 2:01am    
Some sort of hint as to how you communicate with the machine would be useful. You can't just magic the information from there to you.
OriginalGriff 18-Apr-13 2:07am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
sdineshroshan 18-Apr-13 2:12am    
Thanks for feedback..
what my question is,
Is there any way to get remote machines process list over LAN?

Regarding your last comment :
We don't know how you wants to do that, but there is programs already do that.
Take a look at the Sysinternals Suite, there is PsList which allow you to see remote process etc ... You can maybe call it and gather informations.

PsList[+]
 
Share this answer
 
Comments
sdineshroshan 18-Apr-13 2:35am    
Hi Thomas Barbare,

Thnaks for ur feedback..
I need c# code to determine particular process on remote machine..
Thomas Barbare 18-Apr-13 2:43am    
Ok, I got a solution coming for you in about 5 minutes :)
sdineshroshan 18-Apr-13 3:40am    
thanks...i am waiting
First you have to be able to log on the remote computer using windows credentials, I suggest you to take a look at this codeproject article Windows login

When you are logged in the remote computer :

Before using this you have to reference System.ServiceProcess and add the following using :

C#
using System.ServiceProcess;
using System.Diagnostics;



You can now access to remote process with that, the exemple only show process name but you have a lot of properties on these items.

C#
string remoteSystem = "RemoteSystem";
Process[] proc = System.Diagnostics.Process.GetProcesses(remoteSystem);

Console.WriteLine("Process running on "+remoteSystem+" :");
foreach (Process item in proc)
{
    Console.WriteLine(item);
}
Console.ReadLine();
 
Share this answer
 
v2
Comments
sdineshroshan 18-Apr-13 3:20am    
Hi Thomas Barbare,

Thanks for ur feedback..

I am getting following error..
"Count not connect to remote machine".
Thomas Barbare 18-Apr-13 3:26am    
Yes because you have to login on the remote computer before with an user who have the rights of seeing the process etc ...
sdineshroshan 18-Apr-13 3:39am    
Hi..
I have logged in using Windows login..
but same problem..what i did wrong..
Thomas Barbare 18-Apr-13 4:00am    
It depends on your network, remote computer security etc ... So I can't tell you
sdineshroshan 18-Apr-13 4:21am    
ok..thanks...
or else i have another way...
do u know the solution for following question because i dnt know how to do code in c#?

how to get all active listeners over LAN?

Thanks in advance..

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900