How to port forward in C++?

c++

Solution

Port forwarding is done upstream of the client system, typically on the router.

I believe some applications use Universal Plug and Play to communicate with the upstream router to open a port publicly but you'll have to do a lot of research to see how it's done: I haven't the slightest.

Problem

I have a sockets program that requires port 1002 to be open and I wanna know how to port forward in C++ on windows so i may use this port freely?

Original source