UPnP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Svinja
    New Member
    • Nov 2007
    • 25

    #1

    UPnP

    Hello,

    I am using UPnP in c# to communicate with my router. So far i have managed to do this:
    1. Get router info(xml)
    2. Get external(public ) IP address
    3. Add and delete port mapping

    Is there any way to see which ports are forwarded? I think it is possible with eventing but my router doesnt support it. I tried with queryStateVaria ble action but with no success. I am not using NAT traversal.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    How are you using UPnP from withen .NET? I am curious as I've never found anyway to interact with UPnP and would be interested to see what I could come up with.
    (I have a router that claims to support UPnP as well)

    Comment

    • Svinja
      New Member
      • Nov 2007
      • 25

      #3
      Originally posted by Plater
      How are you using UPnP from withen .NET? I am curious as I've never found anyway to interact with UPnP and would be interested to see what I could come up with.
      (I have a router that claims to support UPnP as well)
      I send SOAP messages to UPnP device(router) and then wait for the answer. UPnP is actually very simple protocol. UPnP standard is made by UPnP forum.

      First you must understand UPnP(first three chapters are most important for good start):


      This is the link for official UPnP documentation:
      http://www.upnp.org/resources/upnpresources.z ip
      (UPnP-DeviceArchitect ure-v1.0.pdf was very helpfull to me)

      Some examples:


      I can put some of my code here if you want?

      Comment

      Working...