Interface : UTP Ethernet please help

public void getdatafromController()
{
for (;:wink:
{
base.Invoke(new MethodInvoker(delegate()
{
try
{
string requestUriString = "http://" + this.controllerIpaddress + "/";
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(requestUriString);
httpWebRequest.Timeout = 2000;
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
bool flag = httpWebResponse.StatusCode == HttpStatusCode.OK;
if (flag)
{
Stream responseStream = httpWebResponse.GetResponseStream();
bool flag2 = httpWebResponse.CharacterSet == null;
StreamReader streamReader;
if (flag2)
{
streamReader = new StreamReader(responseStream);
}
else
{
streamReader = new StreamReader(responseStream, Encoding.GetEncoding(httpWebResponse.CharacterSet));
}
string text = streamReader.ReadToEnd();
httpWebResponse.Close();
streamReader.Close();
text = text.Split(new string
{
"#"
}, StringSplitOptions.None)[1];
bool flag3 = text == "B";
if (flag3)
{
this.pictureBox1.Image = Resources._1_1;
bool flag4 = !this.ismute;
if (flag4)
{
this.AlarmSound.PlayLooping();
}
else
{
try
{
this.AlarmSound.Stop();
}
catch (Exception)
{
}
}
}
else
{
bool flag5 = text == "L";
if (flag5)
{
this.pictureBox1.Image = Resources._1_0;
bool flag6 = !this.ismute;
if (flag6)
{
this.AlarmSound.PlayLooping();
}
else
{
try
{
this.AlarmSound.Stop();
}
catch (Exception)
{
}
}
}
else
{
bool flag7 = text == "R";
if (flag7)
{
this.pictureBox1.Image = Resources._0_1;
bool flag8 = !this.ismute;
if (flag8)
{
this.AlarmSound.PlayLooping();
}
else
{
try
{
this.AlarmSound.Stop();
}
catch (Exception)
{
}
}
}
else
{
bool flag9 = text == "E";
if (flag9)
{
this.pictureBox1.Image = Resources._0_0;
bool flag10 = !this.ismute;
if (flag10)
{
this.AlarmSound.Stop();
}
}
else
{
this.pictureBox1.Image = Resources.sysoff;
bool flag11 = !this.ismute;
if (flag11)
{
this.AlarmSound.Stop();
}
}
}
}
}
this.toolStripTextBox1.Text = "Controller is connected with ip address : " + this.controllerIpaddress;
this.toolStripTextBox1.ForeColor = Color.DarkGreen;
}
}
catch (Exception ex)
{
this.pictureBox1.Image = Resources.sysoff;
this.toolStripTextBox1.Text = "Controller is disconnected";
this.toolStripTextBox1.ForeColor = Color.Red;
}
}));
Thread.Sleep(2000);
}
}

Please I write this code and my program write. Controller is disconnected
What is the code write to Arduino to connect to my program by Ethernet shileld

there is a smiley right at the beginning of your code. that's not valid C++....

please read forum rules on how to post code and ask questions >:(

Where can I ask my question please

....

use the Ethernet library. it has examples. ask here if you don't understand them