sdk icon indicating copy to clipboard operation
sdk copied to clipboard

SocketException is reporting destination address with source port

Open apulsifer opened this issue 6 months ago • 3 comments

The following SocketException is reporting the destination address with source port:

SocketException: The remote computer refused the network connection. (OS Error: The remote computer refused the network connection. , errno = 1225), address = 192.168.10.1, port = 53568

I would expect to see the destination port, not the source port.

(Note: the source and destination ports were confirmed using the SysInternals Procmon utility: localhost:53568 -> 192.168.10.1:29254)

  • Dart 3.8.0 (stable) (Wed May 14 09:07:14 2025 -0700) on "windows_x64"
  • on windows / "Windows 10 Home" 10.0 (Build 19045)
  • locale is en-US

apulsifer avatar May 22 '25 11:05 apulsifer

Likely duplicate of https://github.com/dart-lang/sdk/issues/12693

julemand101 avatar May 22 '25 13:05 julemand101

It is not a duplicate. In #12693, the local address and local port are being displayed. In this issue, the destination address and local port are displayed, so there is a mismatch, with one value reflecting the destination and the other the source.

apulsifer avatar May 22 '25 13:05 apulsifer

//cc @brianquinlan

a-siva avatar May 23 '25 15:05 a-siva