Obtain client IP address from forms

Hello,
In a form i'm programming, i need to obtain the ip address from which the client which is executing.
If i used Oracle 8i, i would get is using sys_context function, but i use:
forms 5 on Oracle Server 8.0.5
I need urgent help with this stuff, please!.

This was logged as an enhancement which I believe was hoping to make it into one of the later 6i releases of forms. Ref:<Bug:856958> if you can access via metalink or Support.
Grant Ronald.

Similar Messages

  • Obtain remote client IP address from webservice with WL 7.0.7

    Hi,
    Please Help!!
    I need to get the remote client IP address from inside a webservice but with WLS 7.0.7. I know it is possible with WL 8:
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceHttpSessionImpl vHttp = (WebServiceHttpSessionImpl)wsContext.getSession();
    vHttp.request.getRemoteAddr();
    But WL 7 has not available WebServiceContext.currentContext() method.
    Thank you very much

    This was logged as an enhancement which I believe was hoping to make it into one of the later 6i releases of forms. Ref:<Bug:856958> if you can access via metalink or Support.
    Grant Ronald.

  • VNC access to remote clients assigned address from vpnclient ip pool

    Hi,
    I was wondering if anyone knows if it is possible to vnc to remote vpn clients that are assigned an address from a client IP pool defined on the pix.
    The remote clients are using cisco vpn client, the access-list is a dynamic acl downloaded from a tacacs server.
    thanks.

    It is not possible to vnc to remote vpn clients that are assigned an address from a client IP pool defined on the pix

  • Retrieve client ip address from LC process

    Hi, does anyone know is there any way to retrieve the client ip address when a flex client calls the amf endpoint of a livecycle process?
    This is on ADEP and unfortunately we can't do a flex call javascript on the client side to retrieve the ip address.

    Hi,
    It is very easy at flex side to get the client ip, ask flex team to pass IP as input parameter when they are calling livecycle process.
    Thanks

  • How to get client Ip address from web service

    Hello folks,
    I am quite new to web service and developing a web service using netbeans6.0 IDE, where i have to know which client called/used the service, After googling i got code snippet like below
    inject a WebServiceContext instance into your WebService class, and use it in each WebMethod to get the current request's MessageContext Map. Get the SERVLET_REQUEST item from that, cast as an HttpServletRequest. From that HttpServletRequest, you can invoke getRemoteAddr() to get the client's IP.
    @WebService
    public class MyService{
    @Resource
    WebServiceContext wsCtxt;
    @WebMethod
    public void myWebMethod(){
    MessageContext msgCtxt = wsCtxt.getMessageContext();
    HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST);
    String clientIP = req.getRemoteAddr();
    }But it throws error in my PC like
    Service invocation threw an exception with message : null; Refer to the server log for more details
    Exceptions details : java.lang.reflect.InvocationTargetExceptionIs there any way that says client pc ip address using netbeans6.0 Or what went wrong in my code?
    Largely Thanks in advance.
    SRI.

    I am afraid,
    javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
    at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:340)
    at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121)
    at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:311) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy102.processMessage999(Unknown Source) ... 40 more Caused by: java.lang.NullPointerException at org.shar.Handle.processMessage999(Handle.java:120) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:361) ... 2 more

  • Get client ip address from Web Service hosted on OAS 10.1.2

    Hi,
    Can anyone advice how to get the client IP from a web service (java) hosted on Oracle Application Server 10.1.2.
    The below code works if the web service is hosted on Tomcat.
    MessageContext msgCtxt = MessageContext.getCurrentMessageContext();
    String IP = (String)msgCtxt.getProperty("REMOTE_ADDR");
    This code is causes built errors on the OAS 10.1.2 since it needs Axis and many other Jars. I tried to insert the jars needed but unfortunately when i was able to compile it returned a java.lang.NullPointerException.
    Is there a way to get the IP address of the client that calls this web service ?
    Or is there a way to read the SOAP request maybe i can retrieve the client IP from it.
    Thanks for your support,
    regards

    http://forums.sun.com/thread.jspa?threadID=5371892&messageID=10636223
    Thank you!

  • Read the computer IP address from Forms

    Is there a way to read from somewhere the IP address of working computer, in a form? I mean something like win_api, build-in package or anything else?

    This package function returns the IP address as a varchar2. It is bundled with OAS and also WebDB.
    OWA_UTIL.GET_CGI_ENV('REMOTE_HOST');

  • How do I get the client IP Address from the HTTPServletRequest object

    Hi ppl,
    How do I get the IP address of the client machine from the HTTPServletRequest object?
    Thnx in advance,
    Manoj

    Take a look at: http://java.sun.com/products/servlet/2.2/javadoc/index.html and check for the ServletRequest Interface.
    Be aware also if your web server is using proxy, proxyReverse and so because you could end getting the servers' IP and not client one.

  • Fetch client IP addresses from the Netlogon.log file of all domain controllers in the domain

    Hi,
    The event ID 5807 is logged in the system logs of domain controllers as a result of which the IP addresses for the missing subnets are logged in Netlogon.log under %systemroot%/debug. The end goal is to fetch the IP addresses along with rest of the respective
    attributes from the Netlogon.log for all the domain controllers in the domain. I have the following script however, it gives me a 0KB file despite the fact that the Netlogon.log on the DC contains ample entries from last two months. 
    function GetDomainControllers {
        $DCs=[system.directoryservices.activedirectory.domain]::GetCurrentDomain() | ForEach-Object {$_.DomainControllers} | ForEach-Object {$_.Name}
        return $DCs
    function GetNetLogonFile ($server) {
        $path= '\\' + $server + '\c$\windows\debug\netlogon.log'
        try {$netlogon=get-content -Path $path -ErrorAction stop}
        catch { "Can't open $path"}
        #reverse the array's order to the end of the file
        [array]::Reverse($netlogon)
        $IPs=@()
        foreach ($line in $netlogon) {
            #split the line into pieces using a space as the delimiter
            $splitline=$line.split(' ')
            #Get the date stamp which is in the mm/dd format
            $logdate=$splitline[0]
            #split the date
            $logdatesplit=($logdate.split('/'))
            [int]$logmonth=$logdatesplit[0]
    #last month and this month
            if (($logmonth -eq $thismonth) -or ($logmonth -eq $lastmonth)) {
                #only push it into an array if it matches an IP address format
                if ($splitline[5] -match '\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b'){
                    $objuser = new-object system.object
                    $objuser | add-member -type NoteProperty -name IPaddress -value $splitline[5]
                    $objuser | add-member -type NoteProperty -name Computername -value $splitline[4]
                    $objuser | add-member -type NoteProperty -name Server -value $server
                    $objuser | add-member -type NoteProperty -name Date -value $splitline[0]
                    $objuser | add-member -type NoteProperty -name Time -value $splitline[1]
                    $IPs+=$objuser
            } else {
                #break out of loop if the date is not this month or last month
                break
        return $IPs
    #Get last month's date
    $thismonth=(get-date).month
    $lastmonth=((get-date).addmonths(-1)).month
    #get all the domain controllers
    $DomainControllers=GetDomainControllers
    #Get the Netlogon.log from each DC
    Foreach ($DomainController in $DomainControllers) {
        $IPsFromDC=GetNetLogonFile($DomainController)
        $allIPs+=$IPsFromDC
    $allIPs | Sort-Object -Property IPaddress -Unique | Export-Csv "E:\bin\NetlogonIPs.csv"
    PLEASE HELP!!

    Hi jrv,
    Thanks a lot for your help.
    I understand you cannot keep on iterating the code for me. However, I am stuck at this error :-
    ERROR : Exception calling "Parse" with "1" argument(s): "String was not recognized as a valid DateTime."
    After the following code finishes executing, I get the following output :-
    $csv=cat c:\windows\debug\netlogon.log |
    %{'{0}|{1}' -f $_.SubString(0,14),$_.SubString(15,$_.Length-15)}|
    ConvertFrom-Csv -Delimiter '|' -header time,message
    time message
    04/14 01:18:45
    NO_CLIENT_SITE: ServerX 10.x.x.x
    04/14 01:17:45
    NO_CLIENT_SITE: ServerY 10.x.x.x
    04/14 01:17:44
    NO_CLIENT_SITE: ServerY 10.x.x.x
    04/14 01:17:43
    NO_CLIENT_SITE: ServerX 10.x.x.x
    However, I get the above mentioned error at the following line :-
    $csv|%{$_.time=[datetime]::Parse(($_.time -replace ' ','/2015 '))}
    I would later want to run the query just for logs from past day.
    Entire code is as follows :-
    function GetDomainControllers {
        $DCs=[system.directoryservices.activedirectory.domain]::GetCurrentDomain() | ForEach-Object {$_.DomainControllers} | ForEach-Object {$_.Name}
        return $DCs
    function GetNetLogonFile ($server) {
        $path= 'C:\Test\netlogon.log'
        try {$netlogon=get-content -Path $path -ErrorAction stop}
        catch { "Can't open $path"}
        #reverse the array's order to the end of the file
        [array]::Reverse($netlogon)
        foreach ($line in $netlogon) {
       $csv=  $netlogon | %{'{0}|{1}' -f $_.SubString(0,14),$_.SubString(15,$_.Length-15)}| ConvertFrom-Csv -Delimiter '|' -header time,message | Out-Gridview
       $csv|%{$_.time=[datetime]::Parse(($_.time -replace ' ','/2015 '))}
    #get all the domain controllers
    $DomainControllers=GetDomainControllers
    #Get the Netlogon.log from each DC
    Foreach ($DomainController in $DomainControllers) {
        GetNetLogonFile($DomainController)
    Please help!! Any help will be highly appreciated.

  • Getting client IP address from PL/SQL Portal API

    I'm doing a customized login portlet where I'll like to get access to the IP address (I order to restrict admin access to specific IP addresses).
    Is that possible in the Portal API.

    Hi,
    Check this help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/de/89023c59698908e10000000a11402f/frameset.htm
    You'll see that there is a param wdisp/add_xforwardedfor_header
    which
    "The parameter determines whether the SAP Web dispatcher includes the IP address of the client in the header field x-forwarded-for. If it does, the application on the application server can read the route that the request has taken. If the parameter has the value false, the Web dispatcher leaves the header field unchanged."
    Together with the forwarder field that I've mentioned earlier, this should achieve things you need.
    Eddy

  • WdsClient: An error occurred while obtaining an IP address from the DHCP server

    Trying to create and deploy a Windows 7 pro image for Dell optiplex 390s. Getting the dreaded error above when trying to connect to the DHCP. After a couple days of research I've tried injecting drivers, different version of drivers, injecting drivers into
    a different boot image, changing the name and/or deleting the setup.exe file from the image, verified that spanning-tree portfast was enabled on the switch, and edited \windows\system32\startnet.cmd. Everything i've tried results in the error still showing. 
    When running ipconfig it looks like the NIC is not even initializing which leads me to believe it's a driver issue still. I'm out of ideas on this one. Anyone else have any?

    Hi,
    Does the issue occur on other computers? Try to enable the spanning-tree portfast on the Cisco switch.
    Please check out this post:
    http://social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/d70a8258-9dd3-4868-9e06-d25de427f3cc
    Tracy Cai
    TechNet Community Support

  • How can I exclude client IP address from access log using WebServer 6.0? WebServer 3.x has Do not log client accesses from: option under Log Preferences". But I cant find it when we upgrade to 6.0

     

    Hi,
    Please go through the below link.
    http://docs.iplanet.com/docs/manuals/enterprise/60sp1/ag/esmonsvr.htm#18110
    I hope this helps. If you need any help let me know.
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • Finding IP address from Client ID?

    From an Android tablet:  How do I find the IP address of a computer in my network if the know the client ID? It's easy from a desktop:  I just bring up Hamachi and everything is revealed.  If I use the tablet browser to view my Hamachi networks (at the Hamachi site), the page is compressed horizontally and part of the IP address is hidden. Apologies if I have missed this in the documentation or knowledge base.

    try
              request.getRemoteAddr() to get IP of Client
              request.getRemoteHost() to get HostName of Client
              "Matt Raible" <[email protected]> wrote in message
              news:3a9c1efc$[email protected]..
              > Does anyone know how to obtain the IP address from the client? I need to
              > get it in a servlet to set it as a session variable.
              >
              > Thanks,
              >
              > Matt
              >
              > P.S. Please send reply to [email protected]
              >
              >
              

  • How do I obtain a client IP address in Weblogic 9.1 ?

    I have tried to obtain the client IP address from a web service transaction in Weblogic 9.1.
    Since weblogic.webservice.context.WebServiceContext has been provided in Weblogic 8.1, WebServiceContext and WebServiceSession could be used to get IP address. However, the class turned to be deprecated after Weblogic 9.0, I don't think the class should be used.
    Does anyone know if there are any alternative classes or methods provided to obtain IP address in Weblogic 9.1? If so, please tell me.
    Thanks.

    Thanks for the info. I am not familiar with this model, so will need to read up a bit.
    Just to confirm......does this appear to be your "modem"?
    DDW3611 | Ubee Interactive
    If yes, you might be interested to learn that it is a modem/router....also known as a gateway device.....quite different from a simple modem.....so the requirement to connect will be different from a simple modem.

  • Obtain MAC Address from 250 iPads

    Hi all,
    I have taken delivery of 250 iPads which I am configuring with OSX Server on a MAC Mini. So far, so good!
    Our wireless network uses MAC Address authentication so I have to add each MAC Address to our Cisco Wireless controller.
    Without having to go to Settings > General > About and write down the MAC Address from every device, is there a way to obtain the MAC Address from either the box using the barcode, or maybe an App that loads up on screen and shows the MAC Address of the device in a barcode format that I can then quickly scan into an Excel spreadsheet and import?
    I feel that i'm about to waste a lot of time going on to each iPad and obtaining the MAC Address
    Thanks in advance
    Regards
    Jim

    If you have the ability to plug them into Apple Configurator, you can connect them with a USB hub and update and supervise them.  This will let you export MAC Addresses and Serial numbers from Configurator to a CSV file that you can use to upload to your wireless controller.  If you need to, be sure to Unsupervise the iPads when you are done.
    The info you're looking for may also be available through GSX, but I'm not familiar with everything you can use it for on your end.

Maybe you are looking for