How to get client info

Hi guys,
I am building a client server JSF web application.
How to retrieve details of client machine (e.g Lan ID) on the server side when client send a request to open a web page.
Thanks.

Hi Raymond,
Thanks for the reply.
I've tried in a simple servlet as following.
req.getRemoteUser() returns null
req.getRemoteAddr() returns proxy ip address.
I still can't get the LAN ID of the client who send the request.
Please help.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Remote extends HttpServlet{
     public void doGet(HttpServletRequest req, HttpServletResponse res)
                         throws ServletException, IOException{
          res.setContentType("text/html");
          PrintWriter out = res.getWriter();
          String rmtName = req.getRemoteUser();
          String rmtAddr = req.getRemoteAddr();
          out.println("<html>");
          out.println("<head></head>");
          out.println("<body>"+ rmtName + " ," + rmtAddr + "</body>");
          out.println("</html>");
     public void doPost (HttpServletRequest req, HttpServletResponse res)
                         throws ServletException, IOException{
          doGet(req,res);
}

Similar Messages

  • How to get client machine name and IP address

    Hi,
    In my office I have one SERVER which has FORMS & Report Server installed and all the clients are accessing that application thru the following URL :
    http://OraServer:8889/forms/frmservlet
    to get the machine name I have read into a global variable like this
    SELECT USERENV('TERMINAL' ) into :global.clientname FROM DUAL;
    but obviously all the time its returning the SERVER machine name...not the name where client is accessing the program....so how can I get the client machine name..
    thanks

    Hi Frank,
    Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
    Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
    on my block's canvas I've put a button and used this trigger to get client info function like this.
    when-button-pressed trigger of INFOBUTTON
    DECLARE
    o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
    begin
    message(o_clientinfo);
    end;
    but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
    thanks

  • How to get client IP in custom UCM Service

    how to get client IP in custom UCM Service ?

    have you tried
    binder.getLocal("REMOTE_ADDR");
    Let us know how you get on
    Tim

  • How to get Client IP address in oracle apps. Are there any API's.

    hi,
    I have one query
    ->How to get Client IP address in oracle apps. Are there any API's.
    regards,
    krishna

    Hi,
    this is very usefull
    however are this data stored on the db or is only a temporary view?
    I would like to have to keep track of all client connected.
    Thanx a lot

  • User Exit in 10g - To get client info

    Hi all
    We have a user exit call in forms 4.5 which returns client info (OS version).
    As we are going for 10g, the user exits will reside in AS.
    Is there any way by which i can use the same user exit to get client info now ?
    Thnx and Regards
    Sriram

    in the old days of forms 6i we created tons of java-applets for host-commands and so on.
    with the first version of webutil all the applets we created ourself were gone, because all functions were in the webutil-toolset.
    You can use it beginning with forms 9i. It's very good and easy to use. Look in OTN where the developer-downloads are
    Gerd

  • HT4061 how to get full info about the iphone by putting the imei number in pc

    how to get full info about the iphone by putting the imei number in pc

    https://discussions.apple.com/message/23921736#23921736

  • Webutil - get client info

    I have a problem, I'd like to gather client info and present that info as my forms application loads but unfortunatley I can't seem to get it to works. I can create a button and place code behind it and gather information that way so I'm confident that my set-up of webutil is ok.
    any ideas?

    I think its going to be impossible to help you since you make no mention of any symptoms of how this is not working, no error messages, no sample code.
    Try the webutil demo and see if that works - that has code for calling the client info webutil code.
    Regards
    Grant Ronald
    Forms Product Management

  • How i get hardware info with Java Applet

    Hello Everybody.
    first I am sorry for my english. This my first topic. I am a php developer and learning Java. I am developing a Java Applet.
    Can i get client hardware info with Java Applet
    Ýf i can How i do get hardware info with Java Applet.
    I need sample code or documentation.
    Thanx.

    TrojanMyth wrote:
    Hello;
    Can i get hardware info with Java ?? Have not a know people ?Applets are restricted, unless, as already noted, they are signed and accepted by the user. See
    http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
    http://java.sun.com/docs/books/tutorial/deployment/applet/properties.html
    In general, since Java is designed to run on multiple operating systems and machine architectures it does not provide much access to the underlying hardware. As mentioned, you can access the os via methods in the java.lang.ProcessBuilder and Runtime classes.

  • TS4006 I was able to get a location on my stolen MBP but I didn't get the email notification in time to log into to iCloud to view the location, it is only viewable for 24 hours. Does anybody know how to get that info back? I've been on the phone w/Apple

    Hi,
    Does anyone know how to get in touch with iCloud support directly? All iCloud support roads lead to CPU tech support. My stolen MBP finally came online and gave a location but I didn't check my email for a couple days, was sick, and iCloud only displays location map for 24 hours. Desperatly trying to regain the location info. I live in a small town so location info might actually lead to the recovery of my baby.

    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem
    pinto123 wrote:
    i did every thing you said and when i went to restore this is what happened: the ipod software update server can not be contacted. make sure your network settings are correct and your network connection is active, or try again later. what do i do to restore.     i used the last way to do it the dfu

  • How to get CLIENT Username

    Hi Experts,
    I have a problem in retrieving my client's computer name and its username using windows api..
    Coz my program is using JNI so for the windowsAPI i used GetUserName and Get ComputerName --> It gives me the username and the computer name of the server..
    Any idea how to get another (computer username and its computer name PASSWORD IF POSSIBLE) that logon to my server.
    Any suggestion will be highly appreciated..
    Thank you
    Suwandy

    Any idea how to get another (computer username and its
    computer name PASSWORD IF POSSIBLE) that logon to my
    server.
    High hopes
    What are your clients?
    Java,jsp,html or are they servlets
    -Regards
    Manikantan

  • How to get the 'info' button working again in Spotlight?

    The 'info' button to get info about an item in the search results window of Spotlight is no longer working for me. I have tried reindexing and trashing the preference file in the user library, with no luck. Any idea how to get this functionality back?
    Thanks
    Chris

    I have the same problem after installing Safari 3, the more info icon in the spotlight results no longer works.
    Dan

  • How to Set Client Info in OBIEE

    Hi All,
    Im accessing Oracle Applications table from OBIEE through database. How can I set the client info so that I can see the data.
    Thanks

    Hi,
    You can execute a script at logon. Check the 'Connection Scripts'-tab on your connection pool. Her you can define a 'Execute on Connect'-script.
    This way you can set your client_info en view the Oracle eBS table data.
    Good Luck,
    Daan Bakboord

  • How to get dblinks info

    Hi ,
    I have a set of dblinks
    is there any way for me to find out who are the users and what are the tables being accessed by these dblinks ?
    this is for Oracle8i & 9i
    pls advise
    tks & rgds

    DB Links can be private or public. The ability to create a db link is also a priv that needs to be granted - and which can be taken away again after a private link has been created. So security wise, it can and should be managed appropriately.
    > is there any way for me to find out who are the users
    Who can use these links? Exactly who you allowed to use these links.
    Interactively? An option such as auditing comes to mind if you want to monitor this - but only after correcting any security problems regarding db links first.
    > what are the tables being accessed by these dblinks
    It may not be tables. It could be views, synonyms, stored procs, functions, pipelines table functions, etc. DB links are used to access remote objects - just what that remote object is physically, is not really an issue that the local database is concerned about.
    This would be best done by securing the remote db properly. Do not create a db link directly into a remote app schema. Instead use a bare bones create-session-only remote schema. Have the app schema grant SELECT and whatever other access required to this bare bones schema. Enable auditing on the bare bones schema. Then create the db link (from the other database) into that remote database using that bare bones schema as the remote user.
    Basically, to get the "info" in a meaningful way requires a meaningful/sensible implementation. Quick-and-dirty... well, you could hack the shared pool to try and pick up SQL cursors containing db links references. But that is a cumbersome method and far from bullet proof in terms of detecting all calls (as PL/SQL db-link calls will for example not be found).

  • How to get document info..???

    Hii all..
    I am trying to retrieve the doc_info of a particular document from oracle webcenter content using RIDC by following method :-
    public void info() throws IdcClientException, IOException{
    IdcClient client=getConnection();
    DataBinder binder=client.createBinder();
    binder.putLocal("dDocName", "COOPER_4444001205");
    ServiceCallUtils ss=new ServiceCallUtils();
    List doclist=new ArrayList();
    DataResultSet data=ss.getDocInfo(binder);
    System.out.println(data);
    doclist= data.getRows();
    Iterator it=doclist.iterator();
    while(it.hasNext()){
    System.out.println(it);
    but ss.getInfoData is not returning anything and the DataResultSet data is remaining null.
    Does anyone know how to fix this...???
    Edited by: 938480 on Jun 13, 2012 7:10 AM
    Edited by: 938480 on Jun 13, 2012 7:22 AM

    All getDocInfo does is the following:
    return binder.getResultSet("DOC_INFO");
    You must first execute some sort of DOC_INFO service call to get the DOC_INFO ResultSet.
    binder.putLocal("IdcService", "DOC_INFO_SIMPLE");
    DataBinder result = null;
    try {
    ServiceResponse response = client.sendRequest(userContext, binder);
    result = response.getResponseAsBinder();
    DataResultSet data=ss.getDocInfo(result);
    } catch (IdcClientException e) {
    Jonathan
    http://redstonecontentsolutions.com
    http://corecontentonly.com

  • How i get user info from ldap using java after authenticating user with SSO

    Hi
    I have one jsp/bean application as a partner application with SSO.
    It works fine.
    Now i need to get other attributes of user from LDAP who has logged into the application through SSO.
    using SSO java APIs i only get username, userDN, subscriber info.
    To get user's other attribute i have to user LDAP APIs for that i have to create on Directory Context, for the same i need userpassword.
    so here i my question, how do i get user password after he has logged in thro SSO.
    regards..
    and thanking u in advance
    samir

    Valentina,
    there's no way to get the password value from the directory (it's one way). Of course you can get the hashed (MD4,MD5,SHA-1) base64 encoded value (i.e. the value you see in OiD) but not the 'password'.
    --Olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Report Custom Vertical Table Question

    Hello Guys, I am trying to display some data in a custom vertical table (for a report). The data that I have looks like this : Customer number          Name               Product          Age 123               John Customer          Checking     50 4

  • ANSI SQL 92 SYNTAX OUTER JOIN PERFORMANCE ISSUE

    Good Morning Could anyone explain why the excution time for these two (ment to be identical) queries run so differently. oracle syntax execution time 1.06 seconds select COUNT(*) from PL_EVENT_VIEW pev, PL_EVENT_STAFF_VIEW pesv WHERE pev.EVENT_ID=PES

  • Renaming problem

    Im on a trip, working off my Mac laptop with LR 1.1. Id like to import all my shots (RAW, imported as .dng) and JPEGs from a different camera) into one folder for the trip. I started the trip fresh with no photos in the catalog. Ive run into problems

  • MacBook Pro non retina or retina on a budget?

    Hi I am looking to buy a MacBook Pro non retina or retina model, I have a budget so I would buy the non retina i7 with 4gb of ram and upgrade to 8 later or buy the retina model with no upgrades and not being able to upgrade  it later on... I might be

  • Ctrl-key not working properly under Linux

    Hello, I am using Labview 8.6 under Ubuntu Linux 8.10 (Gnome) with a German keyboard layout.  If I want to enter a backslash "\" and hit the control-key I first get one ore more space-characters. This is very annoying and produces sometimes hard to f