How to detect remote (client) host name or remote host address?

Hello!
I need to receive remote host name or remote IP address in the BSP controller DO_REQUEST method. How to do it?
In Java I can use getRemoteAddr() or getRemoteHost() methods of HttpServletRequest class. But in the BSP I can not find analogues of these methods.
Please help
Best regards,
Eugeny

Hi,
I guess there is something "cleaner", but here is a solution:
DATA l_host TYPE string.
l_host = me->request->if_http_entity~get_header_field( '~remote_addr' ).
Regards,
Tanguy

Similar Messages

  • Several contacts have the same email address. How can I choose which contact name appears on the address line in Mail?

    Several contacts have the same email address. How can I choose which contact name appears on the address line in Mail?

    you can't really, but you might be able to filter them by message content into folders for each, or color them with tags

  • How to detect USB Flash Drive name in LabVIEW

    Hi there
    I was looking for how to detect a USB Flash Drive name in Labview
    appearently every time i insert USB Flash Drive in a computer, windows assign it a different name
    once "J:" and sometimes "M:"
    Is there anyway to obtain USB Flash Drive name programmatically in Labview ?
    Because in my program an user shouldn't be able to access HDD Drives except his USB Flash Drive (for inserting some file ...)
    thank you and excuse me for my poor english 

    I was able to get the demo.vi to load, but it could not load the other two because there is no block diagram associated with those.  I'm not sure why this is.  I haven't had any issues with other llbs before.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • How to detect ipaddress client when computer client is turn on

    I have problem :
    ** how to detect ipaddress from client when the computer client is turn on???
    i have assumption : server ipaddress 192.168.2.21
    client_1 ipaddress 192.168.2.26
    client_2 ipaddress 192.168.2.27
    anyone want to help me,please give me the sample program.
    thanks before.

    your client will have to
    1) start up when the machine does
    2) make a TCP/IP connection to the server as it starts up
    when the server gets a connection from the client, you can query the relevant Socket object for the source IP address
    a simple 'google' for java socket tutorials, or a search of the Sun site will show you more quickly and definitively than anyone on a forum

  • How to detect ipaddress client when client computer is turn on

    I have problem :
    ** how to detect ipaddress from client when the computer client is turn on???
    i have assumption : server ipaddress 192.168.2.21
    client_1 ipaddress 192.168.2.26
    client_2 ipaddress 192.168.2.27
    anyone want to help me,please give me the sample program.
    thanks before.

    cross post
    http://forum.java.sun.com/thread.jspa?threadID=786950&messageID=4471598#4471598

  • How to hide remote IP address in header for roaming users

    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
    Using /opt/sun/comms/messaging64/config/imta.cnf (compiled)
    Hello everyone,
    We have a new messaging server and have been struggling in our effort to figure out how to hide the remote IP address of users who send email from a remote location. When a roaming user sends out an email from a remote location using SMTP AUTH to authenticate, the messaging server includes the remote ISP's dynamic IP address in the header of the email, which in turn results in some recipient mail servers blocking the mail message as spam. What we want to do is have messaging server rewrite or remove the roaming user's dynamic email address so the header does not reflect a user working remotely. The net effect would be the header not reflecting any external address and the messaging appearing to have originated internally.
    Any assistance on this would be greatly appreciated. Thanks in advance.

    MarketData.com wrote:
    We have a new messaging server and have been struggling in our effort to figure out how to hide the remote IP address of users who send email from a remote location. When a roaming user sends out an email from a remote location using SMTP AUTH to authenticate, the messaging server includes the remote ISP's dynamic IP address in the header of the email, which in turn results in some recipient mail servers blocking the mail message as spam.How often is this occurring (messages being blocked as "spam" due to the content of an existing Received header)?
    What spam software is being used that blocks these messages?
    Very large organisations/ISP's use Sun Messaging Server and this is the first time I have heard of this occurring.
    What we want to do is have messaging server rewrite or remove the roaming user's dynamic email address so the header does not reflect a user working remotely. The net effect would be the header not reflecting any external address and the messaging appearing to have originated internally.Removing the IP address information is going to be extremely difficult. The standards are quite clear that the Received: header should include the IP address information.
    RFC 2821 (SMTP), Section 4.4 Trace Information:
       When an SMTP server receives a message for delivery or further
       processing, it MUST insert trace ("time stamp" or "Received")
       information at the beginning of the message content, as discussed in
       section 4.1.1.4.
       This line MUST be structured as follows:
       -  The FROM field, which MUST be supplied in an SMTP environment,
          SHOULD contain both (1) the name of the source host as presented
          in the EHLO command and (2) an address literal containing the IP
          address of the source, determined from the TCP connection.Regards,
    Shane.

  • How to detect the installed device name

    Hi,
    I am using Labview 8.5.
    I need to display the device name installed in my pc.
    I have a PXI chassis with DAQ,Digitizer and function generator card.To display the DAQ device name used the "DevName" property of DAQmx driver.Similarly to display the Digitizer and function generator card name which function do we need to use.
    Please tell me how to do this?
    Regards
    Meenatchi

    Please see the attached zip of VIs.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Detect Installed Device Details.zip ‏131 KB

  • Question on how to detect remotely, computers having issues processing GPO's

    We are troubleshooting multiple Win7 computer issues with SCCM 2007 SP2 R3 SUP patching--the patches fail for some reason.
    In checking multiple computers, runngin GPResults shows numerous 1085 and 1096 errors, with the 1096 error indicating that the registry.pol file cannot access (the data is invalid).  After experimentation, it seems that deleting the file and rebooting
    is fixing the computers, and SUP patching begins to work fine.
    While we discussed simply creating an SCCM package to delete the file and reboot the computers, for all computers that are not patching--we are looking for a way to detect this issue, via SCCM HW or SW or DCM inventory methods, so we can correctly target.
    Two questions:
         1.  Anyone have a method we can used to detect this problem remotely?
         2.  Any harm in just deleting this file, if we have a problem computer, in the hopes that will fix the issue?
    Thanks!

    The customized group policy settings are stored into registry.pol. What i can assume is the corruption of the registry.pol file & there can be numerous reason for this such as viruses, disk corruption etc. To troubleshoot issues with the GPO at the advanced
    level, you can make use of uderenv debug logging.
    UserEnv Debugging Line by Line
    http://blogs.msdn.com/b/richpec/archive/2009/07/20/userenv-debugging-line-by-line.aspx 
    What is logged to the Userenv.log file? 
    http://blogs.technet.com/b/instan/archive/2008/09/17/what-is-logged-to-the-userenv-log-file.aspx
    Awinish Vishwakarma - MVP
    My Blog: awinish.wordpress.com
    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

  • How to detect is response deliverred to the client?

    Hello everybody...
    I have problem and don't know how to solve.
    My server application runs on apache tomcat 5.5, and deals with some important data transactions.
    After getting the request, server has 5 sec. to send response, after that clients will close their sockets.
    The connection can be very slow, (GPRS), so it is very possible that transaction will not be over in that time.
    I need the way to find out, on my server side, when response isn't get to client in 5 sec.
    Is there any idea how to do that?
    Sorry if my English is not so perfect.
    Thanks

    Yes, but that way of write timeout means that write have 5 sec to send buffer to the underlying protocol.
    I can't know if TCP succeed or not to deliver data in that short time. I think write is asynchron.
    Problem is how to detect when client is disconnect and data are not delivered.
    Once again, sorry if my English is not so good.

  • Detect RMI client problem. Gotta be anothe way...

    For a while, I've been searching how to detect RMI client unexpected disconnection but there is no real answer for that. There is NO other way to let server know that client is disconnected beside using call back or using periodically checking client?? Something like unreferenced() to tell specific client is not holding the reference or something like that..

    In our system, almost every Remote interface has a void ping() method, and we periodically call this, and if there is an Exception thrown we do whatever we need to, to clean up.
    Often we create a local (static) proxy class to the Remote object that knows how to do the clean up, and has same methods but doesn't throw exceptions. it does NOT implement the Remote interface so there is no need to catch exceptions at every point it is called. This proxy can control the periodic pinging.
    I guess you could extend remote and add a ping method to it (call this PingableRemote), then extend this new interface instead of Remote directly.
    Also create a class that takes a PingableRemote and some callback object in it's constructor, which could then take care of the pinging and "remoteLost" notification in a form that can be re-used.
    Bruce

  • Multiple host-addresses

    How can you declare multiple host-address and/or host-range elements in tangosol-coherence-override.xml?
    <coherence><cluster-config><authorized-hosts>
    <host-address>dnucacheclient1.sybase.com</fhost-address>
    <host-address>dnucacheclient2.sybase.com</host-address>
    </authorized-hosts></cluster-config></coherence>
    Error:
    2006-12-15 09:28:15.511 Tangosol Coherence AE 3.2/363 (RC2) <Info> (thread=main,member=n/a): Loaded operational overrides from resource "file:/C:/dscache/tangosol-coherence-override.xml"
    2006-12-15 09:28:15.527 Tangosol Coherence AE 3.2/363 (RC2) <Error> (thread=main, member=n/a): Failed to apply the element override: /tangosol-coherence-override-dev.xml; java.lang.UnsupportedOperationException: Override element is not unique:
    <host-address>dnucacheclient1.sybase.com</host-address>
    How can you allow separate clusters to start on the same subnet? And how do you start a separate cluster on the same subnet, if a running cluster has an authorization restriction?
    Error:
    2006-12-18 13:09:22.629 Tangosol Coherence DGE 3.2/363 (RC2) <Error> (thread=Cluster, member=n/a): This member is not authorized to join the cluster. Rejected by Member(Id=1, Timestamp=2006-12-18 13:08:33.279, Address=10.20.17.122:8088, MachineId=3962).
    Exception in thread "main" java.lang.RuntimeException: Failed to start Service "Cluster" (ServiceState=SERVICE_STOPPED, STATE_JOINING)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:61)

    You can try something like this,
    <authorized-hosts>
    <host-address id="1" system-property="tangosol.coherence.authorized.host.1"></host-address>
    <host-address id="2" system-property="tangosol.coherence.authorized.host.2"></host-address>
    <host-address id="3" system-property="tangosol.coherence.authorized.host.3"></host-address>
    <host-address id="4" system-property="tangosol.coherence.authorized.host.4"></host-address>
    <host-address id="5" system-property="tangosol.coherence.authorized.host.5"></host-address>
    </authorized-hosts>
    Thanks
    Prabhakar

  • HOW TO CONNECT FROM CLIENT MACHINE TO REMOTE MACHINE(SERVER DATABASE MACHINE)

    Hi friends.
    I need your valuable help,
    I am using oracle 11g database.
    I have two system.One is client machine and installed oracle 11G client software.
    and from this machine user can connect remote server database(This is old remote system, this is just for Information).
    And i have created one new database called RMANP in new remote server machine (this is the machine, in which i need to connect from client machine)
    ex
    CLIENT MACHINE DETAIL IS:
    system66
    ip address is 192.162.21.66
    REMOTE SEVER MACHINE DETAILS IS:
    system56
    ip address is 192.162.21.56.
    and i add entry on client machine tnsname.ora file like following,
    RMANP=
    (DESCRIPTION=
       (ADDRESS=
         (PROTOCOL=TCP)
         (HOST=192.168.21.56)
         (PORT=1521)
       (CONNECT_DATA=
         (SERVICE_NAME=rmanp)
    But when i try to connect to remote server from client machine in sqlplus, i am getting an error, Like following,
    SQL> CONN SYS/SYSPW AS SYSDBA;
    ERROR:
    ORA-12560: TNS:protocol adapter error

    2684285 wrote:
    Hi friends.
    I need your valuable help,
    I am using oracle 11g database.
    I have two system.One is client machine and installed oracle 11G client software.
    and from this machine user can connect remote server database(This is old remote system, this is just for Information).
    And i have created one new database called RMANP in new remote server machine (this is the machine, in which i need to connect from client machine)
    ex
    CLIENT MACHINE DETAIL IS:
    system66
    ip address is 192.162.21.66
    REMOTE SEVER MACHINE DETAILS IS:
    system56
    ip address is 192.162.21.56.
    and i add entry on client machine tnsname.ora file like following,
    RMANP=
    (DESCRIPTION=
       (ADDRESS=
         (PROTOCOL=TCP)
         (HOST=192.168.21.56)
         (PORT=1521)
       (CONNECT_DATA=
         (SERVICE_NAME=rmanp)
    But when i try to connect to remote server from client machine in sqlplus, i am getting an error, Like following,
    SQL> CONN SYS/SYSPW AS SYSDBA;
    ERROR:
    ORA-12560: TNS:protocol adapter error
    There is nothing in your connect string to tell sqlplus which database you want to connect to.  Therefore it assumes (by default) that you want to connect to a *local* database whose name is identified by the value of the environment variable ORACLE_SID.  And there is no such database, so he gets the reported error trying to establish a connection to a non-existent local service.
    You need to specify your target database, thusly:
    SQL>  conn sys/syspw@rmanp as sysdba
    BTW, connecting to a remote database as sysdba is considered by most DBAs to be a big secruity breach.  If you really need sysdba privileges (rare) you should be logged on to the database server machine with proper OS credentials, and work from there.
    Also, TYPING IN ALL CAPS IS PERCEIVED AS SHOUTING.

  • 2012 R2 RDS Shadowing from Server Manager - how to view client computer names

    Hello,
    I have a 2012R2 RDS session based deployment. We have a few generic user accounts for a production environment where a group of users uses the same username to start multiple RDS sessions. This creates a bit of a challenge when support has to shadow one
    of those sessions because they all appear with the same name: domain\username. The Connections pane in RDS (Server manager) does not list client computer name, which would be the distinguishing factor. The old version of the RDS console (remote
    desktop manager) had this information. Citrix appears to have it as well. Is there a way around this limitation in 2012R2 Server Manager?
    Thanks

    Hi,
    As far as I know, there are two ways.
    1. Use the Task Manager. In the Users Tab, you can see the client name.
    http://social.technet.microsoft.com/Forums/en-US/1d571c01-69ff-4508-af0f-d7eeecd806b6/forum-faq-how-to-manage-rds-user-connections-and-processes-in-a-rds-2012-deployment?forum=winserverTS
    2. Use the Terminal Services PowerShell Module. With the Get-TSSession in PowerShell, we can get the detailed information.
    http://archive.msdn.microsoft.com/PSTerminalServices
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • How to delete the workbench client server name in FDM

    Hi Gurus
    How to delete/change the workbench client server name in FDQM?
    regards
    Sarilla

    OK, I understand now. You are referring to the Load Balance Server Group. Yes, this can be done:
    a) Browse to Oracle\Middleware\EPMSystem11R1\Products\FinancialDataQuality\SharedComponents\Config
    b) Locate the LoadBalanceServerGroups.xml file
    You can delete this file. The next time the workbench is launched it will ask you to set the load balance server group again and will create this file again.

  • How to change the full host and domain name on OS X Leopard...

    I recently bought an iMac, and I'm trying to configure it for my network. The question I have is, how can I change the host name and domain name from Skuld.local to skuld.tolharadys.net?
    After mucking around with a few searches on Google, I've gotten the domain name to stick since running domainname returns tolharadys.net. Also I can change the hostname as reported by 'hostname' temporarily by running 'hostname skuld.tolharadys.net' in Terminal.app. However, this isn't persistent after reboots. Ideas are welcome.

    You would need a DNS server on your network configured to answer authoritatively for that particular subdomain.

Maybe you are looking for

  • How can I freeze the header row in Numbers '08

    Hello, I've read through support communities and looked high and low through numbers, but can't seem to find a way to freeze my header row.  Any ideas?  Thanks!

  • Help a Newbie - Need to Embed swfs into main swf

    I have made a MAIN SWF in which if you click one button, it loads one SWF, if you click another button, it loads another SWF. The file works perfectly when I test the MAIN SWF...until I relocate that MAIN SWF to another file, then it doesn't load the

  • File System Repository Error!!

    Hello i have created a File System Repository i.e. Content Management --> Reposiroty Managers --> File System Repository and given the Prefix  /ShareFile Lookup mode caseless Root Directory as d:/km now when i check in the component monitoring it sho

  • DES working with bits

    I hawe working DES code that works with Strings. But I need it to work with bits (key, plaintext and encrypted text in bit format). Witch is the best way to do it if it is possible. Or maybe do it in other language. import java.io.UnsupportedEncoding

  • How do we share photos and iTunes?

    We have just bought a mac book pro and can't seem to access each others photos and iTunes via file sharing ( we have seprate user and apple ids on the same macbook)it seems to set up ok but then struggle to find each others files.. Also the iPhoto li