Серверное приложение уже запущено и подключено. на указанном порту:
Код: Выделить всё
Prompt>netstat -aon | findstr "7447"
UDP 0.0.0.0:7447 *:* 41316
Prompt>tasklist /FI "PID eq 41316"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
MyServer.exe 41316 Console 1 71.308 K
Код: Выделить всё
private void Receive()
{
BaseTelegram telegram = null;
IPEndPoint endpoint = new IPEndPoint(IPAddress.Any, this._listenPort);
try
{
Byte[] receivedBytes = this._udpClient.Receive(ref endpoint);

Я также знаю, что он прошел через этот исходный код:
Код: Выделить всё
public UdpConnection(System.Net.Sockets.UdpClient udpClient, Int32 listenPort)
{
this._listenPort = listenPort;
this._udpClient = udpClient;
}
Код: Выделить всё
System.InvalidOperationException: 'You must call the Bind method before performing this operation.'
Есть ли у кого-нибудь идеи?
Спасибо
п>
Подробнее здесь: https://stackoverflow.com/questions/791 ... -no-i-dont
Мобильная версия