tags:

views:

160

answers:

1

how to get ip address of LAN system having linux operating system using c#.net(running on windows server)

+1  A: 

If you'd like to find the IP address of a remote Linux system from a C# application on a Windows server, the short answer is... you can't.

Instead, the Linux system will need to tell the C# application its IP address in some way, or the C# application will need to have the IP address of the remote system stored in configuration. (See the System.Configuration namespace, in particular use of app.config.)

If what you want to do is find the IP address of a host with a particular name, see here for a sample application that uses the System.Net namespace and Dns.GetHostByName().

Jeremy McGee
mcgee thnx for ur replypls confirm me one thing is it possible to get the hostname of a remote linux system using c#.net
Raghu
urgent, reply soon.
Raghu