D
D
Dmitry Belyaev2016-11-09 23:50:47
Computer networks
Dmitry Belyaev, 2016-11-09 23:50:47

How to programmatically request port forwarding from NAT?

There is a server application that is behind NAT (perhaps even behind several), it is necessary to accept connections from the Internet.
Google pointed to the NAT-PMP protocol and its RFC 6886 specification.
But from the specification, I didn’t really understand how to form a request, and it’s also not clear whether it is possible to request any free port or have to pick them up to success.
Maybe someone will throw links to more human-readable manuals in Russian / English?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RoverWhite, 2016-11-10
@bingo347

Here is an article - everything is described in detail
https://habrahabr.ru/post/279969/
The main idea is that you can feel everything using WireShark
And here is an example of software implementation
https://github.com/mono/Mono.Nat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question