<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267087</guid>
        <pubDate>Sat, 16 Sep 2006 19:49:51 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267087</link>
        <description><![CDATA[art-MiXeR: Не знаю, я когда через сокеты делал просто не знал про существование TcpListener&#39;а<br>
Если хочешь скинь мне на мыло исходники - посмотрю (т.к. приведённый тобой кусок кода вроде рабочий) <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2006-09-16T23:56:05+04:00">16.09.06, 19:56</time></span></span><br>
Вот кусок кода из MSDN - найди 10 отличий(или больше) :)<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">using System;</div><div class="code_line">using System.IO;</div><div class="code_line">using System.Net;</div><div class="code_line">using System.Net.Sockets;</div><div class="code_line">using System.Text;</div><div class="code_line">&nbsp;</div><div class="code_line">class MyTcpListener</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp;public static void Main()</div><div class="code_line">&nbsp;&nbsp;{ </div><div class="code_line">&nbsp;&nbsp; &nbsp;TcpListener server=null; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp;try</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;// Set the TcpListener on port 13000.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Int32 port = 13000;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;IPAddress localAddr = IPAddress.Parse(&quot;127.0.0.1&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;// TcpListener server = new TcpListener(port);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;server = new TcpListener(localAddr, port);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;// Start listening for client requests.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;server.Start();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;// Buffer for reading data</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Byte[] bytes = new Byte[256];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;String data = null;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;// Enter the listening loop.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;while(true) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Console.Write(&quot;Waiting for a connection... &quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// Perform a blocking call to accept requests.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// You could also user server.AcceptSocket() here.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TcpClient client = server.AcceptTcpClient(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;Connected!&quot;);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;data = null;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// Get a stream object for reading and writing</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;NetworkStream stream = client.GetStream();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int i;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// Loop to receive all the data sent by the client.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;while((i = stream.Read(bytes, 0, bytes.Length))!=0) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{ &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Translate data bytes to a ASCII string.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data = System.Text.Encoding.ASCII.GetString(bytes, 0, i);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;Received: {0}&quot;, data);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Process the data sent by the client.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data = data.ToUpper();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;byte[] msg = System.Text.Encoding.ASCII.GetBytes(data);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Send back a response.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;stream.Write(msg, 0, msg.Length);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;Sent: {0}&quot;, data); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// Shutdown and end connection</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client.Close();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;catch(SocketException e)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;SocketException: {0}&quot;, e);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;finally</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; // Stop listening for new clients.</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; server.Stop();</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Console.WriteLine(&quot;\nHit enter to continue...&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp;Console.Read();</div><div class="code_line">&nbsp;&nbsp;} &nbsp; </div><div class="code_line">}</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>art-MiXeR</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267074</guid>
        <pubDate>Sat, 16 Sep 2006 19:30:19 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267074</link>
        <description><![CDATA[registered: <strong class='tag-b'>art-MiXeR</strong>, странно - через сокеты все получилось. А разве TcpClient что-то другое делает ?]]></description>
        <author>registered</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267030</guid>
        <pubDate>Sat, 16 Sep 2006 18:40:49 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267030</link>
        <description><![CDATA[art-MiXeR: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse([B]___address___[/B]), [B]___port___[/B]);</div><div class="code_line">Socket listener;</div><div class="code_line">&nbsp;</div><div class="code_line">public void StartListening()</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (endPoint == null)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Генерируем исключение</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (listener != null)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Генерируем исключение</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listener.Bind(endPoint);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listener.Listen(100);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listener.BeginAccept(AcceptConnection, null);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div></ol></div></div></div></div> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>-Added <time class="tag-mergetime" datetime="2006-09-16T18:43:21+00:00">16.09.06, 18:43</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=154642&view=findpost&p=1267015'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>registered &#064; <time class="tag-quote__quoted-time" datetime="2006-09-16T18:09:58+00:00">16.09.06, 18:09</time></span><div class='quote '>обычный браузер соединяется нормально. Но что самое странное сетевой снифер ничего не показывает :)<br>
<br>
тут простой код для тестирования. Может в нем что не так ? Но у меня не соединяется. Говорит, что <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Требуемый адрес для своего контекста неверен&quot;System.Net.Sockets.SocketException</div></ol></div></div></div></div></div></div><br>
Так я не совсем понял: что у тебя работает, а что нет]]></description>
        <author>art-MiXeR</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267015</guid>
        <pubDate>Sat, 16 Sep 2006 18:09:58 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1267015</link>
        <description><![CDATA[registered: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=154642&view=findpost&p=1266471'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Pit&#045;Bul &#064; <time class="tag-quote__quoted-time" datetime="2006-09-16T07:53:12+00:00">16.09.06, 07:53</time></span><div class='quote '>а случайно на машинах брандмауэры не влюченя?</div></div><br>
выключен<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=154642&view=findpost&p=1266505'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>art&#045;MiXeR &#064; <time class="tag-quote__quoted-time" datetime="2006-09-16T08:53:23+00:00">16.09.06, 08:53</time></span><div class='quote '>Попробуй подключиться к порту, который слушает серверная часть приложения обычным браузером</div></div><br>
обычный браузер соединяется нормально. Но что самое странное сетевой снифер ничего не показывает :)<br>
<br>
тут простой код для тестирования. Может в нем что не так ? Но у меня не соединяется. Говорит, что <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Требуемый адрес для своего контекста неверен&quot;System.Net.Sockets.SocketException</div></ol></div></div></div></div><br>
<br>
сам код<br>
server<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">using System;</div><div class="code_line">using System.Collections.Generic;</div><div class="code_line">using System.Text;</div><div class="code_line">using System.Net;</div><div class="code_line">using System.Net.Sockets;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">namespace server</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;class Program</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;static void Main(string[] args)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Int32 port = 0x732;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TcpListener server = new TcpListener(port);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//TcpListener server = new TcpListener(ip, port);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server.Start();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while(true) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.Write(&quot;Waiting for a connection... &quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TcpClient client = server.AcceptTcpClient();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;Connected!&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NetworkStream stream = client.GetStream(); &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;client.Close();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div><br>
<br>
Пробовал все версии конструктора<br>
<br>
client<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">using System;</div><div class="code_line">using System.Collections.Generic;</div><div class="code_line">using System.Text;</div><div class="code_line">using System.Net;</div><div class="code_line">using System.Net.Sockets;</div><div class="code_line">&nbsp;</div><div class="code_line">namespace client</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;class Program</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;private static int m_port = 0x732;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;private static TcpClient m_client = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;protected static NetworkStream m_stream = null;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;static void Main(string[] args)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IPHostEntry hostEntry = Dns.GetHostEntry(&quot;my_computer&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IPAddress[] ipList = hostEntry.AddressList;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int index = 0; index &#60; ipList.Length; ++index)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IPAddress ip = ipList[index];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IPEndPoint endPoint = new IPEndPoint(ip, m_port);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_client = new TcpClient(endPoint);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_stream = m_client.GetStream();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(ip.ToString() + &quot;: &quot; + &quot;Connect!&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;catch (ArgumentNullException ex)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(ip.ToString() + &quot;: &quot;, ex);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;catch (SocketException ex)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(ip.ToString() + &quot;: &quot;, ex);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.Threading.Thread.Sleep(5000);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>registered</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266505</guid>
        <pubDate>Sat, 16 Sep 2006 08:53:23 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266505</link>
        <description><![CDATA[art-MiXeR: Попробуй подключиться к порту, который слушает серверная часть приложения обычным браузером.]]></description>
        <author>art-MiXeR</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266471</guid>
        <pubDate>Sat, 16 Sep 2006 07:53:12 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266471</link>
        <description><![CDATA[Pit-Bul: а случайно на машинах брандмауэры не влюченя? У меня тоже проблемма была, вроде в программе всен нормально а соединение не проходить, это брандмауэр блокировал как оказалось, хотя разрешения я установил для своих програмок]]></description>
        <author>Pit-Bul</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266305</guid>
        <pubDate>Fri, 15 Sep 2006 20:45:35 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266305</link>
        <description><![CDATA[registered: да он открыт и слушает на порту. Только соединиться не могу.<br><br>Не совсем понятно в чем проблемма - порты одинаковы, ip задан правильно, настройки правильно...]]></description>
        <author>registered</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266301</guid>
        <pubDate>Fri, 15 Sep 2006 20:39:55 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266301</link>
        <description><![CDATA[andrey: Прочитай что-нибудь про сокеты вцелом. Для TCP на одном конце надо октрывать TcpServer. Если хочется чтобы все были одинаковые, используй UDP]]></description>
        <author>andrey</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266224</guid>
        <pubDate>Fri, 15 Sep 2006 18:52:08 +0000</pubDate>
        <title>TcpClient</title>
        <link>https://forum.sources.ru/index.php?showtopic=154642&amp;view=findpost&amp;p=1266224</link>
        <description><![CDATA[registered: есть 2 машины. Через винду могу общаться друг с другом.<br><br>Но если пытаюсь соединиться программно, то пишет, что &quot;Требуемый адрес для своего контекста неверен&quot;<br><br>В какую сторону рыть ? (программно или настройки сети или служб)]]></description>
        <author>registered</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	