How to get the HOST

Hi,
How can i get the host.....
I am importing the java.net.URL;
and defining a string variable
String host = getCodeBase().getHost();
I am getting getCodeBase() method not found....
Is there any other way of getting the host....
Any help is greatly appreciated..
Thanks in advance.

Yes i am ...
I have created an Applet-Servlet Comm..
I want to get the host...
My source compiles but now i am getting null value...

Similar Messages

  • How to get the "host printer" and "destination host" as part of spad output

    Hi ..
    If i run the spad tcode and then i choose one printer, i see 4 folders: Device Attributes, Access Method, Output Attributes and Tray Info.
    if i go to Devicess attributes i see: Device Type, Spool Server, Host, Device Class, Model, location , Message, lock printer in sap system.
    If i go to Access Method i see the fields: Host Spool Access Method, Host Printer and Destination Host.
    I am creating a report that needs the information mixed between the folder Device Type and Access Method folder
    If i run spad tcode and enter "*" in Output devices i see only some of the fields i need but i need to see other fields that are contained into Access Method folder, this means, i need the complete report of all printers i have in my system with this fields:
    Device Attribute - Output device   (spad - entering "*")
    Device Attribute - Spool Server (spad - entering "*")
    Device Attribute - Location or message  (spad - entering "*")
    Device Attribute - Lock printer in SAP system (i do not see it if i run spad and choose all "*")
    Access Method - Host Printer  (i do not see it if i run spad and choose all "*")
    Access Method - Destination Host  (i do not see it if i run spad and choose all "*")
    Access Method - Do not Query Host Spooler for Output Status.  (i do not see it if i run spad and choose all "*")
    Could you please le tme know how can i get the output of all the devices (printers) i have in my system with the above fields showed?
    Thanks in advance.
    Sapskystars.

    As far as I can read you can find all that info in table TSP03D
    Regards
    Juan

  • How to get the host list in the wifi on mobile devices?

    Hi
    My AIR app need work on both Android and iOS.
    ServerSocket and DatagramSocket are neither supported on mobile device. So how can I get the IP of other hosts in my wifi?
    I tried to get the ip range and use socket to connect them one by one to check if they are available. But it's too slow. Is there another quick way?
    Thanks

    Thank you Saumitra Bhave. I download some samples and read some articles for how to use native functions.
    But many things are sitll not clear to me, so I failed. Let me describe my flow:
    1. compile all Java code to a .jar file, and put it into Android-ARM folder in my project.
    2. create some functions to call the .jar with flash.external.ExtensionContext.
    3. create a extension.xml to describe the path.
    4. use command to compile .jar and AS functions into .ane with ADT.
    then I can use this .ane file in any my AS project, right?
    BTW, I'm using Flash Profassional, no Flash Builder 4.6.

  • How to get the Host name of Unix server

    Hi all,
    I am need to use the Host name of application server for some purpose.
    where can i see the host name of the unix server ?

    SYST-HOST or SY-HOST contain the name of the application server.
    You may also use the following internal call to get the actual application server
      call 'C_SAPGPARAM'
         id 'NAME'  field 'rdisp/myname'
         id 'VALUE' field servername.
    For the IP adress
      CALL FUNCTION 'DB_DBRELINFO'
        IMPORTING
          dbinfo = dbinfo.
      READ TABLE kernel_version INDEX 11.
      kinfostruc-ip_address = kernel_version-data.
    Regards

  • How to get the Host name and port number

    Hi all,
    I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
    Regards,
    Vinoth

    Hi Kanagaraja,
    My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
    Thanks for your reply.
    -Vinoth

  • How can I get the host name from Email address?

    hi
    When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanks

    Stripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
    http://www.stopspam.org/email/headers/headers.html
    Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
    Sean

  • How to retrieve the host prefix in a workflow step

    HI i am trying to generate a link in a process step, but I dont know how to get the host prefix http://localhost:4503
    any idea?
    thanks

    You should use the Externalizer: http://dev.day.com/docs/en/cq/current/developing/externalizer.html

  • How to get the current user name in Provider hosted app using appOnlyAccessToken

    Hi, 
    Please help me, how to get the HostWeb UserName in Provider Hosted App
    i have Provider hosted App, and Anonymous Authentication is enabled on AppWeb, using appOnlyAccessToken
    Below code does not return current user who Log in in hostweb, it is returning
    SharePoint App (app@sharepoint)
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;
    Below code gives a blank name when Anonymous Authentication is enabled, if Anonymous Authentication is disabled
    app prompts for credentials 
    HttpContext.Current.User.Identity.Name
    Thanks
    Ram

    Hi,
    Since you are using a provider Hosted app if you want to get the current logged in name than do not use AppOnlyAccessToken else use AccessToken which is App + user Context AccessToken.
    then 
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;will return proper user Name.
    HttpContext.Current.User.Identity.Name will never return the user as this object is related to IIS server of your App Server not sharepoint.you should set this as Anonymous in case of provider hosted app.you can download the below sample which uses the AccessToken which has user name in it.https://code.msdn.microsoft.com/Working-provider-hosted-8fdf2d95
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • How to get the metadata in Designer?

    In Acrobat, I can get the metadata by "this.metadata".
    The Designer's Help  said: use "xfa.form.desc" to instead of "this.metadata".
    The "desc" has a method "metadata(Integer para)" to return the metadata's info.
    I use the code "xfa.form.desc.metadata(0)" in designer.
    But alert the error "GeneralError :Operation failed".
    Who can tell me how  to get the metadata in Designer?
    Thanks.

    Thank you,radzmar.
    I use the "xfa.host.messageBox(""+xfa.event.target.metadata);" in a button's clickEvent.
    But the error is same.
    My target is:
    Now,I have a blank PDF create by Designer.
    Only one button in this PDF.
    When I click the button,then show the metadate'info for me.
    My code is:
    try{
    var tDesc=xfa.form.desc;
        xfa.host.messageBox(""+tDesc.metadata(0),"",3);
    }catch(e){
    xfa.host.messageBox(""+e);
    But it is incorrect;
    I want to get a simple about get metadata info.
    the metadata info like:
    <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
             <xmp:MetadataDate>2010-11-18T07:37:45Z</xmp:MetadataDate>
             <xmp:CreatorTool>Adobe LiveCycle Designer ES 9.0</xmp:CreatorTool>
             <xmp:ModifyDate>2010-11-18T13:14:40+08:00</xmp:ModifyDate>
             <xmp:CreateDate>2010-11-18T11:25:05+08:00</xmp:CreateDate>
          </rdf:Description>
          <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
             <pdf:Producer>Adobe LiveCycle Designer ES 9.0</pdf:Producer>
          </rdf:Description>

  • How to get the UDDI Key to publish a service provider system in SR?

    Hi,
    I am following instruction in appendix 1 & 2 of the white paper at https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1079b1af-dcb7-2b10-9ebb-eafcaa3cbbea?overridelayout=true
    trying to publish a service provider system into the service registry. One thing not clear to me is how to get the uddikey as needed in step 6 in appendix 1.
    My service registry is in a PI 7.1 SP4 system. I followed the instruction in appendix 2 but there is no uddi key displayed in the General tab. Please help.
    Regards,
    Jiannan
    Paragraph extracted from the whitepaper:
    There may be cases in which the NWA logical settings do not match the Services Repository
    settings when Visual Composer is trying to locate the enterprise services. Such cases can occur
    when there is no SLD ID definition of the physical system in the Services Repository.
    Currently, Visual Composer cannot search for services on a physical system with an empty SLD ID
    (which is not a valid one).
    To obtain this capability, the following steps should be performed to generate the necessary data
    for each system with a non-valid SLD ID, so that Visual Composer can search for services over it.
    1.Log on to http://<serverName>:<serverPort>/WSNavigator.
    2.Select the Services Registry radio button.
    3.In the Find field, enter sr and choose Go.
    4.Select the ServicesRegistrySi line and choose Next.
    5.Under the Operation Name, search for the publishPhysicalSystems operation, select it and choose Next.
    6.Fill the service information parameters with the following (see Appendix 2 for details on how to get this information) :
      6.1.Click the + icon in the physical system[].
      6.2.Deselect the Classifications checkbox.
      6.3.Click the + icon in the classificationReferenceGroups[].
      6.4.Click the + icon in the classificationReferences[].
      6.5.Deselect the classificationSystemKey checkbox.
      6.6.Deselect the uddiKey checkbox and enter the value <localUddiKey>.
      6.7.Deselect the value checkbox and enter the value <localSystemHostName>.
      6.8.Deselect the host checkbox and enter the value <localHostName>.
      6.9.Deselect the physicalSystemKey checkbox.
      6.10.Deselect the logical key checkbox and enter the value <System name>.<SystemHome>.<host name>.
      6.11.Deselect the systemName checkbox and enter the value <system name>.
      6.12.Deselect the type checkbox and enter the value 2.

    Hi Jiannan,
    No worries, you can go to UDDI client from the main page of PI  i.e. http://<serverName>:<serverPort>/
    And you use the search function for  the TModel for your Physical System. Search parameters can use the % wildcard.
    Hit the search and you find the UDDI Key for the Physical System.
    Cheers.
    Hemant Chahal

  • How to get the Path of the Current File using Import & Export File -Reg.

    Dear all,
    I have a mega (big) doubt. I have manually inserted the Figures from the figure folders. Now i need, fully automated. So How can I get the Figure path
    Example :
    PMString path = "E://development/Figures/";
    now i checked, How many subFolders is there in "path", get the All Subfolders and check to the Article Name.
    Example
    Article Name == subFolder name then get the Files from the SubFolders(E://development/Figures/ChapterF/*.eps files").
    now I paste the Document using to For Loop.
    Please any one can suggest me, How can We get the Path in SDK.
    Note:
    Should I have to create the relative path by myself?
    No method supplied in SDK to do this directly?
    Please I need a help of this Query as soon as posible.
    Thanks & Regards
    T.R.Harihara SudhaN

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • How to get the path of input type="file" tag

    -- im using <input type="file"> tag to get an input file from a local host, it returns only the filename but not the complete path of the filename,,,
    -- i need to know on how to get the compelete path /directory of the filename using <input type="file"> tag , or is there any other way to get an input file from a local host aside from <input type="file"> tag?
    thanks

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • How to get the IP address of smtp server?

    For A record in DNS, we can use Java API InetAddress.getHostAddress() to get the IP address.
    But for mx record, how to get the IPaddress?

    If you know the hostname of the MX record (eg. mail.somehost.com), you can still use the InetAddress.getByName(hostname).getAddress()
    If you don't know the specific host name you can do a DNS lookup directly:
            String host="somehost.com";
            DirContext ictx = new InitialDirContext();
            Attributes attrs = ictx.getAttributes("dns:/" + host, new String[]{"MX"});This will give you a javax.naming.directory.Attributes object from which you can...
    Attribute att = attrs.get ("MX");This will give you all the MX records for the domain. To get the IP address of the MX hosts, you need to parse the record String returned. Usually something like:
    somehost.com       MX preference = 10, mail exchanger = mail.somehost.comParse out the mail.somehost.com and use:
        String mailhost = <Parse MX record here>
        InetAddress host = InetAddress.getByName(mailhost);

  • How to get the iphone serial number  in application?

    hello,  everyone
       i  really want to konw how to get the iphone serial number in aplication ?  As it's different from uniqueIdentifier ....
    thank you

    Michele is correct - sneep will help you get the serial from the running domain on the M3000 ,
    and it is a good idea to install STB on your machines.
    If that isn't possible for you, then sneep can be downloaded directly from [http://www.sun.com/sneep]
    I believe that on this platform, sneep gets the serial from the output of prtconf.
    There is a minor correction to be made :
    After installed SNEEP use "man sneep" for all technical details.The sneep man page is not linked into the shared man pages, so you need to use
    man -M /opt/SUNWsneep/man sneep
    with out going to OK prompt (Banner)It is worth noting that the serial shown in the OBP banner is not the product serial
    that you will find on the physical serial tag.
    The banner "serial" is the decimal equivalent of the host ID, which you normally get in hexadecimal from the "hostid" command.

  • How to get the remote user IP address if behind the proxy or firewall

    Hi
    How do i get the remote user Ip address who is invoking the servlet behind from a firewall.
    When i use getRemoteHostAddr it gives the proxy ip address not the actuall user host address... Kindly let me know how to get the actual user ip address
    satish

    There is no reliable way to determine the original IP, and such information is not useful to you if the original IP is behind a firewall. What do you propose to use it for? There is probably an alternative way to do things that does not require the remote IP.

Maybe you are looking for

  • ITunes doesn't install on Windows 7 Home Premium

    Hi everyone. I have tried to install iTunes on my Windows but I just can't be sucessful. After the installation process, I get the message that the program was correctly installed, but then I don't have the program, it wasn't installed. I get no erro

  • Bootcamp Drivers unaccessable In Windows 7 install

    I installed windows 7 on my new macbook pro 13, but I cannot access the drivers on the USB stick I created because Windows 7 does not recognize USB 3 ports which are the only way of putting the data on the new partition until I can load the networkin

  • Has anyone solved the Yosemite and WebEx issue

    Ever since upgrading to Yosemite, my WebEx service has become unstable, I get varying issues from complete failure to connect, to bouncing WebEx icon on my tray, through to occasional connectivity.  This issue seems to be well known, certainly within

  • Regarding payment Block

    Dear All, I am a technical consultant so not much knowledge about FI. I wanted to know about the vendor payment block can you please help me in terms of simple language as i am a technical so also not much aware of FI terms. Can you also give the FI

  • Burning DVD image returns error 0xC0AA0301

    Hi, HP ENVY 700-203eo/Windows 8.1 I'm trying to burn an .iso image to DVD but it fails with error code 0xC0AA0301. I have also tried burning the DVD using the included bloatware Power2Go, with similar result. Downloaded and tried ImgBurn - which also