If port is unavailable then which service is listening on that port

hi all
I am writing one module to check 1) which ports are available in system and 2) if port is unavailable then which service is listening on that port. I want to run that module on Windows platform and also UNIX platform.
I have done first part but i am not finding way to do the second part. Is there any way in Java or any other prog language (C, C++) to do so. please share idea or code i am awaiting for response.
Thanks in advance :)
Message was edited by:
Codeword_Swan

Under Unix there is the command "fuser" to tell which process has open a given file. With -n you can tell another space like tcp for sockets. Thus:
$  fuser -n tcp 7777
here: 7777
7777/tcp:             3753
$ ps -p 3753 -f
UID        PID  PPID  C STIME TTY          TIME CMD
oracle    3753  3722  0 Aug28 ?        00:00:53 /opt/oracle/product/AS/10g/R2/webcache/bin/webcached -OPMN -U 1325072547

Similar Messages

  • Mac mail service isnt listening on default ports at all other than SMTP

    Mac mail service isnt listening on default ports at all other than SMTP.
    I can port scan locally and here is what's listening
    Port Scan has started…
    Port Scanning host: <IPADDRESS>
         Open TCP Port:     25             smtp
         Open TCP Port:     53             domain
         Open TCP Port:     80             http
         Open TCP Port:     88             kerberos
         Open TCP Port:     106            3com-tsmux
         Open TCP Port:     311            asip-webadmin
         Open TCP Port:     389            ldap
         Open TCP Port:     443            https
         Open TCP Port:     464            kpasswd
         Open TCP Port:     587            submission
         Open TCP Port:     625            dec_dlm
         Open TCP Port:     749            kerberos-adm
    Port Scan has completed…
    Mail service is on.

    first place to start is always /var/log/system.log
    stop/start mail service while watching that log.
    You will probably catch some dovecot/imap lines that will yield clues.
    Post results.

  • How do i configure telnet service to use a specific port number

    How do I configure a specific port number to the telnet service other than the default port number.  I opened /System/Library/LaunchDaemon/telnet.plist with XCode but it won't let me modify the port number.  Is there another place / item that I need to go to?

    Telnet is obsolete and insecure. Use ssh instead.

  • One weblogic instance listening to multiple ports

    I'd like to run weblogic with its http subsysten listen to port 80.
    Any other service should listen to port 7001.
    Is it really impossible to let weblogic do this?
    Are there any plans to implement such a feature?
    Which alternatives do exist?
    TIA
    klaus

    No, it is impossible.
    Alternatives: use IIS/Apache/NES to listen to port 90, and use weblogic
    plugin to proxy request to WLAS (7001).
    Still, you can use one WLAS listent to port 80, and use HttpClusterServlet
    to proxy requests to another WLAS (7001)
    Cheers - Wei
    Klaus Pittig <[email protected]> wrote in message news:[email protected]..
    I'd like to run weblogic with its http subsysten listen to port 80.
    Any other service should listen to port 7001.
    Is it really impossible to let weblogic do this?
    Are there any plans to implement such a feature?
    Which alternatives do exist?
    TIA
    klaus

  • I am using NI DAQ6508, I would to know if I can set port C upper 4 bits for input and lower 4 bits to perform output operations. I am aware that Port B and Port C have all 8 bits as input or output.

    The Daq manual indicates that port c (under mode 0) can be configured such that the nibbles can perform independently.

    Hey Sesh,
    If you refer to the Traditional NI-DAQ Function Reference Help, and then the function DIG_Prt_Config, it states, that ports 0,3,6, and 9 of the 6508 can be used as bidirectional, but only when you use handshaking. So the answer is no, you cannot configure port C with four input and four output lines.
    However, I have attached a c file that contains the function calls necessary to configure the lines separately on an E Series digital board. Feel free to try these calls out and let us know if it doesn't fail, although our KnowledgeBase says that it should.
    Justin T.
    Attachments:
    digital_ud.c ‏4 KB

  • SocketServer Listen on Multiple Ports

    What is the optimal way to have a SocketServer listen on more than one IP/port combination? I'm looking for various ways of doing this including a quick and easy way and the best-practices way.
    Thanks.

    There is no way to 'have a SocketServer listen on more than one IP/port combination'. A SocketServer can only listen at one port. You need multiple SocketServer objects, and you should use multiple threads executing accept loops.

  • I currently have a MAC Mini, which has 1 Firewire 800 port.  I have a 1TB external hard disk that runs at Firewire 400.  Can I insert another external hard drive that runs at Firewire 800?

    Here's the deal.  Currently running SL 10.6.8 on a MAC Mini.  Planning for eventual upgrade to ML.  Have a 1TB external hard drive partitioned into two volumes, one volume for Time Machine and one volume for SL which I periodically update using Superduper.  Thus I always have a point-in-time bootable backup on the external hard drive.
    The MAC Mini supports Firewire 800.  However, booting from my current external hard disk is pretty slow, since it only supports Firewire 400.  I am considering buying an Iomega MiniMax which supports Firewire 800.  Then, I would use the MiniMax as my bootable backup volume, and relegate the older hard drive to Time Machine. 
    So, question #1 is, can I daisychain the new MiniMax between the MAC Mini and my existing external hard drive?  My expectation is that the new Mini Max would run using Firewire 800 and that the existing hard drive would run at Firewire 400 speed as it does today.  If it doesn't (e.g., daisychaining in the Firewire 400 external disk with the MiniMax Firewire 800 external disk ends up running the whole leg at 400), my resolution will be to run the existing hard disk off an available USB port and have just the MiniMax running at Firewire 800.
    Why am I going to all this trouble?  That's question #2.  I don't trust upgrades; they always break something.  When I upgraded from 10.5.x to 10.6.x, the web directories got renamed, and all of my web apps 403'd until I figured out what happened.  Plus, I have accounts for other family members, and in order to ensure their ability to use the computer during my upgrade process, I need to have the ability to fall-back quickly to a known-stable version of OSX.  So what I'm trying to do is insulate myself from problems by partitioning the MiniMax into two volumes, taking a Superduper image of my current installation on the Mac Mini to MiniMax external drive volume 1, then upgrading to ML on the MAC Mini, and take a SuperDuper image of that to MiniMax external drive volume 2.  Then, if the upgrade results in problems I can't resolve immediately, I can simply reimage the MAC Mini from MiniMax volume 1.  BUT ...
    ... I've read that the ML installation creates a "service and support" partition that is different than the startup disk.  I'm concerned that I won't be able to reimage the hard disk in the MAC Mini once I upgrade it to ML because of the partitioning changes it introduces on the startup disk.  Theoretically, I +should+ be able to use the disk utility on my SL system to repartition the disk in the MAC Mini prior to reimaging it from my backup, but I'm considering the possibility that the new partition may be of a type that the SL disk utility cannot identify, and might therefore be unable to delete or even detect.  So I'm hoping someone else has been down this road and can advise me.  Even at Firewire 800 speeds, booting from an external disk is still going to be slow, so I want to be able to restore my SL image to the MAC Mini hard disk.
    A little background on me.  I work for a major disaster recovery provider.  I used to have a Mac PRO G5, which I got used, and the first thing I did with it was install a second hard disk, SuperDupe an image from the first disk to the second, and made sure I could boot from the second.  THEN I started using and customizing the MAC.  I really feel vulnerable with the MAC Mini, since it only has the single internal hard drive - sort of like going out in public dressed only in a long T-shirt.  So my whole thing is, I ABSOLUTELY MUST BE ABLE TO PUT THINGS BACK THE WAY THEY WERE before I do the migration to ML.
    Obsessive-cumpulsive?  Yep.  Anal?  You got it.  That's why I'm in the DR business.

    You may have overloaded the port, following the instructions below it should reset:
    +1. Shut down the computer.+
    +2. Disconnect all devices and all other cables, except the keyboard and mouse cable(s).+
    +3. Disconnect the computer from the power outlet and wait for 3 to 5 minutes.+
    +4. Plug the computer back in and turn it on.+
    +5. Reconnect the device(s) (one at a time if there is more than one) and test. Test with each port if you have more than one.+
    http://support.apple.com/kb/HT1317?viewlocale=en_US

  • 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

  • No Service for System SAPECC(Sender Port), Client800(R/3 system client 800)

    Hi friends,
    I am new to XI/PI I am working with IDOC to Flat file scenario I am facing the folllowing error.
    No Service for System SAPECC(Sender Port), Client800(R/3 system client 800) in integration Directory.
    can any one tell what was the reason for this error.
    Thanks in Advance,
    Ravi Yasoda.

    Hi Ravi,
    Have you imported the Business System in Integration Directory?
    Check whether  you see the logical system name in adapter specific identifiers or not...
    Also check from integration directory that cache notification was done and also check SXI_CACHE in the abap stack.
    See this thread...
    No service for system SAP***, client 001 in Integration Directory
    Please go through below content from sap note  for your issue...
    Error message: No service for system SAPABC client 123 in the integration directory
    Solution:
    You send IDocs from system ABC to XI. In the control record of the IDoc,the SNDPOR field contains the value "SAPABC". The client of the sending system is determined by the MANDT field of the control record. The system ID and client are then used to determine a service without party of the
    type (business-system/business-service):
    Business system
    -> Activities in the System Landscape Directory (SLD)(Create technical
    system):
    Create a technical system for system ABC in the SLD, and create the client for this. Do not forget to assign an "ALE logical system" (for example, "ABCCLNT123") to this technical system.
    SLD (Business system):
    You can now explicitly assign a business system to this client. For more details, refer to the SLD documentation.
    Activities in system ABC (self-registration in the SLD):
    Alternatively, you can register the system in the SLD in system ABC with Transaction RZ70. You will find detailed information about the SLD registration of systems on the SAP Service Marketplace for the
    "Exchange Infrastructure" in the document "Exchange_Installation_Guide.pdf".
    In system ABC, you can check your configuration with Transaction SLDCHECK.
    Activities in Integration Directory (import business system from SLD):
    You will find the business systems under Services Without Party in the Integration Services. In the Service menu, you will find the system identifiers, the client, and the corresponding ALE logical
    system under "Objects"->"Adapter-specific identifiers". Use the Import/Update button to copy the data from the SLD, to create business systems, or to update their identifiers.
    Business service
    -> Activities in the Integration Builder directory:
    You want to create a service without party that is not part of your system infrastructure and is therefore not maintained in the SLD. In the Integration Builder directory, you will find the "Business-Services" under Services Without Party. In the Service menu, you will find the system identifiers, the client, and the corresponding ALE logical system under "Objects"->"Adapter-specific
    identifiers".
    Activate the change list in Integration Directory.
    In system ABC, you can restart the incorrect entry from Transaction SM58 .
    Regds,
    Pinangshuk.

  • Will someone please help me set-up Acrobat to send a PDF via webmail?  Acrobat returns a message "Server Connection Error .... Port 143 unavailable"

    Will someone please help me set-up Acrobat to send a PDF via webmail?  Acrobat returns a message "Server Connection Error .... Port 143 unavailable"

    Are you using a Microsoft or Apache web server? If so, you can submit to a server-side script, which will bypass web mail and client-side email software such as OUTLOOK.
    For examples:
    http://www.nk-inc.com/software/pdfemail.net/examples/

  • How do I set up Mozilla to accept connections on port "The World Wide Web service (HTTP)"?

    When attempting to embed a video in PowerPoint 2013, the message "Sorry we are having some temporary service issues" appears.
    In researching the problem at Microsoft. com, the following message was received: Mozilla is not set up to accept connections on port "The World Wide Web service (HTTP)."

    Hmm... PowerPoint should use Windows to connect to the internet and not Firefox.
    Which method are you using?
    (1) Insert > Video > Online Video
    Apparently there was an update this month that enables this, as described in this support post (see top Answer just after the question): [http://answers.microsoft.com/en-us/office/forum/office_2013_release-powerpoint/embedding-online-you-tube-video-in-powerpoint-2013/0bc00dde-420c-4c6a-bd47-3fb105ce40fc Embedding online you tube video in powerpoint 2013 - Microsoft Community]
    Here's how it should work after the update: [http://office.microsoft.com/en-us/powerpoint-help/insert-or-link-to-a-video-on-youtube-HA104192855.aspx Insert or link to a video on YouTube - PowerPoint]
    (2) Developer > More Controls > Shockwave Flash Object
    As documented on other sites, such as: https://www2.palomar.edu/pages/atrc/2013/09/17/how-to-embed-youtube-video-in-powerpoint-2013/

  • I want the t code to see the against which service order payment was done ?

    i want the t code to see the against which service order payment was done ?

    you can use ME2S, but if not what you are looking for then ask ABAP to develop a customized report for service orders only for whom payment is done.
    regards,
    qsm sap

  • Which service packs are the eqivalent as the Windows 7 version for W2003?

    Thank you for your response to "Crystal Reports XI Release 2 .Net 2005 Server Compatability":
    Crystal Reports XI Release 2 .Net 2005 Server Compatability
    I did try the Service Pack update for Windows 7 and it worked and resolved the error -- Thank you!
    Several Service Pack links and instructions were provided for Windows Server 2008 R2 64-Bit.
    I have not as yet tried them, but I did leave out a question:
    The best practice to to use the same version of any software on all platforms:  development, test and production.
    Since it will be requried to use the Service Pack version for Windows 7 and we are currently on Windows Server 2003 32-Bit  for development and production, which service packs are the eqivalent as the Windows 7 version for Windows Server 2003 32 Bit?
    We currently use NO service pack version of Crystal Reports XI Release 2 .Net 2005 Server on these Windows 2003 Server 32-Bit web servers -- what is the equivalent version which matches the Windows 7 version? -- so that all platforms are using the same version of Crystal Reports XI Release 2 .Net 2005 Server?
    Appreciate all of your help.....Dave

    If I understand the question then the best way to approach this is to ensure that any and all versions of what ever OS you deploy to have the latest runtime:
    https://smpdl.sap-ag.de/~sapidp/012002523100000634042010E/crxir2sp6_net_mm.zip
    https://smpdl.sap-ag.de/~sapidp/012002523100000633302010E/crxir2sp6_net_si.zip
    These will work on WIN2003, Win2008, Win7, XP, etc., etc.
    - Ludek

  • I have had IPhones since their inception.  Last phone was the 5.  A few months ago, I upgraded to the 6 Plus. Here is my issue. On my 5, my car radio (which has USB port) allowed me to plug in and listen to radio or music from my phone and the bonus

    I have had IPhones since their inception.  Last phone was the 5.  A few months ago, I upgraded to the 6 Plus.
    Here is my issue.
    On my 5, my car radio (which has USB port) allowed me to plug in and listen to radio or music from my phone and the bonus was it charged the phone as well. All worked great.
    Now with the 6 Plus, neither of things work.  The message on the radio (Kenwood) says I Pod error.  The message on my phone say's "this device is supported".
    I have called on this before and was told you are aware and that the issue will be addressed in a future update.  There have been several updates on IOS 8 and the issue remains.

    I have a Kenwood KDC-X695. When I purchased this stereo and had it installed, I had an ATT iPhone 4.
    It worked with the stereo, but had a few issues. I had purchased a few audio books that I would listen to while driving. When I plugged it in it would immediately begin to play the book from the beginning or if I had been listening to music, it would start playing the song that was at the top of the song list.
    The stereo came equipped with Firmware version 3.05. I upgraded to the iPhone 5 a year later. I had that phone for approximately 2 years. The song or book issue remained the same.
    I just recently upgraded to the iPhone 6 and the Bluetooth function still works, however the USB port on the stereo that the phone plugs into to allow files on the phone to play through the stereo no longer works.
    I contacted the service provider (Verizon) and after speaking to several different technical support technicians, they provided me the phone numbers for Kenwood and Apple because they were unable to help me.
    I spoke with Kenwood technical support the following day and after a few fumbling miscues from the technical advisor, it was suggested that I upgrade the firmware, even though the Kenwood literature warns against this if the Bluetooth portion is working, because if there is a problem with the upgrade, it can render the Bluetooth useless and non-functional. The advisor did suggest the latest firmware on the second or third attempt, after I pointed out what I was able to glean from my initial search.
    Later that day, I went back to the Kenwood site (from their homepage) and by using their selection tools, discovered that this particular model was only ever intended to be used with the iPhone 4S (the technical advisor was not aware of this, even though I mentioned this during my phone call earlier in the day). According to the Firmware selection tool, my iPhone 5 should not have worked with it.
    I performed the Firmware upgrade, and it took 13 minutes. This was less than the 15 minutes that was forecast in the Kenwood literature. The Bluetooth still works but the USB cable connection still causes the unsupported device message that I received prior to the upgrade. I am incredibly annoyed and disappointed.
    By upgrading to the iPhone 6, I have three choices; (1) only use the Bluetooth for phone calls without the ability to play other files from my iPhone 6 (2) forced obsolescence of my stereo, requires buying a new stereo (3) return my iPhone 6 and go back to my iPhone 5.
    I do not believe that I should have to be a software/Firmware/hardware engineer, vetting every single device that I own; prior to upgrading a cell phone.
    I am incredibly annoyed with Apple at the moment.
    I have a separate Bluetooth headset that worked with both my iPhone 4 and iPhone 5 that the iPhone 6 simply does not recognize. That is another story for another time.
    Currently, I am incredibly underwhelmed with Apple.

  • Verify correct port in javascript for wcf service

    down votefavorite
    I have 10 different port number in for loop in my javascript, and wcf service is hosted on one of port number from listed 10 ports.
    Is there any way i can check by using loop, on which port number my service responses just fine without any error in javascript using ajax json.
    Here I have sample code but I want to check this for 10 diff port number:
    <script type = "text/javascript">
    $("#search").live("click", function ()
    var link = document.createElement('a');
    link.setAttribute('href', 'http://localhost:55154/Services/Service.svc/GetCustomers');
    alert(link.port);
    $.ajax({
    type: "POST",
    contentType: "application/json; charset=utf-8",
    url: 'http://localhost:55154/Services/Service.svc/GetCustomers',
    data: '{"prefix": "' + $("#prefix").val() + '"}',
    processData: false,
    dataType: "json",
    success: function (response)
    alert(response);
    //var customers = eval(response.d);
    //var html = "";
    //$.each(customers, function () {
    // html += "<span>Name: " + this.Name + " Id: " + this.Id + "</span><br />";
    //$("#results").html(html == "" ? "No results" : html);
    error: function (a, b, c) {
    alert(a.responseText);
    </script>

    Hello,
    >is there a specific port number I cannot use?
    NO, there is no such port num. You can use any port number for your site and WCF service.
    >Is there a way to find the port number of the Site URL
    You can find port from central admin.
    http://msdn.microsoft.com/en-in/library/hh167832%28v=nav.70%29.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Double click issue on loading.

    Hi guys.  My website has been up and running brillianty, but I have just noticed something.  I have my navigation bar at the top of the page.  To load things, I do var myMovieClip = new contact_mc(); var myMovieClip2 = new aboutUs_mc(); var myMovieCl

  • Crystal Reports Sort Bindings

    I saw a post here regarding problems with sorting and I am having what I believe is a slightly different issue (or maybe not understanding the question). Anyway, I created a report in Crystal Reports 2008.  When I did so, I added sort bindings to a c

  • Creating a hero photo slider using jquery but the nav bar sub menus go behind the hero div tag

    Dropbox - Butler Lawyers Hello Everyone I m designing a site with a hero photo slider using jquery. My problem is, the nav bar submenus are going behind the photo slider  so you can't see the  Legal Services tab sub menus. I have provided a dropbox l

  • How to disable loading of jsp object  tag everytime

    Hi, We have loaded pdf image using applet viewer in JSP object. paneltabbed->showdetailitem->verbatim->object. Above is the flow of tags involved. Everytime i change the tab and come back to above tab, jsp object reloads. How do I restrict it not to

  • Form scripts don't work on Ipad Adobe Reader?

    Greetings - I have created a form in which some fields change colors, pop up alerts occur, etc. This works fine on any PC, but on the Ipad some of these functions don't work. Is there a known workaround? Do I need different scripts for Mac? Thank you