Get ip address of client machine and server

Respected experts,
I want to get ip address of the client machin and server machine.
Which method should i use for getting this.

drvijayy2k2 wrote:
hi
i am not sure
but try request / servletrequest -> getRemoteHost() and getLocalHost()There isn't any getLocalHost() method for HTTPServletRequest. And in anycase, the getXXXHost() methods would return the hostname. You'll only get an IP address if the name cannot be resolved.
@OP:
[getRemoteAddr()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getRemoteAddr()] - be warned that this may be the IP address of the last proxy in the chain
[getLocalAddr()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getLocalAddr()] - this is the address of the interface that the request came in on, so for a server with multiple NICs, you will only be getting one possible IP address.

Similar Messages

  • How to get MAC address from client machine ?

    Hi dear,
    We are implementing security measures for a banking system, so it is required that we track the MAC address of the registered clients along with other parameters. How do we get the MAC address from client machine using ADF or running scripts in client side?
    thanks all

    Hi,
    Welcome to OTN.
    Your question has nothing to do with ADF as such. Googling would give you plenty of such topics.
    -Arun

  • I upgraded to Snow Leopard and and lost addresses in address book.  When I go to Time Machine it does not refill my addresses.  Also told that Address Book 4.1.2 can not be run?  How do I get my address book back up and running?

    I upgraded to Snow Leopard and lost addresses in Address Book.  I'm told I have 4.1.2 and can't use this version.  I still have my addresses in Time Machine and it will not recover.  How do I update Address Book?

    Ooops!
    First Timer mistake.
    Sorry.

  • Provide alternative for Active X objects in Firefox to get client information. As I have to fetch MAC Address of client machine at login.

    As I have to fetch MAC Address of client machine at login, this is possible using ActiveX objects in IE but how it can be achieved using Javascript in Firefox browser. Plz reply.............................

    You would need the user to install some kind of add-on in order to do this. Or you could explore whether it's possible in Flash or Java (but I'd be surprised if it is).

  • HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL

    HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL USING 10g Database and 10g Application Server
    we have developed an application using oracle forms 10g with
    oracle database 10g and Application server 10g
    Application uses a single Oracle User name to connect to database
    where as at Application level there are different users (these are not database users)
    Now how can we get the information about the user/his machine etc. at database level. earlier in 6i/8i we use to get by using
    USERENV('TERMINAL')
    we had written a triggers on tables on Insert/Update where we used to update a database field Last user terminal with USERENV('TERMINAL')
    but not this information is comming to be the machine name of application server where as we wish this to be the machine name of Client. Any Way outs
    thanks
    Chaand Kackria

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • IP Address of Client Machine

    I want to get the ip_address of
    Client Machine in IAS environment.
    Any ideas or suggessions

    Though you have many ways to get the IP of the Client Machine, it
    al depends on the exact requirement. To name a few,
    1>You could write a Java servlet or JSP and call 'getRemoteHost'
    on requet object.
    2>Call or use 'REMOTE_HOST' in any CGI prog.
    HTH !
    Mithun T Dhar

  • What's the difference between client combo and server combo? Also, what would happen if I install both?

    what's the difference between client combo and server combo? Also, what would happen if I install both?

    One is for the base version of the Mac OS, the other is for the Server version. You can only install the one that matches your system.

  • How to Integrate Client system and Server system?

    How to Integrate Client system and Server system?
    A scenario which is working successfully in server system, not working in client system.
    help me out in this issue.
    pankaj.

    Hi Bhavesh,
    server system means where we have xi inst.
    client system means where we have only GUI inst.(front end).
    The scenario working in server system (picking file and posting it in to the target place)
    but the same not working in client system.

  • T-codes to get total runnig hours for machine and lab

    Plz tell any one t-codes to get total runnig hours for machine and labour against the prodduction order or work center wise ..
    Thanks & Regards
    Punit SIngh

    Hi pjd,
    I'm sorry to hear of your problem getting help with your issue.  Have you checked this thread to see if there's any useful information in it that would help you get this resolved?? 
    If the information there does not help, please advise and I'll try to get you to the proper department to get this resolved for you.
    Regards,
    KaLin
    Verizon Forum Moderator
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • Difference between client proxy and server proxy

    hi all,
    could u explain me the differences between client proxy and server proxy,
    regards,
    AVR

    Hi AV,
    simple search in sdn may answer your question,
    There are two type of Proxy's in ABAP and JAVA(Clinet and Server),
    Clinet ABAP proxy used to send message from ANY SAP System to Integration server,in this case XI adapter not required .
    Server ABAP proxy used to send messages from Intergration server to any SAP System,in this case XI Adapter required.
    How to implement ABAP proxy comunication refer below link
    http://wiki.sdn.sap.com/wiki/display/stage/ABAPproxyproviderimplementationand+testing
    The sama way Client JAVA proxy used to send message to Integration sever from any Web Application ,
    Server JAVA proxy used to send messages to any destination system ,in both cases XI adapter required.
    refer below link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab&overridelayout=true
    Regards,
    Raj

  • Getting IP address from client

    Our application suite is a mish-mash of client-server, web-applications and web pages. One of the requests by our client is to allow them to login into one application and then go directly to another without having to enter their password again. One method we thought of is to capture the IP address of the client when they login, or posssibly send it with the login request. Is there an easy reliable way to do this? The other method I thought of is after logging in the client would be given a key. Where could I store this key? I was thinking in the registry but I am trying to avoid Windows specific design.
    On a side note I am looking at JAAS. It seems that JAAS just gives us a standard access interface, does it the features I am looking for by any chance?

    Use an application bean if you want to keep a list of
    all the users stored on a server.
    When someone logs on, grab the ip, login name, and
    password. Store this in the application scope bean.
    Every time a page is accessed, check the ip to see if
    it has been previously stored in the bean. If so,
    load the login and password and use them for logging
    in to the page. If not, include another preset login
    page, or lik to it with the previous page stored in a
    session scope bean.
    The ips, login names, and passwords should be enclosed
    in a class (simple one with three fields). When
    someone logs on, create a new instance and send it to
    the application scope bean, where it should be stored
    in a java.util.HashMap (my favorite kind, and really
    quick).
    There should also be a way to time-out the user after
    a while of not connecting - removing their ip from the
    application scope bean. Very important if you want
    security.
    That's all I can think of for now.
    Spaceman40Close enough, however I will point out that you don't need to store the password. I am also confused why you are saying an application level bean. This needs to be a bean that can be accessed by all of our applications. If one application creates the bean all of them should be able to see it.
    I was thinking of doing this: Each application gets a session bean that looks for an entity bean with the primary key of the client's IP address. If the bean is there it gets the user ID from that and logs that user into the system. If the bean isn't there, it fires off a login procedure for the client to enter their username and password. If the login is successful it creates the bean. The session bean stays around until the user logs out of the system. The last session bean linked to that entity bean destroys it.
    Has anyone seen this before? Is there a design pattern for a last one out turn off the light in EJB?

  • To upload a file from client machine to server machine

    Hi everybody!
    Could anyone plz help me. I am struck in a problem
    I want to transfer a file from client's machine to server but I am not able to upload
    It is tranferring the file only to the local machine
    I am using orielley package It is transferring files only to my local machine but not to the server .Can anyone correct it. It's very urgent
    how to write the relative path for server
    I am using this path and it is not uploading
    MultipartRequest multi = new MultipartRequest(request, "../<administrator>:<dev2daask>@dev2:C:/123data/", 5 * 1024 * 1024);
    Here is my code:
    <%@ page import="java.util.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="com.oreilly.servlet.MultipartRequest"%>
    <%
    try {
    // Blindly take it on faith this is a multipart/form-data request
    // Construct a MultipartRequest to help read the information.
    // Pass in the request, a directory to saves files to, and the
    // maximum POST size we should attempt to handle.
    // Here we (rudely) write to the server root and impose 5 Meg limit.
    MultipartRequest multi = new MultipartRequest(request, "../<administrator>:<dev2daask>@dev2:C:/123data/", 5 * 1024 * 1024);
    out.println("<HTML>");
    out.println("<HEAD><TITLE>UploadTest</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<H1>UploadTest</H1>");
    // Print the parameters we received
    out.println("<H3>Params:</H3>");
    out.println("<PRE>");
    Enumeration params = multi.getParameterNames();
    while (params.hasMoreElements()) {
    String name = (String)params.nextElement();
    String value = multi.getParameter(name);
    out.println(name + " = " + value);
    out.println("</PRE>");
    // Show which files we received
    out.println("<H3>Files:</H3>");
    out.println("<PRE>");
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements()) {
    String name = (String)files.nextElement();
    String filename = multi.getFilesystemName(name);
    String type = multi.getContentType(name);
    File f = multi.getFile(name);
    out.println("name: " + name);
    out.println("filename: " + filename);
    out.println("type: " + type);
    if (f != null) {
    out.println("length: " + f.length());
    out.println();
    out.println("</PRE>");
    catch (Exception e) {
    out.println("<PRE>");
    out.println("</PRE>");
    out.println("</BODY></HTML>");
    %>

    you have not understood my point
    how does this code will run on servlet when I want to upload a file from client's
    machine to server machine
    what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
    All the computers are connected in LAN
    So how to upload a file from client's machine to server's machine
    Plz give me a solution

  • How to upload file from a client machine to server machine

    hei evryone!
    can anyone pls help me on how i can upload file from a client machine to another machine (or server). using jsp.Then later on, i can also retrieve the names of these files to place it as values for option tag in an html form.I have a seperate screen for uploading the file and the screen for displaying all the files that were uploaded on the server...
    any sample code/ ideas would be much appreciated.Thx!!!!

    hei evryone!
    can anyone pls help me on how i can upload file from a client machine to another machine (or server). using jsp.Then later on, i can also retrieve the names of these files to place it as values for option tag in an html form.I have a seperate screen for uploading the file and the screen for displaying all the files that were uploaded on the server...
    any sample code/ ideas would be much appreciated.Thx!!!!

  • Mavericks (10.9.5) time machine and server 3.2.1 user permissions conflict

    We are using a Mac mini Server (mid 2010) 2.66 GHz Intel Core 2 Duo, 4GB 1067MHz DDR3, NVIDIA GeForce 320M 256MB machine. There are 2 500GB hard disks which have each been partitioned into 2 separate logical disks of 250GB each (in total 4 logical 250GB disks).
    We having been using this server to file share on the local network for years using Snow Leopard, Lion and Mountain Lion (although there were teething problems with Mountain Lion using the new Server app).
    After experiencing some issues with an iCloud password change and App Store failing to load, we decided to try updating to Mavericks. Upon update we were prompted to update the Server app to Mavericks version (Server app 3.2.1), this seemed to work to begin with, preserving file sharing and network user records and permissions, however we soon started to experience issues with permissions and Time Machine. We noticed that the Open Directory set up to store our network users was no longer available in the Server app and so decided to erase one of the alternate partitions and perform a clean install of Mavericks and Server app 3.2.1. This proved to produce the same issues with Time Machine permissions and also difficulties with the shared folder permissions.
    Any help with this would be greatly appreciated.
    Thanks

    Hi Linc,
    Thanks for the reply.
    The Time Machine folders shown are from the Server app Storage tab which shows all connected hard drives. I haven't set TM drives up to be shared and hopefully the following screenshots will illustrate the current setup. This setup was created from a clean install of all involved software i.e. drives were erased and setup from scratch and the TM drives were simply connected and TM took control from there.
    As you can see from these screenshots, when viewing the permissions through the Server app, there appears to be an extra user when compared to the OS Get Info window.
    After leaving TM to its own devices over the weekend, I was greeted with a 'preparing backup' message this morning(Mon 13th October), with a last backup completed on Sat 11th October at 15:19:16. Stopping this backup and starting a manual backup has now resulted in a new, never before experienced error message stating that the backup disks can not be found:
    Console reports:
    I must re-iterate, the disk was erased and simply connected and Time Machine did its thing. Now as 'admin' it is clear that the folders created by TM do not have permissions so that I can simply view them in Finder, but does this directly affect TMs ability to access folders it has created itself?
    One useful bit of information I seem to have neglected is that the erased TM drive is encrypted, however the password was entered when the drive was connected to the machine and there has been no prompt thereafter.
    Please help. Only other comment I can make is that before the update to Mavericks and Server app 3.2.1, none of this was a problem.

  • Install PeopleTools 8.53 with Linux Issue: Client Windows and Server Linux

    Folks,
    Hello. I am installing PeopleTools 8.53 Internet Architecture. Database Server is Oracle Dabase 11gR1. OS is Oracle Linux 5. I have installed JDK7, WebLogic 10.3.6, Tuxedo 11gR1 and PeopleTools 8.53 successfully into Oracle Linux 5.
    Now, I am setting up PeopleTools8.53 Database. Because the Install Wizard has problem, I set up PeopleTools 8.53 Database manually using Oracle starter database instance named PT853. We need to run Data Mover script in a Windows Client machine to populate PeopleSoft Database instance in Linux Sever machine.
    Let's assume:
    VM1: Server machine - Oracle Linux 5
    VM2: Client machine - Windows XP 
    Nicolas has this tutorial:
    http://gasparotto.blogspot.com/2008/01/on-peoplesoft-road-peoplesoft-database_10.html
    From step 15 to step 23, Nicolas does not explain how to connect VM2(client) with VM1(server) and load data from VM2 to VM1.
    My questions are:
    First, do we need to install PeopleTools 8.53 Windows version into the Client machine Windows XP while installing PeopleTools 8.53 Linux version in the Server machine Oracle Linux 5 ?
    Second, how to connect VM2 with VM1 and then load data from VM2 to VM1 ?
    Thanks.

    So if I understand correctly, you have already created the oracle instance in the Linux machine. Then there is no need to install the Tools again in the Linux machine unless you want to run data mover at Linux.
    You can just install the tools and oracle client in windows and load the data by running the data mover from windows. Connection happens through Oracle Client using TNS.
    Steps involved are
    1. Creating the database using createdb10.sql or otherwise (you have already done this)
    2. Run utlspace.sql
    3. Run dbowner.sql
    4. Run ptddl.sql - considering that you are just installing a Tools database and not any application database
    5. Run psadmin.sql
    6. Run psroles.sql
    7. Run connect.sql
    Create the data load dms file by using DBSETUP in data mover
    Run the created script and load the data
    This information is available in any peopletools installation doc
    Hope this helps

Maybe you are looking for