xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.48k stars 514 forks source link

Multipeer Connectivity not working on Personal hotspot #5509

Closed henrik-stromberg-tetrapak closed 5 years ago

henrik-stromberg-tetrapak commented 5 years ago

Steps to Reproduce

  1. Download sample https://github.com/lobrien/MultipeerConnectivity
  2. Build application and deploy to two phones connected to same wifi.
  3. On one phone select Advertiser
  4. On next phone select browser
  5. Send Message
  6. Message should be sent to other phone.
  7. No setup a Personal hotspot 8 retry step 3-6

Expected Behavior

Message should be sent to second phone

Actual Behavior

Peer is found but and start connection event in DidChangeState() is sendt but after a while I get a NotConnected event. and its not possible to send message.

Environment

=== Visual Studio Professional 2017 for Mac ===

Version 7.7.3 (build 43)
Installation UUID: fa3e4cec-b590-4800-b32d-d6a8467064bb
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)

    Package version: 516000221

=== Mono Framework MDK ===

Runtime:
    Mono 5.16.0.221 (2018-06/b63e5378e38) (64-bit)
    Package version: 516000221

=== NuGet ===

Version: 4.8.0.5385

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
    2.2.1
    2.2.0
    2.1.5
SDK: /usr/local/share/dotnet/sdk/2.2.103/Sdks
SDK Versions:
    2.2.103
    2.2.100
    2.1.302
    2.1.301
    2.1.4
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 10.1 (14460.46)
Build 10B61

=== Xamarin.Android ===

Version: 9.1.5.1 (Visual Studio Professional)
Android SDK: /Users/sestrombergh/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
        8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 27.0.1
SDK Build Tools Version: 27.0.3

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/sestrombergh/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.9
openjdk version "1.8.0-9"
OpenJDK Runtime Environment (build 1.8.0-9-microsoft-b00)
OpenJDK 64-Bit Server VM (build 25.71-b00, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android Device Manager ===

Version: 7.7.1.0
Hash: 06ceaea1

=== Xamarin.Mac ===

Version: 5.2.1.13 (Visual Studio Professional)
Hash: a4332c90
Branch: 
Build date: 2019-01-11 13:08:10-0500

=== Xamarin.iOS ===

Version: 12.2.1.13 (Visual Studio Professional)
Hash: a4332c90
Branch: d15-9
Build date: 2019-01-11 13:08:09-0500

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 707030043
Git revision: 5896ab2acba037c62271742e9e56b900c96c1d8f
Build date: 2019-01-15 21:18:33+00
Build branch: release-7.7
Xamarin extensions: e5b43ba963b7b407aa5b9f2c59018c32a709e6ab

=== Operating System ===

Mac OS X 10.13.6
Darwin 17.7.0 Darwin Kernel Version 17.7.0
    Wed Oct 10 23:06:14 PDT 2018
    root:xnu-4570.71.13~1/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

LiveXAML 1.3.31

Build Logs

Example Project (If Possible)

Download sample https://github.com/lobrien/MultipeerConnectivity

dalexsoto commented 5 years ago

Hello @henrik-stromberg-tetrapak, thanks for reaching us!

The broader developer community would be the best and quickest place for additional troubleshooting help on this issue, this is the development repository of the Xamarin.iOS/Mac SDK.

Posting a question on Stack Overflow [0] or the Xamarin Forums [1] would be the best next step.

[0] https://stackoverflow.com/questions/tagged/xamarin [1] https://forums.xamarin.com/categories/ios

(Investigation by the Xamarin team in the bug tracker for an issue like this would usually require that the reporter include additional background info to hint that Xamarin is behaving differently compared to Xcode.)