How to check weather a remote port is open or closed by a firewall

Hi,
Need to check weather a remote port is open or closed by a firewall. can i use Java Socket class to do that?
Is there any proper way?

In general, there is no way to determine anything about the status of a firewall from the outside (unless you know one is running and you want to verify it's functioning correctly).
When trying to connect to a socket, you might get a time-out, which means either the firewall is silently dropping packets or the server is down or too busy or that there is a network problem. Or your connection might be refused, which means either the firewall has denied your request or the server isn't listening on the port you specified.
In most cases, you should only be interested in successful connections and not try to guess too much as to the cause of unsuccessful ones.

Similar Messages

  • How to check weather a material created is active or not

    Dear Friends
    1    How to check weather a material created is active or not.
    2  MIGO standard document has a check button, can we have similar check button in other documents like Purchase requisition.
    3   In case of material valuation is Standard (Price control), the costing is done on the basis of the Standard Price or actual cost of the raw material.
    I will be thankful for your advice.
    Sanjeev

    1 How to check weather a material created is active or not.
    There is a Blue "i" button for the Material, pls click that it will show you the current status..
    2 MIGO standard document has a check button, can we have similar check button in other documents like Purchase requisition.
    for PR you can see the check button( CtrlShiftF3) beside personal settings

  • How to check weather a queue is having any corruption.

    Hi,
    Can any bodu let me know how to check weather a queue is having corruption or not.
    Thanks,
    Aditya.

    these are the contentents of the xml file
    <?xml     version="1.0"?>
    <!DOCTYPE exceptioninfo [
         <!ELEMENT exceptioninfo (exception+) >
         <!ELEMENT exception (expname,messagecode,loggingtype,handlerclass) >
         <!ELEMENT expname (#PCDATA)>
         <!ELEMENT messagecode (#PCDATA)>
         <!ELEMENT loggingtype (#PCDATA)>
         <!ELEMENT handlerclass (#PCDATA)>
         ]>
    <exceptioninfo>
         <exception >
              <expname>NoAreasFoundException</expname>
              <messagecode>expError.noAreasFound</messagecode>
              <loggingtype>nologging</loggingtype>
              <handlerclass>Handler1</handlerclass>
         </exception>
         <exception>
              <expname>ServiceActiveAtStoresException</expname>
              <messagecode>expError.serviceActiveAtStores</messagecode>
         <loggingtype>nologging</loggingtype>
              <handlerclass>Handler2</handlerclass>
         </exception>
         <exception>
              <expname>UniqueConstraintException</expname>
              <messagecode>expError.uniqueconstraint</messagecode>
              <loggingtype>nologging</loggingtype>
              <handlerclass>Handler3</handlerclass>
         </exception>
    </exceptioninfo>
    In this file exception is a node which is having some child nodes like <messagecode>...... now within my java program i am going to parse the given xml file there i am going to check what are the nodes which are having child nodes using hasChildNodes() method which is there in org.w3c.dom.Node this method will returns true if there are any childNodes for the node if not this will return false but when i am trying to use in my program for every node this method is returning false
    can u help me now
    Thanks
    Rajesh

  • How to check weather my i phone is officially unlock of not

    Hi everyone
    Recently i got iphone 3g , but im not sure how to check weather its officially unlock or not. So that i should upgrade the os with locking it.
    Serial no 5K9098AKY7K
    Model MB496X
    IMEI 01 180900 090330 3
    Plz help me out

    Look i bought it from open market in pakistan
    Then there is no way to confirm that your phone was officially unlocked. Buying from a non-official source, especially an "open market", means you're at the mercy of the seller as to the accuracy of the phone's status. Based on postings here, most of these phones have been hacked. You'll find out for sure though if you update to 3.1.3.

  • HOw to check weather flash player is installed or not in Nokia ?

    How to check weather flash player is installed or not in
    Nokia ? I had created some flash file , i need to install in Nokia
    mobile .If there is no flash player how it will detect? if it is
    installed then how it will detect.
    Chirag

    Did you see the list of supported devices?
    http://www.adobe.com/devnet/devices/nokia.html
    http://www.adobe.com/devnet/devices/nokia_s60.html
    http://www.adobe.com/devnet/devices/nokia_s40.html
    http://www.adobe.com/mobile/supported_devices/

  • How to check weather oracle db is started or not and how to start at oracle

    Hi
    could u please tell me how to check weather database is started or not
    and also how to start . (on unix and windows)
    waiting for ur reply.
    rajendra

    Hi rajendra,
    You can use the following command at Unix/Aix operating system.
    login into unix/aix operating system
    & run the following command.
    sqlplus "connect /as sysdba"
    you come in sql prompt
    & than run the following query
    sql>select status from v$instance;
    In windos you can check DB status using MMC.
    if you have any query than message me freely.
    Karan
    Edited by: karan Singh on Jun 24, 2008 5:10 PM
    Edited by: karan Singh on Jun 24, 2008 5:12 PM

  • How to check weather BI Objectu2019s are imported and exported

    Hi to all,
    Some one has created INFOCUBE, DSO, DTP, transformation.
    My question is how I will check it, weather Objectu2019s   are imported and exported or not.
    How   to check under which request  number it have   been saved.
    Please can any one tell the step for that?
    I SHALL BE THANKFULL TO YOU FOR THIS.
    Regards
    Pavneet Rana

    Hello Pavneet,
    If you goto trans SE09/SE10--> Enter your User ID or * under user & then click on Display.
    You will be able to see all the TR's & if you drill it, you will be able to see all the objects collected under that TR.
    Hope its helps!
    Regards,
    Pavan

  • How to check web service (logical port) accessibility

    Before call some web services, a check needs to be done to make sure the web service connection is accessible. In fact, a logical port is used; and its accessibility needs to be checked in ABAP code.
    Besides calling the web service method itself and catching the exception, is there any other general way to check whether the web service connection available?
    more details in respect of this question:
    The executing of web services will take a relative long time while sometimes only the availability checking for web services is needed. So I'm finding other ways to check that.
    In the code, the logical port will be used for accessing web services. Any way to check whether a logical port works OK in code?
    Thanks!
    Said
    Message was edited by:
            Sayid Tong

    Hi Prashant,
    Thanks for your attention.
    Do you mean give the web service url and check it? Neither do I know which method can be used in this regarding from program RSDEMO_HTML_VIEWER.
    I'd like to give more details in respect of this question:
    The executing of web services will take a relative long time while sometimes only the availability checking for web services is needed. So I'm finding other ways to check that.
    In the code, the logical port will be used for accessing web services. Any way to check whether a logical port works OK in code?
    Thanks.
    Said

  • Why do ports remain open after closing Firefox?

    I have noticed recently that several ports associated with Firefox remain open when the Firefox browser is closed. The number of open ports increases each time Firefox is opened and I have seen that the number of open ports has reached to more than 1,000 open ports at a time. The majority of the open ports are outbound TCP using port 443 and I also note a sustained increase in the network traffic after Firefox is closed.
    I have observed ports opened by the Explorer browser and noted that all of the ports opened with Explorer close when the Explorer browser is closed. The Firefox ports remain open when the browser is closed.
    Questions:
    - Should all open ports associated with an open Firefox browser close when the Firefox browser is closed?
    - Does Firefox have a setting that closes all open ports when the Firefox browser is closed?
    - Does XP have a setting that will close all open ports associated with Firefox when Firefox is closed?
    - Should I have security concerns about the accumulating open ports and increased network activity when using Firefox?
    Thanks.

    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.
    See http://kb.mozillazine.org/browser.download.manager.quitBehavior
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Appletv 1st gen: how to check HDD without remote?

    i have three apple tvs which i'm trying to sell and i need to know hard drive size on them, but i don't have the remote to check.
    any ideas besides buying a new remote?

    Are they vivble in itunes under devices- if so the hard drive capcities will be lisetd.
    They came in 40GB and 160GB versions with less actual usable space due to the usual hard drive size convetions used these days.
    AC

  • How to check Java engine message port

    i need to configure nwds for that i need J2EE message port number
    i tried with 36<nr> which is not working plese guide me.

    go to http://<host>:<port>/index.html.
    Click on system information
    Enter Administrator Login ID & PW
    On top left corner u will find message port number.
    Do reward points if it helps.

  • How to Check Weather Database Is Working Perfectly

    Hi All DBA,
    I want to know wethter we have any command to know, that the database is working perfectly or its have all the logs files, table spaces index are correct. There is no falt in the database.
    SKM

    Hi,
    Like Jaffar said, run statspack is a good thing.
    To check performance, the best way consist to run statspack when your database work well, to have a baseline.
    When you think there is any problem, rerun statspack and compare with your baseline.
    Nicolas.
    Message was edited by:
    Nicolas Gasparotto

  • How to Check weather in Chracter COlumn all value is numeric?

    Hi ,
    I am using Oracle 9i ,
    I have column A with varchar2 datatype
    with numerica value like
    123454747
    ABCD123
    I would like to select only those rows wich having numerica value only.
    pls suggest some query
    UG

    Hi to get the columns with only numeric character
    sql>select <column-name> from <table-name> where length(TRANSLATE(<column-name>,'*ABCDEFGHIJKLMNOPQRSTUVWXYZ','*'))=length(<column-name>)example
    sql>create table test4(col1 varchar2(30));
    sql> insert into test4 values('123454747');
    sql> insert into test4 values('A123');
    sql>insert into test4 values('AEF45DF');
    sql>insert into test4 values('EF45DF');
    sql>select * from test4
    col1
    123454747
    ABCD123
    AEF45DF
    EF45DF
    sql>select col1 from test4 where length(TRANSLATE(upper(COL1),'*ABCDEFGHIJKLMNOPQRSTUVWXYZ','*'))=length(col1);
    col1
    123454747Edited by: oracle_for_dude on Jun 11, 2009 12:50 PM

  • How do I get the charging port cover open on my I-pad, so that I can insert the charger?

    I'm trying to connect an Ipad to a USB charger (30 pin, I believe) there is a little black plastic cover over what appears to be the charging port. How do I get this to open ?

    There is no charging port cover on the iPad. Do you have a case on your iPad? It may have a cover. If so, you'll need to consult any documentation that came with the case.

  • How to check whether a default browser is opened in the operating system?

    Hi,
    I am newbie here. During my work, I faced an interesting problem. I need to:
    - check whether a default html browser is opened;
    - check whether the browser is minimized/maximized (simply, a window's state);
    - get an url address typed in the browser.
    If any of these conditions is not met, I have to open the browser in a maximized view with a desired url address. I primarily wanted to do all this in Java, but it came to my mind that I should employ many techniques/technologies and combine them appropriately to complete the functionality. But, which ones? That's the problem. I just recalled Windows API, but I'm not sure if it is of any help... On another forum, some users suggested that I should consider JNI... At this time, I only know how to open a default browser (e.g. with use of the 'browse(URI uri)' method of the 'java.awt.Desktop' class) - that's too little to be proud of. Please give me some hints, maybe links to reasonable discussions, I would greatly appreciate any suggestions how to approach the problem.

    Crosspost! [http://www.java-forums.org/advanced-java/29583-how-check-whether-default-browser-opened-operating-system.html]

Maybe you are looking for