hi friends, i am doing a project which is based on smtp mail server.. i need a class that ho we are accessing an message header or custom header for an incoming mails...
For retrrieving IP address use the program used in the following link:- http://netomatix.com/MachineIp.aspx
check this simple source code(C#) csharp.net-informations.com/communications/csharp-ip-address.htm algo.
Check my solution here: PHP: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.NetworkInformation; namespace IPReader { class Program { static void Main(string[] args) { IPGlobalProperties network = IPGlobalProperties.GetIPGlobalProperties(); //sneak to the network TcpConnectionInformation[] tcpConnectionInformation = network.GetActiveTcpConnections(); //lets display the result foreach (TcpConnectionInformation item in tcpConnectionInformation) { Console.WriteLine(item.RemoteEndPoint.Address.ToString()); } Console.ReadKey(false); } } }