How to get IP address of the client?

Hi,
I use the SAP Portal 6 SP2. I need to prevent user from accessing to iview depending of their IP. How can I get the IP of the users? What would the best practice in this case to personalize the iview depending of the IP?
Thank you,
Maria

HI,
Use the below without Proxy detection:
<%
    String ipaddress = request.getRemoteAddr();
%>
with Proxy detection:
<%
    if (request.getHeader("HTTP_X_FORWARDED_FOR") == null) {
        String ipaddress = request.getRemoteAddr();
    } else {
        String ipaddress = request.getHeader("HTTP_X_FORWARDED_FOR");
%>
Regards,
Birla.

Similar Messages

  • !!??? WAN IP?? How to get WAN IP of the client computers..?

    Hi,
    How can I catch the WAN IP of my client computers?? The clients are behind a router and I don't wanna put the code on the client side. I wanna do it using Java Web Service Call.
    Any idea how to go about..?

    Are you writing a client application that will detect
    it's internet gateway address from within an
    intranet? Or is the application a server that
    receives client connections?The application is a server which will receive client connections and I need to get the WAN/External IP using Java Web Services. How do I go about it?? I'm not aware of it!!
    Any help appreciated.

  • How to get IP-Address of the database

    Hi,
    I need to get the IP address of the database (MSSQL7.0) , that connects to my application . There are two ways to be connected: via DSN(jdbc:odbc:dsnName) or directly (jdbc:odbc:host:port). How can I get (both cases) the IP address of server I connected to.
    Cheers

    Hi,
    You could try connecting and then typing netstat -a at the DOS command prompt. This should show all open connections etc.
    best,
    kev

  • How to get IP address of the Managed Server, in a cluster?

    Hello,
    I have created a cluster and have two managed servers in it. WLS version is 10.3 and paltform is Windows. Both the managed servers are on different machines. And I have Sun one web server (version 6) configured instead of the WLS in-built web server. I want to display, in my JSP, the IP/host name of the managed server to which the request is going to (forwarded by the Sun one server). How do I do that?
    Any help would be greatly appreciated. Thanks in advace.
    Thanks,
    Sanjay

    There isint a way to get this which is weblogic specific.
    you can try the following code to get it
    import java.util.*;
    import java.lang.*;
    import java.net.*;
    public class GetOwnIP
    public static void main(String args[]) {
    try{
    InetAddress ownIP=InetAddress.getLocalHost();
    System.out.println("IP of my system is := "+ownIP.getHostAddress());
    System.out.println("hostname = " + ownIP.getHostName());
    }catch (Exception e){
    System.out.println("Exception caught ="+e.getMessage());
    Hope this works

  • How to get the IP address of the Client machine???

    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.

    SowmyRaj wrote:
    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.Which client's IP addess?
    SYS_CONTEXT('USERENV','IP_ADDRESS') should give you the IP address of the machine from which the client is connected. So you are running sqlplus from Server?
    To check other session's information, you can check V$SESSION view.

  • Getting the IP address of the client

    How do I get the IP address of the client that makes a request in the Internet?
    getRemoteAddr() cannot be used since the client may be from a proxyserver or an ISP provider ...
    Can I get some help on this?
    Thanks in advance
    Jai

    I think you cannot get the IP address of the client if he uses a proxy server.
    Hope to hear good news from others.
    Regards.
    Jeffrey

  • I am getting this error message when trying to get to a college webpage Firefox doesn't know how to open this address, because the protocol (html) isn't associated with any program.

    I am trying to get to a college webpage for information and get this error message from firefox Firefox doesn't know how to open this address, because the protocol (html) isn't associated with any program.
    == This happened ==
    Every time Firefox opened
    == whe trying to access webpage

    Is this coming from a link, or from something you are trying to type in the address bar?
    Try replacing the "html" at the start with "http",
    so if you have html://somesite.edu,
    change it to http://somesite.edu.

  • I have installed HP2035n. But when i try to open the embedded web server, i get the error "Firefox doesn't know how to open this address, because the protocol (fe80) isn't associated with any program." What is the possible solution?

    I have installed HP2035n. But when i try to open the embedded web server, i get the error "Firefox doesn't know how to open this address, because the protocol (fe80) isn't associated with any program." What is the possible solution?
    I typed in the IPv6 address of the printer in the address feild of firefox.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to capture the IP address of the client Machine.

    HI...
    I want to capture the ip address of the client machine and store it in a field.
    My client wants to capture the ip address so that he can easily trace out from
    which client system particular work is done.
    if there any pre defined function or syntax is there to get the IP address...
    with cheers
    sprity....

    Hi.....
    i have a attached the web_util.pll n web_util.olb and run the form...
    it is still staying web_util.clientinfo is not declared....
    i want to know where to attach the olb thru subclass...
    i tried in attaching the text item(ip_addr) property.After clicking the subclass it show the we_util.olb.
    but there is no value for in it for both object n property.
    i think if i get info on this then my work is done....
    anyone throw a light on my doubt...........
    with cheers
    sprity...

  • When trying to stream video I am getting this error message "Firefox doesn't know how to open this address, because the protocol (st) isn't associated with any program." How do I fix this?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/782039]</blockquote><br>
    When trying to stream video I am getting this error message "Firefox doesn't know how to open this address, because the protocol (st) isn't associated with any program." How do I fix this?

    Protocol error usually indicates that the very leftmost part of the URL is not recognized.
    So http://, ftp://, rtsp://, usually work.
    ableton:// would need to be added by some software somewhere...
    Can you get instructions from the vendor? Does these posts seem relevant:
    [http://forum.ableton.com/viewtopic.php?f=32&t=112368 Ableton Forum • View topic - [dds&#0093; Bug with Fireforx browser and downloading project?]
    [http://forum.ableton.com/viewtopic.php?f=32&t=109918 Ableton Forum • View topic - [gck&#0093; Problem downloading shared sets from Ableton server.].

  • I try to email or IM a link or comment on a website page and I get this error message: Firefox doesn't know how to open this address, because the protocol (ymsgr) isn't associated with any program.

    Firefox doesn't know how to open this address, because the protocol (ymsgr) isn't associated with any program. I try to email or IM a link or info on a web page I get this error message. How can I send an email or IM?

    Protocol error usually indicates that the very leftmost part of the URL is not recognized.
    So http://, ftp://, rtsp://, usually work.
    ableton:// would need to be added by some software somewhere...
    Can you get instructions from the vendor? Does these posts seem relevant:
    [http://forum.ableton.com/viewtopic.php?f=32&t=112368 Ableton Forum • View topic - [dds&#0093; Bug with Fireforx browser and downloading project?]
    [http://forum.ableton.com/viewtopic.php?f=32&t=109918 Ableton Forum • View topic - [gck&#0093; Problem downloading shared sets from Ableton server.].

  • When trying to go into itunes I get this message "Firefox doesn't know how to open this address, because the protocol (itmss) isn't associated with any program"

    When trying to log into itunes i get this message:
    Firefox doesn't know how to open this address, because the protocol (itmss) isn't associated with any program.
    I had to reset Firefox (due to slowness and shockwave error message that I kept getting). Itunes was downloaded after the reset, but I can't get into it? Any ideas?

    I ran into this same problem after Firefox auto-updated to v24! I'm on the Beta Channel and I had Firefox set to automatically update.
    What I did to correct the problem:
    1. Turned off all automatic updating.
    Options> Advanced> Update [tab]
    Firefox updates
    [x] Check for updates, but let me choose whether to install them
    [ ] (unchecked) Use a background service to install updates
    I also unchecked;
    [ ] Search Engines (I will turn this back on after I'm done with my experiment.)
    2. Googled 'Firefox v23 download', downloaded and installed: Firefox_Setup_23.0b1.exe (version 23, Beta 1)
    Since I reverted back to v23, I haven't had any problems.

  • I get keep getting this when I get emails ( dosen't know how to open this address because the protocal(blocked http) isn't associated with any program

    I get keep getting this when I get emails ( dosen't know how to open this address because the protocal(blocked http) isn't associated with any program

    That is the current AKO policy, see [/questions/747157]
    *http://usacac.army.mil/CAC2/MilitaryReview/EmailAnnouncementNotification.pdf

  • I am trying to get Firefox to open Vuze when I click on a magnet link, I get the following message: Firefox doesn't know how to open this address, because the protocol (magnet) isn't associated with any programme. tell me the solution

    when i try to open torrent using magnet, I get the following message. Firefox doesn't know how to open this address, because the protocol (magnet) isn't association to any programme.

    '''I had this problem and just re-installed Firefox. Problem solved. In my case I believe it was due to installing FlashGet. Though I uninstalled FlashGet, it had pre-empted the Magnet links / protocol. I hope this helps you with your instance. Happily I had the installer for my version of Firefox (7.0.1) saved and used that but you might need to search for your current version or install a later version'''

  • Have Spotfy, Facebook App on home computer, trying to open on laptop and get this ERROR CODE: Firefox doesn't know how to open this address, because the protocol (spotify) isn't associated with any program. How can I fix?

    I have used Spotfy Music App on Facebook on my home computer, now trying to use on laptop, and i get this ERROR CODE: Firefox doesn't know how to open this address, because the protocol (spotify) isn't associated with any program. How can I fix this? Thanks in advance for any help

    Hi,
    You may have to install the Spotify application on the laptop to get Spotify protocols recognized.

Maybe you are looking for

  • Win xp - adobe 7.0.7 - ole doesn't work anymore.

    Hi, I have a (ms-access) application displaying pdf's in independant object frames. Only acrobat reader is installed and used. This app runs on ~50 independant computers. Running in a VM on a mac (parallel - win xp pro sp 3 - access 2K), one of my cu

  • Problem Creating Internal pdf Links In Preview

    I am trying to create internal links in a pdf file within Preview. When I "Set Destination" to a particular page within the file, the link always goes to the page after the one I set. The strange thing is that when I view the same file on a Windows P

  • Default username and password for Oracle 10g

    I have installed Oracle 10g Standard edition on my PC, but do not know the username and password to login. Does anyone know the username and password? Thanks, YR

  • Best way to import the word or PDF file

    Hi All, I am going to start a new project in Robohelp (7.0). Presently i am working on the evaluation version, but will get the original copy soon. All the existing documents are Pagemaker files and i need to copy them into Robohelp project. I have n

  • Live type letters are showing all broken up...

    Live type letters are showing all broken up, more so when I export them to FCP Studio