Command to release Port number

Hi,
Can anyone help me a command to release the Port Number from the command line.
Bikash

If don't want to (can't) wait for port to be freed up gracefully, you can use lsof and netstat to identify the process using the port. Then you can decide whether or not you want to kill the pid of the process using the port. Please note that this is a brute-force method of freeing up the port and it can result in unstable system operation. Be sure it is safe to kill the process using the port you want to free up. You can get lsof at sunfreeware.com

Similar Messages

  • Port number for ReportClientDocument

    Hi
    While specifying the report app server in ReportClientDocument we specify only the host name/ip. We do not specify the port. Which is the port that is being used to connect and establish the link to the RAS ?
    Eg: We only do
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc .setReportAppServer("192.168.100.101");
    So how can we specify the port ? It works without specifying (by taking a default), but I would like to know if there is a way to find which is the port and if we can override it ?
    Thanks
    Sreejith

    You're using "Unmanaged Reporting" using the Report Application Server (RAS).
    The listener port number is specified on the RAS server via the command-line option -ipport <port>, i.e., to specify the port number 2340, stop the RAS server using the CCM and add the following to the command-line:
    -ipport 2340
    Then in code you'd specify the port via the URI:
    reportClientDoc .setReportAppServer("myhostname:2340");
    For XI Release 2 and previous on Microsoft Windows installations, both the RAS server and the SDK uses default port 1566.  However, this is not so for Unix installations, or for both Windows and Unix installations with XI 3.0 and above, so the recommendation is to explicitly specify the -ipport and specify the port in code.
    Sincerely,
    Ted Ueda

  • How to find out the http port number

    Hi gurus,
    Please help me find out what the http port number for the XML DB repository on the database server is. I tried the default 8080 and got an error saying it is no longer valid. I re-installed the database a couple of times and I don't remember that I had to enter a new port number.
    Thanks.
    Ben

    SQL*Plus: Release 11.1.0.2.0 - Beta on Sun Nov 12 21:33:33 2006
    Copyright (c) 1982, 2006, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.2.0 - Beta
    With the Partitioning, OLAP and Data Mining options
    SQL> select dbms_xdb.getHttpPort(), dbms_xdb.getFtpPort() from dual;
    DBMS_XDB.GETHTTPPORT() DBMS_XDB.GETFTPPORT()
                      8080                  2100
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.2.0 - Beta
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\Mark D Drake>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.1.0.1.0 - Beta on 12-NOV-2006 21:34:00
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.1.0.1.0 - Beta
    Start Date                11-NOV-2006 06:49:03
    Uptime                    1 days 14 hr. 44 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   c:\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Listener Log File         c:\oracle\product\11.1.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mdrake-lap)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mdrake-lap)(PORT=8080))(Presentation=HTTP)(Session
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mdrake-lap)(PORT=2100))(Presentation=FTP)(Session=
    Services Summary...
    Service "ORA11GR1.xp.mark.drake.oracle.com" has 1 instance(s).
      Instance "ora11gr1", status READY, has 1 handler(s) for this service...
    Service "ORA11GR1XDB.xp.mark.drake.oracle.com" has 1 instance(s).
      Instance "ora11gr1", status READY, has 1 handler(s) for this service...
    Service "ORA11GR1_XPT.xp.mark.drake.oracle.com" has 1 instance(s).
      Instance "ora11gr1", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Mark D Drake>If SQL statment shows port numbers are 0 this means protocol is disabled and will not show in lnsrctl output

  • Select Listener Port Number from which_table?

    I'm writing a SQL script that, among other things, disconnects from Oracle and then reconnects to the same instance as a different user. I'm able to query v$database and v$instance to get most of the information I need (host, service name, etc) for the reconnect part. The only part I'm missing is the listener port number. I could hard code it to 1521, but that isn't very flexible. Currently, I'm prompting the user (which is normally me) for the listener port number in the SQL script, but that just seems a little bit lame. So my question is this: is there a view or table somewhere in the sys schema that I could use to view the listener configuration? I'm mostly working with 10gR2+ databases.

    cleavitt wrote:
    That is possible, but it needs to be a standard Oracle configuration if the script is to remain generic and portable. The script is actually working fine as-is. I was just trying to go the extra mile and determine the port number automatically. I could also prompt for a TNSNames entry as suggested by others, but I don't always have an entry defined for all of the Oracle instances in my company on every workstation that I work from.
    Here is the script for anyone that is interested. It started out as a script that I found online, but the original did not work with 11g case-sensitive passwords and it only worked for local connections on the server.
    Description:
    Allows a DBA user to impersonate another user (without knowing the user's password).
    Similar in function to using the SU command in Unix/Linux.
    Note:
    This script temporarily changes the impersonated user's password and may cause other
    connection attempts by that user to fail during the moment that the temporary password is in effect.
    WHENEVER SQLERROR EXIT
    SET VERIFY OFF
    ACCEPT username CHAR PROMPT 'Enter the username: '
    ACCEPT listenerport NUMBER DEFAULT 1521 PROMPT 'Enter the listener port [1521]: '
    -- Define substitution variables and column mapping.
    COLUMN username NEW_VALUE username
    COLUMN password_hash NEW_VALUE password_hash
    COLUMN host_name NEW_VALUE hostname
    COLUMN instance_name NEW_VALUE servicename
    -- Populate substitution variables.
    SELECT
    name AS username,
    -- Get the user's password hash(s) and apply appropriate formatting for case-sensitive password if needed (11g+ passwords).
    NVL2(spare4, spare4 || ';' || password /* 11g+ */, password /* pre-11g */) AS password_hash
    FROM sys.user$
    WHERE name = UPPER('&username');
    SELECT host_name, instance_name
    FROM v$instance;
    -- Set the user's password to a temporary value.
    ALTER USER &username IDENTIFIED BY TempPass;
    -- Use the temporary password to connect to the database as the user.
    CONNECT &username/TempPass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=&hostname)(PORT=&listenerport))(CONNECT_DATA=(UR=A)(SID=&servicename)));
    -- Reset the user's password to the original value using the original password hash(s).
    ALTER USER &username IDENTIFIED BY VALUES '&password_hash';
    SHOW USER
    UNDEFINE username
    UNDEFINE password_hash
    UNDEFINE hostname
    UNDEFINE servicename
    UNDEFINE listenerport
    WHENEVER SQLERROR CONTINUE
    SET VERIFY ONAnd by so doing you just kicked the user's password expiration on down the road, negating the benefit of havng a password expiration.
    Also, you locked out the legitimate user of this account, until such time as you reset it back to the original. And in the mean time, if this happens to be an account used by some automated process, that process doesn't know the new "temporary" password and runs a risk of locking the account from too many invalid connection attempts. Try to become SYSMAN or DBSNMP from this, and you will very quickly kill OEM.
    This has "bad idea" written all over it. What problem is it supposed to be be solving?

  • Verizon # Ported number to Comcast, but its not working. Both say, its the other guys fault.

    I had my Verizon number ported to Comcast.  When I call out on Comcast...everyones caller ID shows my ported number correctly.  However, I am not getting incoming calls.  Those are still going to Verizon.  I have disconnected my Verizon incoming line and I'm using the Cocast VOIP...so everyone is calling my number, but its just ringing or them.
    Comcast says its a Verizon issues (have not released the number) Verizon says it's a comcast problem, they have not competed the port.
    Does anyone have any idea how I can resolve this?  It's been almost 2 weeks.

    I had my Verizon number ported to Comcast.  When I call out on Comcast...everyones caller ID shows my ported number correctly.  However, I am not getting incoming calls.  Those are still going to Verizon.  I have disconnected my Verizon incoming line and I'm using the Cocast VOIP...so everyone is calling my number, but its just ringing or them.
    Comcast says its a Verizon issues (have not released the number) Verizon says it's a comcast problem, they have not competed the port.
    Does anyone have any idea how I can resolve this?  It's been almost 2 weeks.

  • Node port number :This port is in use.Select another port number-

    I am trying to insalled Informatica 9.0.1 Hotfix2 on my personal laptop and getting below error and was getting same error for 8.6.1, Si i have uninstalled it
    Node port number :This port is in use.Select another port number
    I have tried passing different no like 6005,6006,6007,6008.... but for all it giving me the same error.
    Can any please answer where i can check that which port system is using and what the available values?
    OS: Windows 7 Professional
    DB:Oracle11g

    Hi,
    Goto start > run > enter netstat -o command and execute it and it will display all the addresses. In Foreign Address column the entire ipaddress:portnumber will be display and along with this process id(pid) will be displayed. Check whether the portnumbers are being used by any other application or it is in blocked state. If it is in blocked state then kill that process id with taskkill /pid /f command at command prompt.
    After doing this you can try to install it one more and let us know whether it got succeeded or not.
    Thanks,
    Navin Kumar Bolla

  • How to know the port number to which the server process is listening

    I have created oracle 10g Release 1 database(orcl) in Windows Xp Professional edition through DBCA . I also created one more database(sample) manually .
    The ORCL server process listens to port no 1521 and
    SAMPLE server process listens to port no 1522
    Once I start the OracleServiceORCL (Service for orcl) from services.msc and check the listener status it displays
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    But when I start OracleServiceSAMPLE (Service for sample) from services.exe and check the listener status there is no change . Only when i start the instance the dynamic registration takes place with port no 1521 .
    There is no entry for listener parameter in init.ora file . My question is how is the service ORCL able to get itself registered with the listener even before the instance is up ?
    And how can i know which port no is linked with which server process?
    Also if we provide a different port number(other than 1521 say 1522) in tnsnames.ora for a service and consider the listener is listening to both 1521 and 1522 . Now consider that port number 1521 is free . In this case to which port number will the service be listening to ?
    The listener file looks like this
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_2)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1522))
    The tnsnames file has the following entry
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1522))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    SAMPLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...[coe]
    The status tells you the instance is up. Starting the service often means the instance gets started also, but whatever "often" means, "READY" means "The instance is up, running and taking callers".
    Your statement that "ORCL [is] able to get itself registered with the listener even before the instance is up" is therefore factually incorrect: you started the service, that started the instance. The instance is up and running. Instances that aren't running don't exist. Things which don't exist don't register themselves. Things which HAVE registered themselves therefore do exist.. and if they say they are "ready", it means they are completely, 100% up and running and behaving quite normally.
    I have not set LOCAL_LISTENER initialization parameter.How is this happening ?
    You only need to set LOCAL_LISTENER if (a) you're not using TCP/IP, (b) you're not using port 1521. Otherwise, PMON is hard-coded to register itself with listeners running on port 1521 and using TCP/IP and you don't need to set LOCAL_LISTENER to achieve that.
    Server Processes do not listen. Listeners do (there's a clue in their name). Listeners receive a call to connect to an instance, they spawn a server process to handle your call, and then they connect you to that server process (or send a message back to you telling you how to contact the server process). Each server process of course receives communications from its dedicated client on a specific port (usually in the 50000+ range), and that port is chosen randomly by the listener when it's spawning it. It's a bit blurry and vague to call that server process port a port on which server processes "listen", however.
    If you're talking dedicated server, each client causes one new server process to be spawned, and there is a one-to-one correspondence between server processes and the port that server process happens to accept client communications on.
    If you're going to ask a listener to do listening duty on multiple ports, I'd first question your need to do that and I'd then point out that unless your client tnsnames.ora knows to talk on the second or subsequent port numbers, the listener is never actually going to make use of that second port.
    In either case, the port the listener listens on has nothing whatsoever to do with the port your client-to-server-process communication ends up taking place on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What is default database listener port number

    Running emca script requested for database listener port number. Where do I get this information from.

    If the port number is not specified in listener.ora,
    you may get different values with 10gR1 such as 1509,
    1525, 1525 or 1531 (on Windows XP SP2).
    I guess this depends also on whether the TCP/IP port
    1521 is really released or notI have seen what you have described above when port 1521 was in use by another process. If the port is not in use, I have not seen any thing other then 1521 assigned when the listener was created either during installation or afterwards using Net Assistant.

  • Changing the listener port number in a cluster environment

    Hello,
    I have an Oracle 10g database on a Windows cluster environment with Oracle Fail safe. I am trying to change the default listener port number - these are the steps I have done to change the port number:
    1) Take the listener offline via Oracle Fail safe
    2) stop the original listener from the command line
    3) change the port number in the listener.ora file & save
    4) start the original listener
    5) bring the listener online in Fail safe
    6) register the listener in the database with ALTER SYSTEM SET LOCAL_LISTENER....
    After all this, when i check the status of the listener via lsnrctl, i see that the new port number is used, however in the Fail safe administrator, I still see the default port 1521. How do I go about changing the port number so that Fail safe also registers the change?

    I did troubleshooting to verify the group, but this just changed the port number back to the default in the listener.ora & tnsnames.ora.
    So I did all the steps again to change the port number from the default to another - via lsnrctl status, i see that the new port number is being used, I can also log in to the database via Toad using the new port number, in v$parameter i see that the local_listener is registered on the new port number....only under the Fail Safe manager, the port number (under listener parameter) has not changed....it still shows the default port number. Anyone know how to change this???

  • Web Enterprise Manager Default Port Number in Oracle 9i

    Enabeling Auditing on database 9.2.0.8
    Web Enterprise Manager Default Port Number in Oracle 9i:
    Does anyone know the default port number of the web enterprise manager (Oracle 9i)?
    If I installed or configured enterprise manager and I forgot the port, where can I find it?

    You must read the part in the Installation Documentation for certified repository databases to ensure that your database is OK.
    My advice is always, never start any installation (not only Oracle) without reading the Documentation, Release Note and any README.
    You will spend less time in the installation as Configuration if you use the required documentations for your platform.
    http://www.oracle.com/pls/db102/portal.portal_db?selected=21

  • How can I find out what port number my DB is using

    How would one find out what port number a database is using? Is there a SQL command that will allow us to do this?
    Thanks,
    oracle_newbie

    newbie
    Oracle databse assigns a dynamic port number for each established session. Usually, the common port is 1521 which is defined in you tnsnames.ora, however, this is used for requesting a dynamic port. Dynamic ports are within a ragne of 1000+. That's why it is hard to tell which port you are using at a certain time. You should have a network monitoring tool to check this accurately.
    Regards
    null

  • Find out listener port number in linux?

    hi, can anyone tell me how i find out the listener port number in linux?

    sti..l getting the same error (please see below)
    oracle@matt-desktop:~$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-JUL-2010 16:39:19
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 19-JUL-2010 16:39:21
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    oracle@matt-desktop:~$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-JUL-2010 16:39:38
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 19-JUL-2010 16:39:21
    Uptime 0 days 0 hr. 0 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@matt-desktop:~$ cd $ORACLE_HOME/bin
    oracle@matt-desktop:/u01/app/oracle/product/11.2.0/dbhome_1/bin$ ./emca -config dbcontrol db -repos create
    STARTED EMCA at 19-Jul-2010 16:40:32
    EM Configuration Assistant, Version 11.2.0.0.2 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: orcl
    Listener port number: 1521
    Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
    Local hostname ................ matt-desktop
    Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
    Listener port number ................ 1521
    Database SID ................ orcl
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: y
    19-Jul-2010 16:40:56 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log.
    19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_repos_create_<date>.log for more details.
    19-Jul-2010 16:40:57 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log for more details.
    Could not complete the configuration. Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log for more details.
    oracle@matt-desktop:/u01/app/oracle/product/11.2.0/dbhome_1/bin$
    =========================================================
    ========================================================
    The log file is 571 lines...
    is it anything to do with this stage: --->
    Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
    im not actually entrering anything, im just clicking enter??
    Edited by: user9200169 on 19-Jul-2010 08:45

  • Forms Listener port number as a service!!!

    How can you specify the port number of the listener when it
    is installed as a service? I tried port=???? but it ignores it
    and default back to 9999...
    null

    Hi Patrick
    Try this on your command prompt
    ff50srv32 port=5555
    You can assign any port. If you don't then it will take the
    default port.
    Hope this will help you.
    Arun
    Patrick Shea (guest) wrote:
    : How can you specify the port number of the listener when it
    : is installed as a service? I tried port=???? but it ignores it
    : and default back to 9999...
    null

  • Negotiating a port number from the OS

    All the socket classes require a port number to be specified. No problem, except as one of the requirements at work, I need to make a server that negotiates with the OS to receive a free port number. I can not hard code any numbers or receive them from the command line. I've looked through the forums and a few google searches, but I can't find anything useful. Does anyone here know how to do this or what technologies can do this? This requirement was kinda sprung on at the last minute, so even a simple hack may be exceptable. Thanks alot.
    -JBoeing

    That's easy, bind the serversocket to port "0", it
    will do exactly what you want.http://java.sun.com/j2se/1.4.1/docs/api/java/net/ServerSocket.html#ServerSocket(int)
    see the first sentence:
    Creates a server socket, bound to the specified port. A port of 0 creates a socket on any free port.
    Regards Vaclav

  • What port number to use with NTRealm

    When I configured the NTRealm in the WLS console, the documentation mentioned that for NT Domain, I was supposed to provide the "name" and "port" values for the PDC machine. I gave the name of the machine on that field, but did not know what to specifiy as the "port" value. Now, when I run the "java weblogic.security.ntrealm.NTRealm..." command, I get an "Unable to adjust token privileges" exception, below which there is another exception with the words "bad domain name" in it.
    That leads me to believe that its not liking the DNS name of the PDC server that I entered earlier. Can someone tell me what is this "port" value that is referred to in the docs?
    Thanks.

    You shouldn't have to enter a port number for the PDC. Could you point out
    in the documentation where you saw this.
    It should only be:
    java weblogic.security.ntrealm.NTRealm user password your_PDC
    Are you sure you are logged into your domain? Is that user part of the
    domain? If you use an admin account for the PDC does it work?
    Patrick
    "Nadeem" <[email protected]> wrote in message
    news:3cd96658$[email protected]..
    When I configured the NTRealm in the WLS console, the documentationmentioned that for NT Domain, I was supposed to provide the "name" and
    "port" values for the PDC machine. I gave the name of the machine on that
    field, but did not know what to specifiy as the "port" value. Now, when I
    run the "java weblogic.security.ntrealm.NTRealm..." command, I get an
    "Unable to adjust token privileges" exception, below which there is another
    exception with the words "bad domain name" in it.
    >
    That leads me to believe that its not liking the DNS name of the PDCserver that I entered earlier. Can someone tell me what is this "port"
    value that is referred to in the docs?
    >
    Thanks.

Maybe you are looking for

  • A question regarding using a JDBC class to connect with cloud service database

    Hello, I am currently working on a small scale cloud service report where the company I chose is obviously Oracle. My question is regarding the cloud service in the following way. I was doing my report with the free trial until it just came to me tha

  • I/O Text File

    1. How can i read every line in a text file and only remove the first word of each line and put it in a new text file. 2. How to read a text file that has numbers and ask it to display the largest, smallest and the average of all the numbers. I'm loo

  • Error while using ajax in jsff

    Hi All, I am using JDev 11.1.2.0 to develop my ADF Page I want to use ajax in one of my jsff to us the activeOutputText component for autpmatic ppr I am using the following code : <f:ajax onevent="function(e) {}" event="PropertyChange" render="t1 t2

  • Seagate Hard Disk is not detecting

    Hi Friends, I have an AMD Athlon 64 Processor with MSI motherboard of VIA K8M800-CE + VT8237R Chipset. My Previous hard disk was a 120 GB Seagate SATA which is lost now. I purchased a new 250GB seagate SATA disk and try to install Window XP 2 in it,

  • Invoice-Order details

    Hi, I need a FM or BAPI which will return most of the details from invoice to order including partner level details and address. Instead of select query on VBRK,VBRP,VBFA,VBAK,VBAP,MARA,VBKD,KNA1,ADRC I need a FM which will return all the details for