5

Does someone have a simple example on how to add a port forwarding entry with upnp into the router using c++?

gtilx
  • 2,055
  • 4
  • 17
  • 21
  • Here's a C# library which does it. http://github.com/theanti9/SharpUPnP – Martin Oct 06 '10 at 22:45
  • I am not an expert on c++ so porting that would be impossible for me, but I will take a look to see how it works. Thanks. – gtilx Oct 06 '10 at 23:16

1 Answers1

1

There is some code that does this here. Although the title references Visual Basic, the included code is in C++.

Steve Townsend
  • 53,498
  • 9
  • 91
  • 140