Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7772071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:48:11+00:00 2026-06-01T16:48:11+00:00

Im using http://managedupnp.codeplex.com/ API to open up a port using UPNP on my NetGear

  • 0

Im using http://managedupnp.codeplex.com/ API to open up a port using UPNP on my NetGear DG834g ROUTER with the following code..

public void UPNPOpenPort(int port)
{
        Services lsServices;
        lsServices = Discovery.FindServices("urn:schemas-upnp-org:service:WANPPPConnection:1");

        if (lsServices.Count > 0)
            using (Service lsService = lsServices[0])
            {
                try
                {
                    object[] loObj = new object[] { "", port, "TCP", port, "10.0.0.100", true, "Custom Mapping", 0 };
                    lsService.InvokeAction("AddPortMapping", loObj);
                }
                catch (Exception loE)
                {
                    MessageBox.Show(
                        String.Format(
                            "{0}: HTTPSTATUS: {1}",
                            loE.Message,
                            lsService.LastTransportStatus));
                }


            }
        else
        {
            MessageBox.Show("Doh No Router Found");   
            return;
        }
}

I have a service host with a NetTCP binding with the same port im feeding into the sub routine to set the UPNP forwarding and I can see an active UPNP record on the router configuration. I can see the port is listening on my local machine and other PC’s on my LAN can connect to the port however using an online Port checker it shows as closed, even though the Router says that it should be forwarding to the correct internal IP.

Does anyone have any ideas or am i missing something?

Best Regards,

Christopher Leach

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:48:12+00:00Added an answer on June 1, 2026 at 4:48 pm

    Yes. I performed a factory restore on the router, enabled UPnP, opened the service host and created a forward. It worked.

    Even Teredo decided to come online.

    Its great to know from a beginners perspective that its not always your codes(your understanding) fault. Sometimes its your hardware.

    Thanks,

    Christopher Leach

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi Im using the following code: http://vikaskanani.wordpress.com/2011/01/11/android-upload-image-or-file-using-http-post-multi-part/ To POST an image to a WCF
Hi I am using http://silverlightpdf.codeplex.com/ code to print pdf from my silverlight application hosted
I am using http://code.google.com/apis/maps/documentation/geocoding/ api from google to get geolocation based on address. I
I'm using http://code.google.com/p/flex-iframe/ for showing html in an flex application. To set this up
I'm using http://code.google.com/p/flex-iframe/ for showing wikicontent in a flex app. <?xml version=1.0?> <mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml
(using http://code.google.com/p/svgweb/ ) window.onsvgload = function() { function onEnter(e) { var targ; if (!e)
I am using http://code.google.com/p/pynessus/ so that I can interact with nessus using python but
I'm using http://jqueryfordesigners.com/jquery-tabs/ for a project, the tabbing code looks like this:- <script type=text/javascript
i am using http://malsup.com/jquery/cycle/ with jquery my code is <script> $(document).ready(function(){ $(div.hide1).fadeTo(slow, 0.13); $(div.hide1).fadeTo(slow,
I am using http://www.antiyes.com/jquery-blink-plugin for blinking images on my document. Code of that plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.