How to know Active or open ports on a system

How to know he open ports on a system.
N e idea.
regards,
Rajesh Vincent.

Using the Java Communications API you can use the static method CommPortIdentifier.getPortIdentifiers to enumerate the available ports on the system, like:
Enumeration ports = CommPortIdentifier.getPortIdentifiers();
while (ports.hasMoreElements()) {
  CommPortIdentifier port = (CommPortIdentifier) ports.nextElement();
  switch (port.getPortType()) {
    case CommPortIdentifier.PORT_PARALLEL:
      // it's a parallel port (called port.getName())
      break;
    case CommPortIdentifier.PORT_SERIAL:
      // it's a serial port (called port.getName())
      break;
    default: 
      // WTF?
      break;
}To know whether you can open the port I think you can use the isCurrentlyOwned() method. To open the port use the open(java.lang.String appname, int timeout) method (you'll get a PortInUseException if the port is already in use)

Similar Messages

  • How to know form is open or not or not in sap

    How to know form is open or not or not in sap

    Hi
    There is no such functionality where you can check that whether the form is open or not. you can only get the information of active form
    if u want to get the information that form is open or not you have to code by yourself like declare a object of each form on the form load event set the value of that object and on form close event set the value of object to nothing. then you can check that if form object has some value then form is open else form is close.
    Hope i clear the point.
    Regards
    Rupinder

  • How to know active user in Ad ? & how many days from not use user id ?

    How to know active user in Ad ? & how many days from not use user id ?
    Thanks & Regards, Amol . Amol Dhaygude

    Hi Amol,
    You can use the below command from the command prompt of DC to get all the AD users who are inactive for last
    X weeks,
                                    dsquery
    user -inactive X 
    To extract the inactive user information to a CSV file use the below command,
                   dsquery user -inactive X > c:\TestFolder\InactiveUsers.csv
    NOTE: The value
    X represents number of weeks, for example if your requirement is to find the inactive users for last 90 days then the
    X value should be 13.
    Regards,
    Gopi
    JiJi Technologies

  • How to know jspx is open inside a Dialog window

    Hi,
    How to know the jspx is opened inside a ADF Dialog window from the custom javax.faces.event.PhaseListener.
    thanks,
    Lahiru.

    ok, i found it.. myList.dataGroup.contentMouseY
    Thx
    Max

  • How to know active sessions logged in by same database users

    This is 10g. I need to query list of DB users who have logged in using the same database user accounts. How can I achieve this? This is on 10g and 9i

    Hello,
    You may enable audit. Then, with the following query you may get the list of User who logged on the same Oracle User account:
    select username, os_username, userhost, terminal, timestamp, action_name
    from dba_audit_trail
    where action_name in ('LOGON','LOGOFF')
    order by username;Please, find below a link about audit:
    http://www.oracle-base.com/articles/10g/Auditing_10gR2.php
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to know the which add-ons my sap system Have

    AS per Note 1318299 - SAP Enhancement Package 5 for SAP ERP 6.0:Compatible Add-ons
    Symptom
    You plan to run SAP enhancement package 5 for SAP ERP 6.0 together with an Add-On on the same system. Which points do you need to consider?
    Other terms
    AddOn; add-on; Enhancement Package; compatibility;
    Solution
    In general, please check whether your Add-On supplier has released your specific Add-On for usage with SAP enhancement package 5 for SAP ERP 6.0.
    If you have a solution categorized as '(Standard) Custom Development' for your ERP system, please contact SAP Custom Development at least three months before implementing SAP enhancement package 5 for ERP 6.0, because sufficient time might be required in case of adjustments.
    If you find the add-on you are looking for neither in the list below nor in the related notes, please contact SAP Support (for SAP Products) or the specific partner (non SAP-Products).
    Then my question is, how can i find, the add-ons present in my windows/oracle ECC 6.0 installation.

    HI
    All componets are add-on installed in your system. If you want select according technical usages in mantienance optimazer for EHP5 see sap  Note 1324838 - Enhancement package 5 for SAP ERP 6.0: Required SWC
    In the attachments you found a table with Technical usages - add on.
    When you select your technical usages then appear add-on that will be upgrade.
    Regards
    William Neira

  • How to know that sd module in our bw systems is solving the purpose

    hi all,
    I have to make AS-IS document for the current BW implemented SD module.
    How to check redundency in the implemented infoproviders.
    How i can make SD infoproviders make more effective.
    Any document will definetly help us.
    Mail to me at [email protected]
    Pleae Reply ASAP.

    Either thats a typo or you want something likeURL url = new URL("http://www.intenet.com/");
    URLConnection connection = url.openConnection());http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html#openConnection()

  • How i know my mac is 2012

    Hi I recently buyed my first mac!! Im really lost in this system but every day learning new things!
    I wanted to confirm if my Mac is really 2012? How i know if im runnig the new Lion system?
    Sometimes I open my finder and under shared is a computer name...what does this mean and if there is any way to block it?!
    Thanks for the help

    To determine the version of OS X select About This Mac from the Apple menu,
    Which will result in this dialog:
    To determine what model you actually have open System Information in the Utilities folder. You will see displayed a Model Identifier:
    If your Model Identifier is greater than MacBook Pro 8,3 then you have the newest model. For example, it may show 9,1 or better.
    <Image Edited By Host>

  • How to know if I need DVD-R or DVD+R? What's the difference?

    Attempting to put photos and videos onto DVD's to play on TV and when I was at the store to buy the DVD's I was confronted with whether I need - or + ? I can't find anyone who knows what the difference? Not even the person at the store where I was trying to buy them could tell me? I'm assuming if I purchase the wrong ones, I will probably have some difficulty.
    Can anyone fill me in on what the plus and minus mean and how to know which ones I need for my system?
    Thanks a bunch!
    Donna

    DD, welcome to the forum.
    Here is a guide that will help you understand the differences in DVD -R & +R.  The standard wisdom is that the +R discs are more compatible with all DVD players.  The author of the guide goes into good detail about the differences.  I personally buy +R whenever possible.  This means if they are cheaper or the same price as - (dash) R.
    Please let us know if this solves your problem or not.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Don't know how to open ports

    Hello.
    Could someone please tell me how to open ports on my LinkSys WRV200 Wireless-G VPN Router.
    Thank you.

    Open up internet explorer. On the address bar type the numbers 192.168.1.1 (username is admin, password is admin as well). Go to the Firewall tab. Depending on what kind of port opening you want, you either click on the Port Triggering or Port Forwarding subtab.
    If you are hosting a certain program or application, use port forwarding. If you are just simply trying to use and access it, use port triggering.

  • How to know which master data objects need to activated  in R3

    SALES OVERVIEW CUBE -0SD_C03
    How to know which master data objects need to activated from delivery version to active version in R/3 for a particular standard cube like 0SD_C03.
    its very urgent please advise.
    R/3 in RSA5
    Sales Master Data
    0ACCNT_ASGN_TEXT               Account assignment group for this customer   
    0ACCNT_GRP_TEXT                Customer account group                       
    0BILBLK_DL_TEXT                Locked                                       
    0BILBLK_ITM_TEXT               Billing block for item                       
    0BILL_BLOCK_TEXT               Billing block in SD document                 
    0BILL_CAT_TEXT                 Billing Category                             
    0BILL_RELEV_TEXT               Relevant for Billing                         
    0BILL_RULE_TEXT                Billing rule                                 
    0BILL_TYPE_TEXT                Billing Type                                 
    0CONSUMER_ATTR                 Consumer                                     
    0CONSUMER_LKLS_HIER            Consumer                                     
    0CONSUMER_TEXT                 Consumer                                     
    0CUST_CLASS_TEXT               Customer Classification                      
    0CUST_GROUP_TEXT               Customer Group                               
    0CUST_GRP1_TEXT                Customer Group 1                             
    0CUST_GRP2_TEXT                Customer Group 2                             
    0CUST_GRP3_TEXT                Customer Group 3                             
    0CUST_GRP4_TEXT                Customer Group 4                             
    0CUST_GRP5_TEXT                Customer Group 5                             
    0DEALTYPE_TEXT                 Sales Deal Type                              
    0DEL_BLOCK_TEXT                Delivery block (document header)             
    0DEL_TYPE_TEXT                 Delivery Type                                
    0DISTR_CHAN_TEXT               Distribution Channel                         
    0DIVISION_TEXT                 Division                                     
    0DLV_BLOCK_TEXT                Schedule line blocked for delivery           
    0DOC_CATEG_TEXT                SD Document Category                         
    0DOC_TYPE_TEXT                 Sales Document Type                          
    0INCOTERMS_TEXT                Incoterms (Part 1)                           
    0INDUSTRY_TEXT                 Industry keys                                
    0IND_CODE_3_TEXT               Industry code 3                              
    0IND_CODE_4_TEXT               Industry code 4                              
    0IND_CODE_5_TEXT               Industry code 5                              
    0IND_CODE_TEXT                 Industry code                                
    0ITEM_CATEG_TEXT               Sales document item category                 
    0ITM_TYPE_TEXT                 FS item type                                 
    0KHERK_TEXT                    Condition Origin                             
    0MATL_GRP_1_TEXT               Material Group1                                         
    0MATL_GRP_2_TEXT               Material Group 2                                         
    0MATL_GRP_3_TEXT               Material Group 3                                         
    0MATL_GRP_4_TEXT               Material Group 4                                         
    0MATL_GRP_5_TEXT               Material Group 5                                         
    0MATL_TYPE_TEXT                Material Type                                            
    0MAT_STGRP_TEXT                Material statistics group                                
    0NIELSEN_ID_TEXT               Nielsen ID                                               
    0ORD_REASON_TEXT               Order reason (reason for the business transaction)       
    0PICK_INDC_TEXT                Indicator for picking control                            
    0PRODCAT_TEXT                  Product Catalog Number                                   
    0PROD_HIER_TEXT                Product Hierarchy                                        
    0PROMOTION_ATTR                Promotion                                                
    0PROMOTION_TEXT                Promotion                                                
    0PROMOTYPE_TEXT                Promotion Type                                           
    0PROV_GROUP_TEXT               Commission Group                                         
    0REASON_REJ_TEXT               Reason for rejection of quotations and sales orders      
    0REBATE_GRP_TEXT               Volume rebate group                                      
    0RECIPCNTRY_TEXT               Destination country                                      
    0ROUTE_TEXT                          Route                                                    
    0SALESDEAL_ATTR                Sales deal                                               
    0SALESDEAL_TEXT                Sales deal                                               
    0SALESORG_ATTR                 Sales organization                                       
    0SALESORG_TEXT                 Sales Organization                                       
    0SALES_DIST_TEXT               Sales district                                           
    0SALES_GRP_TEXT                Sales Group                                              
    0SALES_OFF_TEXT                Sales Office                                             
    0SCHD_CATEG_TEXT               Schedule line category                                   
    0SHIP_POINT_TEXT               Shipping point/receiving point  
    In BW
    Base Unit of Measure     0BASE_UOM
    Bill-to party                    0BILLTOPRTY
    Calendar Day                  0CALDAY
    Calendar Year/Month      0CALMONTH
    Calendar Year/Week      0CALWEEK
    Change Run ID              0CHNGID
    Company code              0COMP_CODE  
    Cost in statistics currency          0COST_VAL_S
    Credit/debit posting (C/D)            0DEB_CRED
    Distribution Channel       0DISTR_CHAN
    Division                                     0DIVISION 
    Number of documents    0DOCUMENTS
    Sales Document Category          0DOC_CATEG
    Document category /Quotation/Order/Delivery/Invoice 0DOC_CLASS
    Number of Document Items         0DOC_ITEMS
    Fiscal year / period
    Fiscal year variant                      0FISCVARNT
    Gross weight in kilograms           0GR_WT_KG
    Number of Employees    0HDCNT_LAST
    Material                                     0MATERIAL
    Net value in statistics currency    0NET_VAL_S
    Net weight in kilograms 0NT_WT_KG
    Open orders quantity in base unit of measure 0OPORDQTYBM
    Net value of open orders in statistics currency 0OPORDVALSC
    Payer                            0PAYER
    Plant                             0PLANT
    Quantity in base units of measure 0QUANT_B
    Record type                   0RECORDTP
    Request ID                    0REQUID
    Sales Employee            0SALESEMPLY
    Sales Organization         0SALESORG
    Sales group                   0SALES_GRP
    Sales Office                   0SALES_OFF
    Shipping point                0SHIP_POINT
    Ship-To Party                0SHIP_TO
    Sold-to party                  0SOLD_TO
    Statistics Currency                    0STAT_CURR
    In R3 RSA5 we have all the Master data data sources as mentioned above, and BW also. How to find the related Master data Infosource in R/3 Master data Data sources.
    Thanks in advance,
       Bhima.
    Message was edited by: Bhima Chandra Sekhar Guntla

    Hi,
    <i>How to know which master data objects need to activated from delivery version to active version in R/3 for a particular standard cube like 0SD_C03.</i>
    I think, you are looking for master data sources(text,attributes,hier).Am i right?
    If so, This cube has almost all SD master data characterstics. So you can activate all the all master data datasources of SD in r/3 (SD-IO).
    Any way you requirement does not stop only by using this cube . You will activate all other cubes in SD also. So if you want to activate only needed master data datasources when you are activating a cube, the job becomes senseless. There is no problem(wrong) in activating all master data available under that application , even though you want to activate only one cube.
    With rgds,
    Anil Kumar Sharma .P

  • I have a dvr and I want to monitor from my phone.  this worked when I had a Belkin router that let me open ports.  I use "canyouseeme" and it can't see 80, 9000 or 1025. How do I make them available?

    I have a Lorex DVR that I want to monitor from my IPhone and IPad.  I used to be able to do this when I had a Belkin router (easy to open ports) but I bought the AirPort Extreme router and no longer have that capability.  When I use "canyouseeme" they can NOT see 80, 9000 or 1025.  Lorex says I need them all available in order to access.  Help!  And all the help I see refers to a earlier version of the AirPort Utility so I cant use those to look at anything, I cant find the same screens, I have version 6.1 (610.31).  I also don't really understand how ports work, so I need a pretty basic explanation.

    Well...I went to the modem (Westell, WireSpeed), found the NAT settings, once again, I'm WAY over my head, I am assuming this is a TCP connection (as opposed to a UDP) and per Lorex my mobile devices will use port 1025.  So I gave it a "global port range" of 1-10 and I indicated that the "base host port" was 80, 1025, & 9000 (ports 1,2,3).  When I selected the 'enable' it asked for a "host devise" my choices are my IPhone, IMac and the IP address for the dvr, so I choose the dvr.  I still cannot connect and canyouseeme still can NOT find these open ports.  This is taking up my whole day! I don't know how people figure this stuff out.

  • How do I open ports in Norton Security by Comcast?

    How do I open ports in Norton Security by Comcast?

    You should ask them or find a forum relating to Norton Security. There's a chance someone here may know but this forum is for Apple TV so you may not get the help you need.

  • How to open ports 119 and 443 in my Mac?

    I've been trying to use the UseNeXT software with my Mac with no success. I called their support and they told me I need to open the ports 119 and 443. I contact Apple support and they told me that is beyond their scope (???).
    Can somebody help me with that? I tried to find it online, but all tutorials that i tried didn't work or are outdated.
    Thanks

    Hi Drew,
    It probably depends on the router as to the method used to open the ports.
    As I have said elsewhere in the thread the first 1024 ports are open in most router to allow things to work Out of the Box such as Mail (110, 25, 567, 569, 995, 996 and many more ) and web Browsing (port 80 mostly but secure site can use 443) FTP (21 and 22) to name some.
    Port Forwarding is one way to open some of the ports for One IP (computer).
    Most routers have  table for doing this and this can be limited as to the number of ports included.
    This Linksys pic shows how to do it for some as it allows groups based on Start and end ports. However it restricts it to one IP
    DMZ is a form of Extreme Port Forwarding that opens all 65535 ports to one IP (Computer)
    In both the above cases other computers (IP addresses) are excluded from using the ports.
    Port Triggering doe allow multiple computers to access the same Port but requires that you know the lead  - Trigger - port involved for each app.
    It is limited by the table size for your particular router.
    Same Router in Trigger ports for iChat 3
    Most router come with UPnP nowadays.
    It is an ON/Off setting that allows the apps on the computer to say which ports are needed and when.
    On some you can reduce the time to live  and the Hop amounts.
    The ports stay open from a period of normally 30 mins after non use.
    This can be changed.
    It also tends to list the number of Hops (the number of devices beyond the UPnP device) that it can be heard.
    My Sky Hub
    I have no other router on my network but I do sometimes use Internet Sharing between two computers hence the 2 Hops.
    Every other device is only one Hop away from the the router.
    There are concerns that the "Advertisement" is seen upstream (internet side) as well as device downstream.
    The Concern is that this could be Up to your ISP and then down to the "next" IP end user on the particular router/server at the ISP end.
    I have seen no evidence of this being the case.
    Hope this helps.
    8:45 pm      Monday; May 5, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Open ports slow down my internet connection. How to close them? What to do?

    My MacBook Pro has massive problems with internet connectivity. At times the connection is blazingly fast, at times unbelievably slow.
    I've spoken to my internet provider who was able to inform me that my computer opens up 500-700 ports which is probably what's slowing down the network connectivity. When I'm online with the MacBook Pro, the web gets unstable – also for other connected devices like iPad etc.
    The web supporter asked me to run an anti-virus scan which I did – with no results. The problem persists. When my MacBook Pro is not online, there are approximately 15 ports open, when I log on the web that number increases to between 500 and 700.
    Is this normal?
    Can anyone tell me how to solve this issue?
    How do I figure out which application opens these ports? (and how to close them?)
    I tried logging into another user account on the computer and the problem seemed to disappear, indicating that it is caused by something run only on my user account.
    Hope someone can help me..

    Open ports don't slow down your computer. The tech support person you spoke to doesn't know what they are talking about.
    Basically, when you are using a web browser, opening a page means that the browser needs to open a connection for each element in the page (e.g., it needs to grab each picture, CSS, and JavaScript file that the page requires). This could be a couple of dozen, or it could be hundreds (and there's no telling what Flash content on the page will do). The browser tries to mitigate things a bit using a cache (you might check to make sure the cache is turned on, but this is the default setting). However, this is how all browsers work and how the whole system is designed to operate. You cannot "close" any ports, and they don't linger open, they remain open only as long as data is being transferred. This is expected and appropriate behavior.
    The most likely culprit is that you are receiving poor DNS service from your service provider. Every time the computer sees an address like 'http://www.google.com', it needs to send out a request to figure out what numerical address goes with the human-readable name. If the DNS service your system is assigned to use doesn't respond lightning-quick, your experience is going to be very sluggish.
    You might want to add an external DNS service to your list of DNS providers. Go to System Preferences > Network, select the network you are using on the left (Ethernet or AirPort), and click the 'Advanced' button. Click on the 'DNS' tab, then press the '+' button under the left panel. I would add the OpenDNS.com DNS servers. Add the following DNS addresses:
    {quote}
    208.67.222.222
    208.67.220.220
    {quote}
    Click the 'OK' button. And then the 'Apply' button to save the changes.
    That will probably fix the problem. If it doesn't the next most likely issue is either network congestion (e.g., your ISP's network is just too busy; a very common thing for small ISPs and cable Internet service), or the remote site that you are trying to contact is simply not performing so well.

Maybe you are looking for

  • Problem in changing business area in asset master record - urgent

    I am facing this problem while trying to change the cost center of an asset to another cost center belonging to a different business area.  We are on ECC 6.0.  I have activated time independent management of organizational units for my company code,

  • Safari 5.0.2 keeps crashing one site

    It is a site I use to submit reports for work.  I can usually submit 2 reports after starting or restarting, then it will crash repeatedly until I restsrt again. Here is the latest crash log Process:         Safari [3537] Path:            /Applicatio

  • Business vs. Private purchase - how are App updates handled?

    Hi, I have my own business, but already purchased a few apps for private use on my Mac. Now I need to make a business purchase and I'm wondering how the App Store handles this. If I switch accounts, can I still see, run, and update the same apps? Do

  • Itunes download error 1905.

    I was trying to upgrade to itunes 7.0 and received this message. Error1905.Module c:\Program Files\Quick Time \ QTOControl.dll.failed to unregister.HResult -2147220472 Contact your support group.

  • 10.2 Breaks FCPX

    Beware of 10.2.  I installed it and now the Inspector is broken. No parameters show up. And Importing doesn't work.  On both my Macs.   I spent two hours on the phone with a senior Apple FCPX tech and he couldn't help.  We did everything.  Including