How to identify a port is used by which application

When I use ServerSocket to listen for request from the client, I got BindException with 'port is in use' message. Is it possible to get the process name which already using the port, if so then I can inform the user, so that he/she can decide whetehr to kill the process or just choose different port number.
Thanks for your help!!!
--KK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

hi friend
read this one
Each port is identified by a number from 1 to 65,535. Each port
can be allocated to a particular service.
For example, the HTTP service, which is used by the Web, generally runs on port 80:
we say that a web server listens on port 80 for incoming connections. SMTP or email
servers run on port 25.
Port numbers from 1 to 1023 are reserved for well-known services such as finger, FTP,
HTTP,SMTP etc.
Well Known Port Numbers (0 through 1023)
2. Registered Port Numbers (1024 through 49151)
3. Dynamic Port Numbers (49152 through 65535)
so use port no above 1024, it might solve your problem

Similar Messages

  • How to identify fonts in pdf using vc++

    Hi All,
              how to identify fonts in pdf using vc++. could you please help me out in this scenario.
    Thanks,
    Parthasarathy.S

    I believe there is a sample plugin in the SDK for doing this.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 15 Dec 2011 02:27:21 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: how to identify fonts in pdf using vc++
    how to identify fonts in pdf using vc++
    created by partha56<http://forums.adobe.com/people/partha56> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4086333#4086333

  • Urgt:How to identify TOP 5 SQL using more CPU time  without using statspack

    How to identify the TOP 5 SQL queries which are consuming more CPU time during the timespan of 24 hours for entire database. There are N number of users who have issued sql queries, out of which few users have disconnected and few user are still connected to the database(I need to consider all sessions). My database version is 9.0.1. I don't want to use statspack. Is there any way to identify TOP 5 SQL consuming more CPU time without affecting the performance of the database. Can any one help me on this? Its urgent!!. I don't want to use statspack becasue it degrades the performance and i cannot afford to run it for 24 hours.

    You don't run statspack for 24 hours, that would infact be pointless...
    Run statspack for say a 10 or 15 minute window during a particular "busy" period on your database. If you run it for longer then all the useful data will have been "averaged out". You want a snapshot in time, not an average over the day.

  • How to findout vnc port no. used by the each guest vm

    hi,
    i am using OVM 2.2.0
    how to findout vnc port no. used by the each guest vm using command line on the VM server
    thanks in advance..

    hi Avi,
    Thanks for your reply
    i tried but still no success & iam getting the following error
    [root@OVM-SERVER-1 ~]# xm list
    Name ID Mem VCPUs State Time(s)
    Domain-0 0 543 2 r----- 459.1
    test 1 300 1 r----- 13.0
    [root@OVM-SERVER-1 ~]# virsh dumpxml
    error: command 'dumpxml' requires <domain> option
    [root@OVM-SERVER-1 ~]# virsh dumpxml 1
    libvir: Remote error : No such file or directory
    libvir: warning : Failed to find the network: Is the daemon running ?
    libvir: Xen Daemon error : internal error domain information incomplete, missing kernel & bootloader
    [root@OVM-SERVER-1 ~]# virsh dumpxml test
    libvir: Remote error : No such file or directory
    libvir: warning : Failed to find the network: Is the daemon running ?
    libvir: Xen Daemon error : internal error domain information incomplete, missing kernel & bootloader

  • How to find Port numbers used by RMI application

    Hi, hope u all find me a solution, how to find port numbers used in the RMI application, that is port number which the RMI application communicates between RMIserver and RMIclient. ur answers would b highly appreciated

    Currently RMI transport layer does not directly expose any public methods to get the listening ports of the exported RMI objects, but the application can always export RMI server objects at certain designated ports instead of relying on the RMI runtime by specifying them to UnicastRemoteObjcect at the time of exporting.
    RMI transport layer try to optimize the number of listeing sockets by exporting all RMI server objects on a single port if no explicit ports were chosen. If the application is really interested in knowing the listeing ports, it can always specify the client and server socket factories to be used for creating Socket and ServerSocket to the RMI runtime at the time of exporting. When a RMI server object is exported, but the listening socket is not yet created, RMI transport layer invokes the createServerSocket(host, port) of server socket factory by passing the host and port details. If no explicit port is specified, underlying socket implementation choses anonymous port. At this point of time application can log these listeing ports to some log file.
    Similarly when the stub to the remote object is de-serialized in the client address space, it does also contain the client socket factory along with the end point details (host, port and server object ID). RMI runtime in the client address space needs to establish connection with the remote server object, it try to get the socket from client socket factory by invoking createSocket() on the client socket factory. Now the application can call getLocalPort() on the socket before returning it to the RMI transport layer.
    There is a undocumented class RMIStat to dump RMI runtime state information. It provides a lot of static methods to dump RMI state information like object table, transports, threads etc. You can download the source code of this utility from RMI archives, but remember this is not a comman-line utility, you must invoke these static methods as part of the application code.
    -- Srinath Mandalapu

  • How to identify power failure scenoria using jboss server

    Am ramesh
    Am working IPTV concept now i want to handle power failure scenoria..so please give some tips how to identify power failure using jboss
    With Regrads
    Ramesh

    Is the servlet class defined in a package.? If servlet class package is servlets., copy the servlet to
    WEB-INF/classes/servlets directory.

  • Finder message: serial port in use by another application

    After giving a print command, I had a power outage with my application open. The computer tells me I
    cannot print my document because the serial port is in use by another application. I have opened and closed each application to no avail. The printer has nothing in the cache. I suspect the power outage
    left me in limbo with the original command, but I don't know how to get out of it to print the document.
    Just so you know, I am not a computer wiz kid. I don't understand how or why anything works. I can,
    however follow instructions. Can anyone one help?

    Have you tried a Shut Down & Restart? This will close all applications.
    Haven't booted into OS 9 for a long time, but try moving Appletalk to remote under Control Panels.
     Cheers, Tom

  • How to find the Databse field used in which Transaction

    Hi,
    I have one query about:
    How to find the particular field from the Database table, used in which transaction?
    Bottomline:  I want to find the LIKP- LIFEX field, used in which Transaction. I know it is related to inbound delivery, but i couldn't find it in which transaction it is.
    Thanks in advance.
    Jai.

    Hi Jai,
    The field is called External ID which equal to LIKP-LIFEX or RV50A-VERUR_LA (structure).
    Path:
    Goto -> Header -> Administration -> External ID.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Tungsten 5 can't sync, port is used by another application message

    When I try to Hot Sync, an error message say Hot Sync can't happen, because the port is in use by another application.  Before this, I had to reset the Palm and now there is no data on it.  Help!   Lauraflavin
    Post relates to: Tungsten T5

    I'm assuming you're using a Serial port connection for your Palm, correct?
    Check your computer for anything that might be using COM1 - Fax software, modem software, even XP Media Center has an option to monitor the phone line to announce Caller ID.
    If you find something else using that port shut it down.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Palm m130 not sycing due to :" port in use by annother application"

    Can't sync m130 due to ort in use by another application. I only have one port (Com 1) and no other application is being used. In setup, the USB is checked. It was working fine and was able to Hot Sync until now.
    HELP, please!
    Stuart
    Post relates to: Palm m130

    I have the same problem; running XP home, had to reset Palm M130 and now Hot Sync won't work with this error message being thrown. Worked fine 2/01/10. Only PC change was removing McAffee and installing Norton in its place. I have COM1 and COM3 on my PC, have tried changing settings to Local COM1/Modem COM1, Local COM3/Modem COM3, and Local COM1/Modem COM3 with USB checked off, with no results. Unplugged Palm, rebooted, checked terminals, moved to different USB port as well. Downloaded latest version of Palm Desktop and Hot Sync software today... I had this problem once before for over a year, then one day *presto* I hit the Hot Sync out of habit and it performed! FYI, PC runs on cable internet through Comcast.

  • Windows NDIS filter - how to check if port is used by operating system

    Hi,
    I am writing a windows NDIS filter driver (for versions 6.0,6.2.6.3) and would like to be able to query from inside the kernel about the status of a tcp port (is it in use?).
    The function: FilterReceiveNetBufferLists is called when I receive a packet. Afterwards the tcp header of the packet is  extracted. I want to check if the destination port which I've extracted from the header is being used on the local machine. 
    Can I use WSK Network API, WFP or some other API to check if a port is being used by the operating system? and if so how do I do it?
    Thanks in advance!

    This won't be easy, but you can get the address table by sending IOCTL_TCP_QUERY_INFORMATION_EX to \Device\TCP as documented
    here. You'll need to spend some time looking at TCPIOCTL.H in the SDK, too. If you search the Internet for IOCTL_TCP_QUERY_INFORMATION_EX, you'll find some hints on how to use it.
     -Brian
    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

  • How to identify reports that are using a specific universe object?

    Any idea how to use BO Auditor or Metadata Manager to identify webi reports that are using a specific universe object or universe prompt in the report SQL?

    Hi Samuel,
    In case you are using BOXIR2 you can do this by editing the crystalenterprise.webi.xml file.
    Replace the CrystalEnterprise.Webi.xml file (Take a backup) with the edited one.                                                                               
    Path where you can find this file- Tomcat/webapps/businessobjects/enterprise115/desktoplaunch/WEB-INF/classes/META-INF/CrystalEnterprise.Webapps/ePortfolio/plugins                                                                               
    Paste the Custom Documentation folder in Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\ 
    May I know your email Id so that I can send you the edited crystalenterprise.webi.xml file.
    Regards,
    Sarbhjeet Kaur

  • How to find what port is used by a process ?

    a) How can we find out if a port, say, '1525', is used by a process ?
    How can we find out the process ID ?
    b) Given a process ID, can we find out what port(s) it is currrently
    using ?
    Any Unix commands in 2.5.1-->8 ?
    thanks.

    Hi
    The best bet for doing this is "lsof" utility that is a freeware which
    can be downloaded from http://www.sunfreeware.com.
    You can map ports to process like this...
    <PRE>
    ./lsof -i tcp:23
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
    inetd 152 root 5u inet 0xf596f638 0t0 TCP *:telnet (LISTEN)
    in.telnet 13164 root 0u inet 0xf605cc70 0t139 TCP collard:telnet->awe185-130.junk.COM:34412 (ESTABLISHED)
    in.telnet 13164 root 1u inet 0xf605cc70 0t139 TCP collard:telnet->awe185-130.junk.COM:34412 (ESTABLISHED)
    in.telnet 13164 root 2u inet 0xf605cc70 0t139 TCP collard:telnet->awe185-130.junk.COM:34412 (ESTABLISHED)
    </PRE>
    HTH
    Shridhar

  • How to identify database records without using rowid.

    Hello,
    I want to find a way to identify records uniquely in my database without the use of the rowid.
    What I want to do is the following :
    I have a table that contains images. Something like that :
    Table images (id number, image blob).
    Lets say that in this table I have scanned images of persons, invoices and orders.
    I want to be able to associate a record with different records from different tables from my ERP via an association table.
    this table could be :
    Table image_associations (imageid number, rowid_column varchar2(100))
    The "rowid_column" would contain the rowid of the row that is associated with the image.
    The problem is that the rowid is something that changes (for example after export/import).
    So I do not want to use rowid.
    Any ideas?
    Thanks

    What you are saying is you want to avoid theaccepted relational design theory and subvert the
    fundamental principles of very model?
    Yes !!!!Then you are very short sighted and will fail. Why would you want to do this? How is it that you think you are smarter than the forefathers of our industry? an idea so compelling that huge companies have many massive profits implementing the concepts? (sometimes even properly) and how is it that you imagine you can work outside the concepts underlying those tools, within the tool and come to a better solution? this is arrogance surely.
    >
    I think a lot of people use rowid to identify within
    plsql code a record instead of using the table-key.
    There is very limited specific application of the ROWID for temporary reference within known bounds.
    You shouldn't rely on the ROWID. Think about what it actually is: a physical location address hash.
    Don't use it. Just don't.
    As I can remember from my classrooms (a lot of years
    ago) rowid was never mentioned in ER models. Still
    that helps a lot..For very good reason. Rowid is an implementation concept, and not a logical concept.
    Oracle already makes provision at the physical storage level to store BLOBs out of line with a record. You don't need to try to do this at the logical level as I said already.

  • How to find service port oracle use.. for http... ftp.. ?

    Can any one tell me how to find what services ports does oracel uses for services like HTTP and FTP... ?
    Is there any commad that I can execute on SQL*PLUS console to find that ???

    Depends on the version of Oracle.
    If Oracle XE, or you are using XDB capability, you use
    SELECT dbms_xdb.gethttpport(), dbms_xdb.getftpport() from dual;
    and verify using lsnrctl status
    Otherwise you look at the Apache config files in $ORACLE_HOME/Apache/Apache/conf/httpd.*

Maybe you are looking for

  • Automatic payment program bank determination

    Dear Experts, I am setting a  automatic payment run program corresponding to FBZp in the old system. My problem comes in Bank Determination where payment methods are listed under my company code that do not belong to that company code. In every case

  • App to erase duplicate data on iphone GS?

    Hi All, While using my beloved ex Palm Tungsten C PDA I used to have an app that searched for duplicate on my handheld in address book, calendar, Notes etc... Does anybody know if there is an app that will search for "duplicate" data and then give yo

  • WebLogic 7.0 install on RedHat 7.1 failed

    Does anyone successfully install WebLogic 7.0 on Linux? I try it with the following error: [root@tiger /download]# ./weblogic700_linux.bin Extracting 0%..................................................................................................

  • Selection Profile - what is it and where is it used?

    Hi, Kindly help to explain what a selection profile is and where it is used.  (The configration is Project Systems > Structure > Operative Stucture > Milestones > Define Selection profiles. I want to understand if we still need to set this up even if

  • Olympus OMD EM5 RAW support

    I'm sure I'm being a bit premature but when could we possible see support for the Olympus OM-D EM-5?  The camera is getting in the hands of the consumer (I now have one WOOHOO) and would love to have LR support it