In c#,I am using the following code:
IPAddress localaddress=IPAddress.Parse("127.0.0.1");
to get a System.Net.IPAddress instance which am using in:
IPEndPoint ip= new IPEndPoint(localaddress,5555);
I am however getting an error saying:
A field initializer cannot reference the nonstatic field, method, or property 'WindowsApplication1.lanmessenger.localaddress' .
Please help.