Closed NaolShow closed 3 years ago
Edit:
I am just stupid. I just found out that the problem is that it throws an Exception. And for no reason unity do not forwards them in the debug console..
@NaolShow , I use Open.NAT (forked from Mono.Nat), and I got a user having a deadlock when using Open.NAT. I traced the deadlock to CreatePortMapAsync() . Could you tell me how did you solve yours exactly ? Thanks in advance for your answer ! :-)
The problem is that the code will just block indefinitely at the line:
So I just looked into the CreatePortMapAsync method and I just found that the code block at: (It's in the UpnpNatDevice class)
So I looked in the SendMessageAsync method and I found that is blocks at:
Do you have a solution for this problem ? (My modem supports UPnP) I am using Unity with the target as .NET Standard 2.0
Thanks for your help !
and: Here's my code with the Start() function my entry point.