How to get the real IP address

Due to server changes, the method we used to obtain the ip
address of the user (remote_addr) no longer works since it obtains
a specific IP address that is not the user. For our web logs we
were able to make changes to our web server to use this
"headers.x-client-ip" to obtain the correct IP address. Is there
anything in Coldfusion or in the administrator that can do this as
well?

Have a look at : GetHttpRequestData
cheers,
fober

Similar Messages

  • HT201210 I had the ios 7 beta and now I cant figure out how to get the real update

    I have the IOS 7 beta currently on my phone however now I can't figure out how to get the real update

    Be sure to log into developer.apple.com using your developer ID. there should be support on these issues.

  • How to get the real reason of bdb's err?

    The application used some bdb's c-funcs, and get a err-log like below:
    PANIC: fatal region error detected; run recovery
    txn_checkpoint: log failed at LSN [1 6638626] DB_RUNRECOVERY: Fatal error, run database recovery
    How to get the real reason of the err?
    I tried to using db_printlog. But it print all the info of the log file. Another question is:
    How to get the info of exact place?

    The question is still there. Could someone help me?

  • How to get the real name of a sender ?

    When I receive a message under JavaMail, I want to get the real name of the sender but when I do a getFrom() I received a string like :
    =?iso-8859-1?q?Julien=20Dupont?= <[email protected]>
    But I only want the real name...
    How can I do to recover only "Julien Dupont" ?
    Thanks
    Ju

    javax.mail.Address[] addrs= m.getFrom();
    Address a = addrs[0];
    if (a instanceof InternetAddress &&
    ((pers = ((InternetAddress)a).getPersonal()) != null)) {
    String addr = ((InternetAddress)a).getPersonal();
    } else
    addr = a.toString();
    this 'getPersonal()' is the thing you need.

  • How to get the real name of a user from WFSYST-AGENT

    Hi,
    I am retrieving the WFSYST-AGENT value (which correspond to the US<user_id> of the agent responsible of a task) in a container variable in my workflow.
    I would like to get the real name of the user represented by WFSYST-AGENT. How should I do that ?
    Thanks in advance for your help.
    Thibault

    Hi,
    Take the user name and write a select for database table USER_ADDR fetching fields NAME_FIRST and NAME_LAST by passing BNAME = username.
    Regards,
    Jayesh

  • How to get the real path of the xml file

    I have a java application
    following is the package structure
    com>>gts>>xml
    having file---------> MyXML.xml
    com>>gts>>java
    having java program to read the file
    Problem is if I use File file = new File("..\\xml\\MyXML.xml");
    java.io.FileNotFoundException: E:\LEARNING_WORK_SPACE\JavaXml\..\xml\MyXml.xml (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
    How do I get the real path of the xml file.
    Edited by: shashiwagh on Jan 29, 2010 11:46 AM

    Hi,
    if your XML file is inside a package you can easily get it from the classloader.
    Note that your application maybe packaged inside a jar so it is not safe to use java.io.File for this purpose.
    You have an xml file in :
    com/gts/xml/MyXML.xml
    in a class of the same module (that will packaged in the same jar) for example com.gts.java.XmlLoader :
    // To get the stream :
    InputStream is = this.getClass().getResourceAsStream("/com/gts/xml/MyXML.xml");
    // Or the URL :
    URL xml = this.getClass().getResource("/com/gts/xml/MyXML.xml");Hope it helps.

  • WebGUI: How to get the users IP-address

    Hello.
    I have to develop a simple web-application, that will enable users to reset their forgotten passwords or to unlock themselves, if they are locked because of too many failed login-attempts.
    As you can imagine, this application must not require a login. For security reasons any action has to be logged.
    The username can not be used for logging-purposes, as the application is executed using a default-user defined in transaction SICF. That's why the IP-address of the user's pc has to be written into the log-table.
    My problem is, that i do not know how to get it. I have read many articles on help.sap.com, searched in the sap notes, used Google and tried to find usefull functions in our SAP-system, but after two days it still does not work and i do'nt know, what else to try.
    At the moment i am able to read the name of the client-pc with my test-coding.
      DATA:    lv_webgui TYPE xfeld.
      STATICS: lv_computer_name TYPE string,
               lv_username TYPE string.
      CLASS: cl_gui_frontend_services DEFINITION LOAD.
      lv_webgui = cl_gui_frontend_services=>www_active.
      IF lv_webgui EQ gc_true.
        " Begin of experimental coding #1
        CALL METHOD cl_gui_frontend_services=>get_computer_name
          CHANGING
            computer_name = lv_computer_name.
        " End of experimental coding #1
        " Begin of experimental coding #2
        CALL FUNCTION 'ITS_ENV_GET_VARIABLE'
          EXPORTING
            variable = 'COMPUTERNAME'
          CHANGING
            value = lv_computer_name.
        " End of experimental coding #2
        MESSAGE s000(38) WITH lv_computer_name.
      ENDIF.
    The problem is, that the Internet Explorer 7 (version: 7.0.5730.13CO) shows a warning before the scripts, generated by the ITS, are executed on the client. If the user clicks "abort", the scripts are not executed and the name of the client-pc will not be returned to the server (experimental coding #1 returns the value 'localhost', experimental coding #2 returns an empty string).
    That's why the experimental coding is quite useless, because the user is able to avoid it's execution.
    In theory i could use experimental coding #2 and stop the execution of the program if an empty string is returned but some users in our company have administrator-privileges and so they can change environment-variables at will. So i am afraid, that this procedure is not an option.
    I am quite sure, that there must be a way to read the IP-address directly from the ITS without using the functions in my experimental coding, but i have no clue how this could be done.
    Any suggestions would be highly appreciated.
    As i do'nt know how to determine the version of our ITS, i have to leave this information out for the moment. If anyone needs this information it would be very kind, if he or she could tell me how to get the required information.
    EDIT: As we are using SAP ECC 6.0 and Services are maintained via transaction SICF, it should be ITS 6.40.
    Regards
    Jörg Neumann
    Edited by: Jörg Neumann on Oct 16, 2009 1:27 PM

    Hello Wolfgang.
    Thanks for your reply.
    I can imagine, that the application as described above seems to be very insecure, but the description is not complete - i left some parts out, as they were not relevant for my problem.
    1.) The application can only be reached from our intranet.
    2.) Unlocking / Resetting password can be done three times per day, which limits the number of attemps for cracking a password to a total of 20 per day.
    3.) The owner of the account will receive an email if the acount was changed by the application. So if somebody tries to crack the password, the owner of the account will get a total
    20 3 mails per day - which should make him/her at least a litte suspicious. 
    I know, that the logged data is quite worthless, as computername and username are read using clientside-scripting and there could be a proxy between the client and the server, but this is exaclty, what i have to develop.
    I will keep the logging-problem in mind and talk about it in the next meeting, though i am quite sure, that it wo'nt change anything.
    Regards Jörg Neumann
    Edited by: Jörg Neumann on Oct 19, 2009 4:57 PM

  • How to get the local IP address?

    Hi,
    I try to obtain the users local IP address similar to:
    InetAddress localHost= InetAddress.getLocalHost();
    String localIP = localHost.getHostAddress();
    InetAddress[] inetAddress = InetAddress.getAllByName(localHost.getHostName());
    for (int k = 0; k < inetAddress.length; k++)
       if(!inetAddress [k].getHostAddress().equals(localIP))
          return inetAddress [k].getHostAddress();
    }This code works fine in a stand alone application. When I try to use it in conjunction with Web Start it only returns 127.0.0.1.
    I think there's no Service from Web Start that gives me the users IP address. Or am I wrong?
    Does anyone know a solution for this?
    Thanks in advance!

    Hello,
    I use java.net.InetAddress.getLocalHost().getHostName();
    in my javaws and I get the real hostname.
    Probably your DNS is not correct,
    or other possible problem: sign your jars, so you get full access to the System resources.
    regards.

  • How to get the real client ip by the request header like asp/php,etc?

    I want to get the real client ip by request.getHeader("HTTP_X_FORWARDED_FOR"), who use the proxy server to access my site, the way asp/php using, however, I got nothing. Does jsp support the similar header from request, if yes, how to do?
    thanks for your tips.
    frederick

    I want to get the real client ip by request.getHeader("HTTP_X_FORWARDED_FOR"), who use the proxy server to access my site, the way asp/php using, however, I got nothing. Does jsp support the similar header from request, if yes, how to do?
    thanks for your tips.
    frederick

  • How to get the real longtitude latitude of a pixel  from Mapviewer'spicture

    I have application that will show a map returnning from MapViewer, and in my request I have :
    1. MapSize:
    2. MapHeight:
    3. MapWidth:
    4. CenterX:
    5. CenterY:
    when user click on the picture I receive X, Y in coordinate of PictureBox so How to change them to the real longtitue, langtitude.

    Example: I have
    MapSize=8
    width=500
    Height=500
    Center X= -122.433 (longtitude)
    Center Y= 37.7878 (latitude)
    When I send a request I will receive a map reprented in my monitor with 500*500 pixel?
    I click on a pixel in that picture and i get the X=350, Y=340 (compare with TopLeft pixel of map is (0,0)).
    So how can i get the real longtitude, latitude of that pixel.
    In document i see 1 inche =72dpi --> so a real height of my map = 500/72=6.94 Inches
    And the problem is how i caculate the map scale.

  • Get the real IP address of a client

    Hi,
              i know it is a common issue but I haven't found any answer in the forum. I would like to get the remote IP address of a client in a servlet. There's Apache server with Weblogic module used in the architecture of our web application. The getRemoteAddress method of ServletRequest class only returns the IP address of Apache. Is the remote address stored in the HTTP header ?
              Thanks,
              Bengali

    >You could be getting the IP address of a proxy
              Yes I know this, and since it's for an Internet application I don't care
              about their private address... the IP address of their NAT gateway is fine.
              Anyway,
              the HTTP header field is "X-Forwarded-For" for those who would look for
              it.
              Thanks,
              bengali
              > Even if you could get an IP address from the client it is not always going
              > to be the real IP address. You could be getting the IP address of a proxy
              > server or some other intermediate network device. So different users would
              > have the same IP. Getting a host name can also be problematic because
              > reverse DNS might not be enabled for the domain. Also some of the larger
              > ISPs have employed an IP hopping scheme where the DHCP IP address might
              > change in the middle of a user's session.
              >
              > Now in terms of your original question the IP address of the client might be
              > in the HTTP Headers, use the getHeaders() method to spit out all of the HTTP
              > headers and one of them might be the IP Address
              >
              > Dave
              >
              >
              > "Luc Dewavrin" <[email protected]> wrote in message
              > news:25120100.1092994129792.JavaMail.root@jserv5...
              >
              >>Hi,
              >>
              >> i know it is a common issue but I haven't found any answer in the forum.
              >
              > I would like to get the remote IP address of a client in a servlet. There's
              > Apache server with Weblogic module used in the architecture of our web
              > application. The getRemoteAddress method of ServletRequest class only
              > returns the IP address of Apache. Is the remote address stored in the HTTP
              > header ?
              >
              >>Thanks,
              >>Bengali
              >
              >
              >
              

  • How to get the Real Path of a file which is accessed  by URL?

    iam using tomcat6.0.
    I have a file xyz.xml at the top of the webapplication HFUSE which i can able to access by URL
    http://localhost:8080/HFUSE/xyz.xml
    My problem is how to get the realpath of the file "xyz.xml" for reading and writing purposes.
    I tried various things but i could not able to successfully solved the problem?
    1) File f = new File("/xyz.xml");
    print(f.getAbsolutePath()) ============== it is not fetching the file @ http://localhost:8080/HFUSE/xyz.xml rather it is creating a file
    at the root of the drive where eclipse is running.
    2) File f = new File("xyz.xml");============> this is also not working , it is creating the file xyz.xml in the eclipse directory ..................
    Can anyone please guide on this problem?

    RevertInIslam wrote:
    If you want your context root(i.e HFUSE)
    use this:
    request.getContextPath() //where request is HttpServletRequest object to get the needful path.
    e.g:
    File f = new File(request.getContextPath()+"/xyz.xml");//it will create the file inside HFUSE.
    Hope this helps.
    Regards
    BWrong. The File constructor expects an absolute filesystem path. The HttpServletRequest#getContextPath() doesn't return the absolute filesystem path, it only returns the relative path from the current context root. Use ServletContext#getRealPath() instead, it returns the absolute filesystem path for the given relative path from the current context root.
    File file = new File(servletContext.getRealPath("/"), "xyz.xml");

  • How to get the vm ip address in scvmm 2012

    Hi,
    I want to get the vm ip address in scvmm 2012, who can help me?

    I have seen lots of people ask this because they can see IP addresses in other Virtualization Consoles, Unfortunately SCVMM doesn't show IP address of the VMs on the console but you can use below script to populate Custom1 property of VMs with IP address
    and make Custom1 Column visible (manually) in SCVMM Console... HTH
    param ( $VMMServer = 'localhost')
    $CustomProp = Get-SCCustomProperty -Name Custom1
    $VMs = get-SCVirtualMachine -VMMServer $VMMServer
    foreach ($VM in $VMs)
     $NetAdp = get-SCVirtualNetworkAdapter -VM $VM.name
     if ($NetAdp.IPv4Addresses)
     [String[]]$str = $NetAdp.IPv4Addresses
     Set-SCCustomPropertyValue -CustomProperty $CustomProp -InputObject $VM -Value "$str"
    Disclaimer: The sample script is provided AS IS without warranty of any kind.

  • How to get the real client ip from HttpClusterServlet?

    Hi All,
              WL 6.0 sp2 on Linux.
              When HttpClusterServlet is used, invoking HttpServletRequest.getServerName()
              will return the server name of the proxy server where HttpClusterServlet
              installed,
              rather than the actual client's ip which we are interested in.
              Anybody knows how to get the correct client ip through the proxy server? Any
              workaround? Or does a patch exist?
              Any help will be appreciated,
              Lynch
              

    Sorry I mean HTTPServlet.getRemoteAddr()
              "Lynch" <[email protected]> ¼¶¼g©ó¶l¥ó
              news:3baea0c5$[email protected]..
              > Hi All,
              >
              > WL 6.0 sp2 on Linux.
              >
              > When HttpClusterServlet is used, invoking
              HttpServletRequest.getServerName()
              > will return the server name of the proxy server where HttpClusterServlet
              > installed,
              > rather than the actual client's ip which we are interested in.
              >
              > Anybody knows how to get the correct client ip through the proxy server?
              Any
              > workaround? Or does a patch exist?
              >
              > Any help will be appreciated,
              > Lynch
              >
              >
              

  • How to get the real length of a 3D room

    Hi, I want to built a 3d room. When I import a obj file, the vector3f length does not equal to the real length(much longer than the real one), I know there must be relation between them, but how I can get the relation?
    for example:
    T3Droom.setTranslation(new Vector3f(0.7f,1f,0.5f));
    How many metres the 0.7f equals to?
    thanks a lot

    javax.mail.Address[] addrs= m.getFrom();
    Address a = addrs[0];
    if (a instanceof InternetAddress &&
    ((pers = ((InternetAddress)a).getPersonal()) != null)) {
    String addr = ((InternetAddress)a).getPersonal();
    } else
    addr = a.toString();
    this 'getPersonal()' is the thing you need.

Maybe you are looking for

  • ID3 Tags in iTunes 8

    The ability to change ID3 tags seems to have disappeared from the Advanced menu. Anyone know where it has gone? Nathanael

  • Help file for CS5 not available on Win 7 64bit

    Hi, I try to display the help file from within PS CS5 and that is not working. I can neither watch the community help online nor download it for offline use since the app seems unable to connect to a working online source. It shows "The requested URL

  • Field value in function module BAPI_SALESORDER_GETSTATUS

    Hi Ppl, I am using FM BAPI_SALESORDER_GETSTATUS and for each line item a value of "B" is returned in DLV_STAT_H field, can somebody tell me where where to find the meaning of these values? Thanks Rob

  • PDF appears black in Preview

    Okay.  I have OSX 10.7.4. I have Adobe Reader 10.3.1 (latest version). When I look at the pdf online, it looks fine.  When I open a different PDF that's on my Mac, it looks fine. When I open the PDF I want to print from the net, I click File-Print, a

  • Why no pictures on websites since FF9 + new addons?

    Strictly text on eBay, Amazon, et al. I can get full display with IE, but not FF. I added some new security measures after updating to FF9 & no display since. Tried disabling Adblock plus popups since that's the only one involving pictures, but no lu