A
A
Alexander Storozhuk2017-02-14 00:04:36
.NET
Alexander Storozhuk, 2017-02-14 00:04:36

What to use for port forwarding in p2p application in C#: NAT-PMP or UPnP IGD?

There is a p2p chat created in c#. Which of the port forwarding methods will be easier to implement, is supported by a large number of network devices, etc. ?
I believed this article that NATUPnPLib should not be used, since the library is rather unreliable.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-02-14
@OlexStor

Usually both methods are used at once, if possible.

S
stokito, 2022-01-24
@stokito

use https://github.com/alanmcgovern/Mono.Nat or its fork https://github.com/lontivero/Open.NAT
As an option, libnatpmp sish lib
NAT-PMP is better if possible, but if not, then try to hammer through UPnP IDG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question