Re: System.Net.Sockets.SocketException -UDP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hallo Robert,

erst einmal vielen Dank für Deine Hilfe :-)


>> //senden von meinem PC
>> UDP: Source Port: 1631 Dest.Port: 19000
>>
>> //Antwort von Gateway
>> UDP: Source Port: 19000 Dest.Port: 1631
>
> Wo ist das Problem? Das sieht gut aus.


Ja, im Sniffer :-) Ich bekomme die Antwort der Gateways einfach nicht in
mein Programm. Der Empfänger empfängt nichts. Nur, wenn ich als Lauschport
nicht 0 setze, sondern 19000, empfange ich etwas, und zwar sinnigerweise
meine eigene Anfrage.


> Verwende lieber die Wildcard-Adresse:
>
> IPEndPoint endPoint = new IPEndPoint(IPAddress.Any, 0);

Jupp, habe ich probiert mit demselben Ergebnis leider.

> Das Gateway wird dir auf diesen Port (den du nicht mal kennen
> musst) anworten, es sei denn das Protokoll, das nur du
> z.Z. kennen kannst, sieht es vor, dass die Antwort
> an einen bestimmten wellknown Port geht. Sollte es so sein,
> dann:
>
> IPEndPoint endPoint = new IPEndPoint(IPAddress.Any, wellKnownPort);
>
> Das wäre aber sehr unüblich.

Stimmt, die Gateways senden nnicht über einen bestimmten Port, nur der
Empfang ist auf Port 19000 gesetzt.
>
> ciao
> Robert

Viele Grüße,
Torben


.



Relevant Pages

  • Re: System.Net.Sockets.SocketException -UDP
    ... Die Gateways antworten auf einem beliebigen Port und deren Antwort ... EndPoint senderRemote; ... catch (Exception ex) ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • System.Net.Sockets.TcpClient.Close() doesnt close the socket!
    ... After binding it to a specific local endpoint, I am connecting to a remote host listening on port ... I close the TcpClient object. ... what I've concluded is that the port takes some time to close and that TcpClient.Close don't guarantee that the underlying socket will be closed. ... IPEndPoint localEP=new IPEndPoint; ...
    (microsoft.public.win32.programmer.networks)
  • Re: [fw-wiz] Application Intelligent vs ALG
    ... protocol detection heuristics like IDS do, ... protocols to port numbers, i.e. if someone is running ICQ or HTTP over ... > old technology, stateful inspection is the next generation of firewall ... > gateways, and why is it better than Sidewinder, Firebox, Raptor, ...
    (Firewall-Wizards)
  • Re: Default Gateway Setting not set after Reboot
    ... It is the second port on the dual port card that is exposing this ... All other "gateways" are just that,...gateways..(not ...
    (microsoft.public.win2000.networking)
  • Re: check if a port is opened
    ... foreach (IPEndPoint p in tcpEndPoints) ... I'm want to check if a certain port is opened or closed. ...
    (microsoft.public.dotnet.languages.csharp)