How to catch server port number.

Hi All,
   I want to disaply host name & port number of present server in the textview.
   For Host name i have used following code. It's working great.
     InetAddress n=InetAddress.getLocalHost();
     String name=n.getHostName();
     wdContext.currentContextElement().setSn(name);
   In the same way i need The Server port number also. Can you give whcih calss i have to use to get port number. plase give me the solution.
Thanks and Regards
Praveen.D

Using WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart); you will get the complete url then you need to have a logic to just take Hostname : hostport
Vinay

Similar Messages

  • How to sql server port number to scom inventory

    can some one help me how to add sql server port number to scom inventory 

    To open a port in the Windows firewall for TCP access
    On the
    Start menu, click Run, type WF.msc, and then click
    OK.
    In the
    Windows Firewall with Advanced Security, in the left pane, right-click
    Inbound Rules, and then click New Rule in the action pane (upper right corner).
    In the Rule Type dialog box, select
    Port, and then click Next.
    In the Protocol and Ports dialog box, select
    TCP. Select Specific local ports, and then type the port number of the instance of the Database Engine, In my case we are using the default which is
    1433. Click Next.
    In the Action dialog box, select
    Allow the connection, and then click Next.
    In the Profile dialog box, I am going to Leave
    Domain turned on and turn private and public off. Then click
    Next.
    In the Name dialog box, type "Allow SQL 1433 Inbound” and for a description I am putting in the same. Then click
    Finish.
    Also you can refer below link
    http://blogs.technet.com/b/danstolts/archive/2011/06/08/how-to-open-firewall-port-1433-for-sql-server-database-engine-for-use-with-scom-or-anything-else.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • How to hide the PORT NUMBER from the URL

    Hi,
    We have Application on Node 1 and Database on Node 2
    Apps Version: 11.5.10.2
    DB: 9.2.0.6
    We recently added a new node to act as web server for iSupport.
    Now we are able to access the url using public Ip-address which looks like
    http://<Internet Ip-Address>:<PORT NUMBER>
    Eg: http://******.com:8000
    But we dont want the *'PORT NUMBER(8000)'* to be displayed.
    How to hide the port number ?..
    Thanks in Advance,
    Mahesh

    Hi Hsawwan,
    Can you plz explain me the steps how to hide the port number from the url as our network administrator is not aware of this.
    Regards,
    Mahesh

  • How to change the port number for deployment in JAVA Studio Enterprise 8?

    Hi!
    Yesterday i downloaded this new sun java studio enterprise and found it mind blowing.
    Now i find that all my previous applications which were running on port 8080 can't be run on sun java studio enterprise(sjse) 8.
    Can anyone tell me how to change the port number on this software so i won't have to edit all my applications?

    http://docs.sun.com/source/819-0080/install.html
    In the Admin Configuration page (or at the command line), enter the following:
    Admin User Name�Name of the user who administers the server
    Password�Admin user�s password to access the Admin Server (8-character minimum)
    Admin Port�Administration port number for initial server instance
    HTTP Port�Port number to access the default server instance
    HTTPS Port�Secure port number to access the default server instance

  • How to detect the Port Number of apex : localhost:????

    Dear firends,
    I install APEX 3.0 on oracle 10g release 2.
    How to detect the Port Number of apex to acces it ? (localhost:????)
    regards
    siyavuş

    Have you installed the Oracle HTTP(OHS) server yet ? If you have then the HTTP config file should specify what port the HTTP server listens at. This port is the port number you use to access APEX

  • How to enter the port number in Laserjet P1606dn to use with ip number

    I need to enter the print server port number along with the ip found the ip but no the port number

    for which operating system?
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Tomcat Server Port Number: Why do I have to enter the port number?

    My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website the uses servlets, JavaServer Pages, and JDBC.
    I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    I installed Java Web Services Developer Pack on MyWebServer. It requires Java 2 Standard Edition (J2SE), so I installed that first. The files I downloaded and installed are as follows:
    J2SE: j2sdk-1_4_0-rc-win.exe
    JWSDP: jwsdp-1_0-ea1-win.exe
    After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\jwsdp\bin; [and other previous statements]
    On MyWebServer I start Tomcat (from the JWSDP menu option). It starts properly (as far as I can tell).
    Then, from MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    �The page cannot be displayed�.
    I then try again and add the port number:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html.
    Here�s my question: Why do I have to enter the port number to get a page displayed? Do I have to have Apache HTTP Server running on MyWebServer to display pages without entering the port number?
    Thanks for your help.

    Oh simmy1, so silly....
    You have to enter the port number because Tomcat is running on that port (probably 8080). You actually don't NEED apache at all. Most people use it an HTTP listener because historically, servlet engines and application servers had shitty listeners. (WebLogic 5.1 was really bad.) Not sure how they stack up today.
    Port 80 is the default port that browsers will look at. (Try it, hit these forums with http://forum.java.sun.com and then hit it with http://forum.java.sun.com:80. See? Same thing.) If you don't want to have to enter a port number, just make sure whatever is running at the front of your network is serving on port 80. It doesn't matter if its apache, tomcat, weblogic, iis or whatever. There is nothing wrong with running Tomcat on port 80, although using a webserver proxy like apache is generally recommended.
    And don't listen to simmy1, this is his second bonehead post I've seen today: http://forum.java.sun.com/thread.jsp?forum=45&thread=231154

  • Trying to change back INCOMING server port number

    I was trying to figure out how to SEND email via my iPhone 3G. I can send email fine while at home (using my wireless router), but when I'm out and about I cannot SEND email. How do I do this?
    In trying to figure this out on my own I was reading about my Comcast email account that said to change the port number. I accidentally change the INCOMING port number from 110 to 25. So, I know it needs to be 110, but everytime I change it in the Settings to 110 it automatically changes it back to 25 after I try to retrieve emails within the Mail option. What's going on?
    Help!

    To send email, you need to add cwmx.com under the smtp servers.
    I'm having the same problem with setting my incoming server port to 110. I've been able to change it by opening Apple's mail client and editing the account preferences.
    Then I went into iTunes and on the bottom of the info tab is a "Replace information on this iPhone" section. I checked the Mail Account tab and hit the sync button.
    This did change my server ports to the correct ports, but I'm still having problems getting the iPhone's mail app to refresh using the new settings. I don't know how force the ports to change via windows.
    I had to turn off the iPhone and restart it to get it to work. I also had to turn off the SSL under the advance tab. Little uncertain about leaving that setting.

  • How to modify the port number and use subdomains

    Couple of things ...
    1 - default port for installation is on 7777 and 7778. Would it be possible to run everything on port 80? I would like to hide the port number and not have people type in http://domain.com:7778
    2 - how can we use subdomains for certain services? For example, webmail should be http://webmail.domain.com and the RTC should be http://conference.biztech.com
    thx

    we're using OCS both inside and outside our network.
    I had my dba modify the port so now everything runs on port 80. However, I dont know how to get virtualhost to work correctly.
    conference.domain.com -> RTC piece
    webmail.domain.com -> webmail piece
    i.e....

  • HT201320 What is incoming and outgoing mail server and server port number

    What is incoming and outgoing mail server and server port number

    See applenerd504 previous reply:
    These specifications that allow you to send and receive messages on your iPhone. If you are using iCloud Mail, Gmail, or another service listed in the selector in settings, they should be automatically configured. If not, you may need to look up certain numbers for your email service.
    Putting it in slightly different terms:
    If you are using a web-mail system like gmail (with a gmail email address) all the mail sending, receiving and management is done on Google servers. In these cases you will only need to have a working internet connection to be able to log in to the service to access its data. 
    Supplying mail sever names and port numbers should only be needed if you are using a traditional (non-web) email account where you are accessing the mail servers directly. This would be typical for a email account set up by someone like your ISP (Internet Service Provider), in these cases you will have to ask them for the appropriate settings.

  • AppleMobileDeviceService.exe uses Half-Life server port number 27015

    I don't think this is a problem, but have noticed several discussions on the Internet which seem confused by this.
    UDP port 27015 is the standard port used by Half-Life servers to communicate with clients.
    TCP port 27015 seems to be used by AppleMobileDeviceService.exe to communicate locally with iTunes.exe and iTunesHelper.exe.
    Since they are different protocols, there shouldn't be any conflict, but I haven't seen any mention of this in discussions I've found and I know a lot of people who, when the open up a firewall for a particular port, will open in for both UDP and TCP.
    I don't know if this is a vulnerability, i.e. if an open firewall port would allow anything on the PC to be compromised, but I'm surprised Apple chose a port number which is so well-known, rather than a new arbitrary one, as there does seem to be the potential for a problem.
    In any event, I intend to keep TCP port 27015 closed in my firewalls!

    In my firewall (Sunbelt Personal Firewall) I'm showing two local point connections from the AMDS at port 27015 (both on the TCP protocol) as well as a listening point at port 27015 for the TCP protocol. I'm not sure where you got your information StarNamer, but source dedicated servers use both TCP and UDP ports.
    {quote}
    UDP 1200 (Friends Network)
    UDP 27000 to 27015 (Gameport)
    UDP 27020
    TCP 27030 to 27039
    TCP 27015 (SRCDS Rcon port)
    See this page for more information: http://planethalflife.gamespy.com/View.php?view=HL2Guides.Detail&id=4&game=3

  • How to catch "an insufficient number of arguments" error?

    Hi All,
    I have a question - how to cauch this error:
    SELECT * FROM dbo.ExistingFunction ('Wrong number of params - ExistingFunction expects 2 of them')
    I tried using try-catch (both on the same level and one level higher) but with no success.
    Best Regards,
    Mike

    There are a couple of variations with this error, because it depends on when the mismatch between the caller and the function occurs.
    1) The function call is incorrect when you attempt to create the procedure => the procedure will not be created.
    2) The function was correct when you created the procedure, but the function was changed before the procedure was compiled and put into cache. In this case compilation of the procedure fails, and it is never entered. And thus you cannot trap it in the procedure
    itself. You can catch it in outer scope.
    3) The function was changed after the procedure was put into cache. This causes a statement recompile at run-time, and as will all compilation errors, you cannot catch this in the local CATCH block despite you have entered the TRY block. You cannot however
    trap it in the caller.
    You say that you are not trap it even one level higher, but that is certainly possible, as testified by the repro below:
    [sql]
    CREATE FUNCTION funkis (@a int)
    RETURNS @r TABLE (a int) AS
    BEGIN
       INSERT @r VALUES(@a + 1)
       RETURN
    END
    go
    CREATE PROCEDURE inner_sp AS
    BEGIN TRY
       PRINT 'Entering inner_sp'
       SELECT * FROM dbo.funkis(1)
       PRINT 'Exiting inner_sp'
    END TRY
    BEGIN CATCH
       PRINT 'Error trapped in inner_sp: ' + error_message()
    END CATCH
    go
    CREATE PROCEDURE outer_sp AS
    BEGIN TRY
       PRINT 'Entering outer_sp'
       EXEC inner_sp
       PRINT 'Exiting outer_sp'
    END TRY
    BEGIN CATCH
       PRINT 'Error trapped in outer_sp: ' + error_message()
    END CATCH
    go
    EXEC outer_sp
    PRINT '------------------------'
    go
    ALTER FUNCTION funkis (@a int, @b int)
    RETURNS @r TABLE (a int) AS
    BEGIN
       INSERT @r VALUES(@a + @b)
       RETURN
    END
    go
    EXEC outer_sp
    go
    DROP FUNCTION funkis
    DROP PROCEDURE inner_sp, outer_sp
    [sql]
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to modify the port number of j2ee reference?

    hello
    i install the j2ee1.3 on my windows2000 server,after i setup the environment,i iuput the "j2ee -verbose" within the dos window,the following exception is throwed:
    Logging for J2EE Server Version: 1.3.1-b17 started at: Wed Aug 07 19:23:22 CST 2002..
    Using the Java HotSpot(TM) Client VM and the version number 1.3.1 from Sun Microsystems Inc..
    VM is using the classpath: E:\j2sdkee1.3.1\lib\system\cloudscape.jar;E:\j2sdkee1.3.1\lib\system\tools.jar;E:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;E:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;E:\j2sdkee1.3.1\lib\classes;E:\j2sdkee1.3.1\classes;E:\j2sdkee1.3.1\lib\j2ee.jar;E:\j2sdkee1.3.1\lib\toolclasses;E:\j2sdkee1.3.1\lib\j2eetools.jar;E:\j2sdkee1.3.1\lib\locale;;E:\JBuilder6\jdk1.3.1\lib\tools.jar;E:\j2sdkee1.3.1\lib\jhall.jar .
    J2EE Home Directory has been set to: E:\j2sdkee1.3.1.
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:119)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:119)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    Error executing J2EE server ...
    it seem like that the "1050" port is in using by other program,but i don't know which one,i think i should modify the j2ee reference to use other port,how can i do that?
    thank you very much!

    This certainly fixed the problem I was having when all of a sudden my j2ee server would no longer open. However, this raised a new question for me which is somewhat of an off-shoot to this problem - how does one select a new port#? Is there some rule of thumb? Just wondering.
    Thanks! Janet

  • How to catch accounting Document Number in SE37 for  BAPI_ACC_DOCUMENT_POST

    HI Frds,
    My ReQ is i have to post Customer Invoice from Legacy to ECC through PI interface. So i am using one BAPI , ' BAPI_ACC_DOCUMENT_POST''. I had customized this BAPI by adding 2 fields (1.zstatus, 2.zsaprefno) as i have to send the status(1. Success/Fail, 2.Account Document Number) back to Legacy.
    For PI i have to give the BAPI structure. So when i am executing in SE37 zstatus field is catching the value as 'Success'. But the ZSAPREFNO is not catching the account document number. Bez we have to execute BAPI_TRANSACTION_COMMIT after this BAPI(in test sequence from Menu bar). So directly updating in Database tables.
    when i was excuting in SE38 the Accounting Document Number is returned in RETURN parameter of MESSAGE_V2 as we are checking the return parameter after BAPI_TRANSACTION_COMMIT.
    when i am trying in SE37 its not catching the value in MESSAGE_V2(catching as $).  After COMMITing we have no option to check the RETURN parameter.
    So, any idea how to get the Account Document Number  in SE37.......Or any other way to do..........
    Edited by: priya tavanam on Sep 3, 2010 7:02 AM

    Hi,
    if standard BAPI did not return the Acc. document number before BAPI_COMMIT then create wrapper FM
    1) call actual BAPI and BAPI_COMMIT with in that.
    2) retrun the account document back.
    otherwise you can try sync proxy as well.
    Regds,
    Suresh

Maybe you are looking for

  • Syncing problems with apple tv first generation

    Ok I got an apple tv the other day and I am having a hard time syncing anything to it. So I have the first generation apple tv. Its has software 3.0.2 and says it is up to date. I have updated my my itunes to 10.6.3 (25). I am not very computer smart

  • Db function returning three db number columns...

    Hi , Is it possible a db function to return three number columns fetched from a table...?? If for example , there is a db function such as...: function x return number is begin select number_col_1 , number_col_2 , number_col_3 into var1 , var2 , var3

  • FBD1 approval

    Hello Experts, We have a requirement to create approval workflow for recurring document created in FBD1 and only on approval jobs should be executable in F.14.      Is there any standard SAP workflow for this and how to check on this. Thanks in advan

  • Conversion of byte into string

    how can we convert byte into string??? would u plzz help me??

  • How to map sales return process from customer to mfg plant without Depot??

    Dear All we have a Mfg plant (mfg1) & having  seven Depot. regular process of STO DEPOT process ME21N-Purchase order STO VL10B - Replenishment delivery VL02N - PGI VF01- Proforma invoice J1IIN - Excise invoice MIGO - Goods Receipt J1IG - Excise Captu