Re: vb.net and sockets bug?

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



Hello,

please post your code here.

Best regards,
Henning Krause

"buc" <bucrepus@xxxxxxxxxxxxxxxxxx> wrote in message news:%23$fZOhMdHHA.1000@xxxxxxxxxxxxxxxxxxxxxxx
Yes, I bind to a port, for example 9001, and 9001 is placed into the packet as the destination port, but the source send port is in the 2000 range. This appears to be a bug, and is easily reproducable with only a few lines of code. Even example code from the MSDN. I tried the same code on XP or 2003 server platform with the same results.
BUC

"buc" <bucrepus@xxxxxxxxxxxxxxxxxx> wrote in message news:uBnKlcKdHHA.2068@xxxxxxxxxxxxxxxxxxxxxxx
Why does VB.NET UDP sockets send data on random ports?. If I set a simple socket up to transmit a UDP packet on a port, look at the packet with a sniffer, the actual packets source port and dest.port are diff. The packets destination port is correct, but the packets source port it is actually sent from is random. Why? How can I figure out the actual source port windows is using, not what the vb.net socket is fake reporting?
Thanks BUC





.



Relevant Pages

  • PATCH: Remove file riowinif.h from rio driver (unused file)
    ... -/* The RUP (Remote Unit Port) structure relates to the Remote Terminal Adapters ... - CONFIG is sent from the driver to configure an already opened port. ... - Packet structure is same as OPEN. ... - of the specified port's RTA address space. ...
    (Linux-Kernel)
  • Re: General questions about Sockets
    ... > could I push it before I see the network slowing down and/or errors? ... Nagle/Delayed ACK interaction but you could confirm it with a packet ... > I can setup any port in my registry, but what would be the 'default' one I ... Google could confirm it. ...
    (microsoft.public.win32.programmer.networks)
  • Re: File Transfer and WinSock
    ... I have message types defined and a packet protocol that I use which may be ... You need to bind the winsock control to some port. ... this.Parent.SendConfirmation(lcMessageID, lnPacketNumber) ... SEEK lcMessageID + STR ...
    (microsoft.public.fox.programmer.exchange)
  • Re: [Full-disclosure] Microsoft Windows vulnerability in TCP/IP Could Allow Remote Code Executio
    ... maybe abit more about packet infos.. ... more when the author comes out with it wich is, possibly never, but, i ... wich the port opens, but this is undisclosed. ... I have looked at this and, you dont need to be udp... ...
    (Full-Disclosure)
  • RE: Strange replies on closed port
    ... port should be a RST - not dropping the packet. ... receiving an UDP datagram to a non 'listening' port. ... that message isn't generated by the end host, ... Connecting to a closed Port w/o Firewall: ...
    (Pen-Test)