locked
Opening a port RRS feed

  • Question

  • I have a windows server 2008 R2 Enterprise.  The firewall is disabled.

    I have an application that is needing port 10100 open. If I do netstat I do not see this listening.  My understanding is by default if the firewall is disabled then all ports should be open.  How do I then get port 10100 to listening status. Installing this software did not automatically open it. 

    Thanks!

    Jenn

    Friday, January 3, 2014 6:09 PM

Answers

  • Not really. If you run

    netstat -oan|find "LISTEN"

    Then check the port is shown as "LISTENING" if that isn't the case, then there is no application listening on that port.

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


    • Edited by Dave PatrickMVP Friday, January 3, 2014 7:41 PM
    • Marked as answer by Andy Qi Wednesday, January 22, 2014 6:26 AM
    Friday, January 3, 2014 7:39 PM
  • Looks like menu.exe was allocated port 54831 to connect to 1433 (more than likely is SQL server.)

    http://support.microsoft.com/kb/137984

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Proposed as answer by Jesper Arnecke Tuesday, January 7, 2014 10:06 AM
    • Marked as answer by Andy Qi Wednesday, January 22, 2014 6:26 AM
    Tuesday, January 7, 2014 1:44 AM
  • The application might be incrementing the last used port number until the port range is exhausted (or you restart server)

    http://support.microsoft.com/kb/174904

    http://support.microsoft.com/kb/929851

    http://searchnetworking.techtarget.com/definition/dynamic-port-numbers

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by Andy Qi Wednesday, January 22, 2014 6:26 AM
    Wednesday, January 8, 2014 1:49 AM

All replies

  • If you don't see it listening on the computer the application runs on then the application must not be working correctly.

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, January 3, 2014 6:23 PM
  • Could there be any other possible answers?
    Friday, January 3, 2014 7:32 PM
  • Not really. If you run

    netstat -oan|find "LISTEN"

    Then check the port is shown as "LISTENING" if that isn't the case, then there is no application listening on that port.

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


    • Edited by Dave PatrickMVP Friday, January 3, 2014 7:41 PM
    • Marked as answer by Andy Qi Wednesday, January 22, 2014 6:26 AM
    Friday, January 3, 2014 7:39 PM
  • If the windows firewall is disabled then the inbound and outbound rules don't apply correct?

    Friday, January 3, 2014 9:21 PM
  • Correct. Also the firewall state may be moot when you're running netstat on the same machine with the listening application.

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, January 3, 2014 9:24 PM
  • When I look at the windows firewall on this server. it says disabled, however the Domain network says connected. What does that mean? 

    Could I do netstat from another machine to check the ports? If so what command would that be?

    Thanks for assisting me.

    Jenn

    Friday, January 3, 2014 9:40 PM
  • It might help to tell us the whole issue.

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, January 3, 2014 11:17 PM
  • HI

    Is the application launching/ accessible within the server..? if its accessible we can trace the port using the TASK Manager!!!

    Thanks...

    Friday, January 3, 2014 11:40 PM
  • I am trying to tell the whole issue. I have a new software company coming in, I have a test server set up, windows firewall is blocking port 10100 and I am trying to find out why. This is a 1st for me. I am assuming the program is having an issue, but the burden of proof is of course falling on me to figure out, even though its their software. Thanks! Jenn
    Monday, January 6, 2014 2:42 PM
  • Hi,

    As many have stated earlier, is the application that should listen to port 10100 running on the server? Having the firewall on doesn't prevent an application from listening to a port, even if traffic to that port will be blocked by the firewall.

    So try running "netstat -an | findstr ":10100" in an elevated command prompt. If your application then listens to port 10100 you will get a similiar output as below

    In my case above, Windows Firewall is on, but as I stated Before, that doesn't prevent an application from listening to a port.

    If it listens, you can try to access the port without the actual application by using 'Telnet servername 10100' or the application portqry https://support.microsoft.com/kb/310099


    Microsoft Certified Trainer
    MCSE: Desktop, Server, Private Cloud, Messaging
    Blog: http://365lab.net




    Monday, January 6, 2014 3:04 PM
  • Yes the application is supposedly installed correctly from their perspective.  I launch the application and can log into it. 

    When I run the netstat -an | findstr ":10100"-it returns nothing.  so i know its not listening. 

    When I telnet it refuses me. 

    Monday, January 6, 2014 5:14 PM
  • Then it sounds like it listens to another port. You can further troubleshoot by running 'netstat -anb' and look for the server application and port it listens to by looking after the executable name.

    Microsoft Certified Trainer
    MCSE: Desktop, Server, Private Cloud, Messaging
    Blog: http://365lab.net

    Monday, January 6, 2014 5:36 PM
  • Launching the program - menu.exe launches.

    going to the system settings where the port is supposed to be configured launches syssetup.exe.

    when I run netstat -anb I get:

    menu.exe tcp 192.168.0.43:54831 192.168.0.43:1443 established

    syssetup.exe tcp [::]:80  [::]:0 listening

    each time is open and close the program the menu.exe port increases one.

     

    Monday, January 6, 2014 6:09 PM
  • Looks like menu.exe was allocated port 54831 to connect to 1433 (more than likely is SQL server.)

    http://support.microsoft.com/kb/137984

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Proposed as answer by Jesper Arnecke Tuesday, January 7, 2014 10:06 AM
    • Marked as answer by Andy Qi Wednesday, January 22, 2014 6:26 AM
    Tuesday, January 7, 2014 1:44 AM
  • But the port for menu.exe keeps changing each time it opens. I can see port 1433 is listening in my list. SQL is installed for the database portion of this program. 

    Why do you think the port keeps changing?

    Tuesday, January 7, 2014 6:20 PM
  • The application might be incrementing the last used port number until the port range is exhausted (or you restart server)

    http://support.microsoft.com/kb/174904

    http://support.microsoft.com/kb/929851

    http://searchnetworking.techtarget.com/definition/dynamic-port-numbers

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by Andy Qi Wednesday, January 22, 2014 6:26 AM
    Wednesday, January 8, 2014 1:49 AM