runtime icon indicating copy to clipboard operation
runtime copied to clipboard

net6.0-ios/debugging: no listener on any ipv6 address on port 10000 but debugged app try to connect to ipv6 addresses

Open softlion opened this issue 3 years ago • 1 comments

Description

From a mac, with visual studio mac, trying to debug a maui app on an iOS device shows this log:

image

The app tries to connect to the debugger using ipv6 addresses. But the debugger listens only on ipv4.

netstat -an -ptcp

image

Reproduction Steps

  • Create a maui app on a mac
  • Start debugging it with visual studio mac
  • Open the console app and filter on the mobile app's process
  • Read the log

Expected behavior

Either the debugger's server should listen to both ipv4 and ipv6, or the debugger's client should filter out ipv6 when trying to connect to its server.

Actual behavior

the debugger's server listen only to ipv4 on port 10000

Regression?

no

Known Workarounds

none. If ipv4 is disabled or not routed correctly, the debugger won't be able to connect.

Also, using ipv6 should improve a lot the connection speed, thus improving the whole debugging experience.

Configuration

image

Other information

No response

softlion avatar Sep 20 '22 06:09 softlion

Tagging subscribers to this area: @tommcdon See info in area-owners.md if you want to be subscribed.

Issue Details

Description

From a mac, with visual studio mac, trying to debug a maui app on an iOS device shows this log:

image

The app tries to connect to the debugger using ipv6 addresses. But the debugger listens only on ipv4.

netstat -an -ptcp

image

Reproduction Steps

  • Create a maui app on a mac
  • Start debugging it with visual studio mac
  • Open the console app and filter on the mobile app's process
  • Read the log

Expected behavior

Either the debugger's server should listen to both ipv4 and ipv6, or the debugger's client should filter out ipv6 when trying to connect to its server.

Actual behavior

the debugger's server listen only to ipv4 on port 10000

Regression?

no

Known Workarounds

none. If ipv4 is disabled or not routed correctly, the debugger won't be able to connect.

Also, using ipv6 should improve a lot the connection speed, thus improving the whole debugging experience.

Configuration

image

Other information

No response

Author: softlion
Assignees: -
Labels:

area-Diagnostics-coreclr

Milestone: -

ghost avatar Sep 20 '22 06:09 ghost

Tagging subscribers to this area: @thaystg See info in area-owners.md if you want to be subscribed.

Issue Details

Description

From a mac, with visual studio mac, trying to debug a maui app on an iOS device shows this log:

image

The app tries to connect to the debugger using ipv6 addresses. But the debugger listens only on ipv4.

netstat -an -ptcp

image

Reproduction Steps

  • Create a maui app on a mac
  • Start debugging it with visual studio mac
  • Open the console app and filter on the mobile app's process
  • Read the log

Expected behavior

Either the debugger's server should listen to both ipv4 and ipv6, or the debugger's client should filter out ipv6 when trying to connect to its server.

Actual behavior

the debugger's server listen only to ipv4 on port 10000

Regression?

no

Known Workarounds

none. If ipv4 is disabled or not routed correctly, the debugger won't be able to connect.

Also, using ipv6 should improve a lot the connection speed, thus improving the whole debugging experience.

Configuration

image

Other information

No response

Author: softlion
Assignees: -
Labels:

area-Diagnostics-coreclr, untriaged, area-Debugger-mono

Milestone: -

ghost avatar Sep 20 '22 17:09 ghost

cc @steveisok

lewing avatar Sep 27 '22 18:09 lewing

@mauroa is investigating it, it looks like it's an issue on windows too.

thaystg avatar Oct 07 '22 20:10 thaystg

It looks likes to be completely not related with mono debugger, because it's before runtime or debugger-libs code In this line: https://github.com/xamarin/maciostools/blob/16e286fefc262d21e27884f19d55ffb40771823e/Xamarin.MacDev.Ide/IPhoneDevice.cs#L591 It's not connecting, returns error 22

thaystg avatar Oct 07 '22 20:10 thaystg

Moved to https://github.com/xamarin/maciostools/ repo

thaystg avatar Aug 09 '23 18:08 thaystg