How to get the IP address of RMI server???

Hi:
Is there a way to know the IP address of RMI server before client and server connect?
I am assuming that client didn't know the IP address of the server.
Because I know that client must hold a server reference so that client can connect to server.
But I want my client program to find out server IP address before they connect and use this finding to connect to server.
Is it possible?
Thanks!

So you KNOW that the client MUST know where the server is yet you want the client to find out where the server is?
Simple answer: forget it.
If you don't know where to connect to how are you ever going to connect to it?
And if you do know you don't have to go looking it up...
You can probably do something with JNDI, but then you're only putting off the inevitable as now you need to both know how to contact the JNDI server AND the JNDI server needs to know where the the RMI registry for the service you want to connect to is.

Similar Messages

  • How to get the IP address of smtp server?

    For A record in DNS, we can use Java API InetAddress.getHostAddress() to get the IP address.
    But for mx record, how to get the IPaddress?

    If you know the hostname of the MX record (eg. mail.somehost.com), you can still use the InetAddress.getByName(hostname).getAddress()
    If you don't know the specific host name you can do a DNS lookup directly:
            String host="somehost.com";
            DirContext ictx = new InitialDirContext();
            Attributes attrs = ictx.getAttributes("dns:/" + host, new String[]{"MX"});This will give you a javax.naming.directory.Attributes object from which you can...
    Attribute att = attrs.get ("MX");This will give you all the MX records for the domain. To get the IP address of the MX hosts, you need to parse the record String returned. Usually something like:
    somehost.com       MX preference = 10, mail exchanger = mail.somehost.comParse out the mail.somehost.com and use:
        String mailhost = <Parse MX record here>
        InetAddress host = InetAddress.getByName(mailhost);

  • How to get the Delivery address for PO

    I have a problem.
    I am working on a SAP Script , which is for PO(Zmedruck_po) , which is a copy of
    MEDRUCK.
    I am asked to print the delivery adress in a window .
    The scenario is like this .
    In ME23N , under item details , there is a tab called DELIVERY ADDRESS
    this has option to enter the adress details or a delivery number in the  address text box .
    If the address number is present i have to print that address , else i have to print the address which is entered in the delivery address tab.
    If the delivey address number is there i have no problem in printing it ,But if address number is not there ,I need to know how to get the delivery address,
    is it the plant address, company code address ... ?
    I debuged ,but could not find out.
    Can anyone help please .

    Hi,
    try using the below method:
    Goto TWLAD table with storage location (EKPO-LGORT) as key to get address number (ADDRNUMBER).  then goto ADRC table to get the address of the delivery
    Regards
    Shiva

  • How to get the MAC address of the additional 10G NIC with ILO command line

    how to get the MAC address of the additional 10G NIC with ILO command line?
    thanks.
    This question was solved.
    View Solution.

    Hi Bruce,
    Out from what I can find on this network card is it not possible to get the mac address without a OS. I would recommend you to get/burn a Linux/Ubuntu live CD/DVD and run a Ifconfig in there.
    Hope it helps you.
    Best regards
    Zincas
    I work on behalf of HP

  • SAP Cloud For Customer How to Get the IP Address of Tenant

    Hi Experts,
    I need to know how to get the IP Address of our cloud Tenant ?
    Can anyone know please tell me the process.
    Many Thanks
    Mithun

    Hi Mithun,
    In my understanding there SAP will not share IP address of tenant. If this is really urgent you should discuss to SAP Partner coach or any other representative. SAP network team will not directly communicate with you, this will require numerous approval inside SAP itself.
    Thanks
    Sunil Maurya

  • How to get the IP address of a new stream?

    Can anyone tell me how to get the IP address from which a newly detected RTP stream is being sent, especially when a NewReceiveStreamEvent is posted? Or, is it possible to do so?
    Thanks in advance.

    My RTPConnector follows the example from the JMF home page here: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/RTPConnector.html
    I have not done any measurement regarding the performance of my RTPConnector implementation compare to that of the default but I did find some way to deal with the bursty nature of the default RTP transmission which caused some problem with 3rd party apps that don't handle jitter well. I created a 20ms timer that acts as a gatekeeper that allows the transmitter to send RTP packets. Unfortunately Java timers aren't very precise.
    I also improved upon (I think I did anyway) the efficiency of the default (IBM) ULaw encoder as discussed here: http://forum.java.sun.com/thread.jspa?threadID=597011
    My problems with performance issues were mainly in the speed at which processors and players are created and realized on slower PC's.

  • How to get the absolute path of logicalhost server domain on Windows Sun

    i am reading a file from Xsql Folder, that is located in the logicalhost Sun\AppServer\domains\domain1\applications\j2ee-apps.(IN Sun Application Server)
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    i tried with System.getProperty("com.sun.aas.instanceRoot").
    but i am able to retrive Sun\AppServer\domains\domain1 upto this .i am unable to retrive Sun\AppServer\domains\domain1\applications\j2ee-apps.
    please suggest me how u can get absolute path in sun application server

    Take a look here

  • How to get the absolute path of logicalhost server domain on Windows?

    My logicalhost server domain behaves strangely. I am reading a file from collaboration definiton, that is located in the logicalhost/is/domains/domain1/config folder. I thought, that this folder is used as an application root folder so I can read files like ./file from there. And it worked.
    But then I've installed the domain as a Windows service, restarted the PC. When the domain1 gets started, I get exceptions saying that the file can't be found. Then I restart the domain (in domainmgr.bat) and it works again.
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    And my second question is: Why does this happen?

    The default folder for a Windows Service is the system32 folder contrary to the instance root folder when starting it as a normal process.
    That's the why, haven't tried the how, but you should be able to get the value by calling System.getProperty("com.sun.aas.instanceRoot").
    Hope this helps
    Paul

  • How to get the Change node in Production Server!!!!!

    Hi Guys,
    Kindly let me know how to get the Change node in Production Server for the Transaction Code Pe03 for generating the Acknowledgement No for the year 2008 .
    Plz provide me the steps how to get the Change Node for Acknowledgement No so tat i can get the configuration done.
    Regards
    Ansuman Mohanty.

    Hi Mr!
    If you want to generate the e-file feature 40ACK, do it in our Customization client box (Golden box) & save the request & move to Quality & production.
    Still if you need to workout only in Production, than with the help of Basis people you can get the Production change mode for 5 to 10 min time & can generate it. But mostly Basis people wont give us change mode for Production box ... with ur request they can do..try it.
    Did u collected 4 quarter TAN no's for 2008 Quarter...if not collect it & generate it at a time.
    All the best:-)
    Kind Regards,
    Saisree.S

  • Reg : How to get the company address in Crystal Report

    Dear members,
    I am stuck up with problem in Crystal Report in my project. I want to get the company address in the Crystal Report. How can i get the company address in the crystal report. Hope i will get help in this regard.
    Thank you.
    Regards,
    Venkatesh Rajagopalan

    Hi Dear
      plz send me  what is your methad to applay,
    so i am sending u code   for company address
    all company information  contain the OADM table ,
    so applay the select query  ang get the data form table
    this ia sample code ........
      SAPbobsCOM.Recordset oRecordset = (SAPbobsCOM.Recordset)ICreon_SBOAddOn.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                    string GetComp = "select * from OADM ";
                    oRecordset.DoQuery(GetComp);
                    strCompName = oRecordset.Fields.Item("CompnyName").Value.ToString().Trim();
       Use this code  u will find the company name
      and after  that pass this valu a parameter
    oRPT.SetParametervalue ("CompanyName", strCompanyName)
      so pass the strCompanyName  as a parameter in the  cdrystel report.
    hope  help this code ,
    if u have any problem so plz send me  question in form,
    if u r  satisfied my answer so pl give me rewards point,

  • How to get the memory address of an array (pointer in C)?

    I am writing an application that exchanges data with a PXI device via DMA.  Basically I will provide it a memory address and a direction, and it transfers the data.  I would like to give it the memory location of an array in LabVIEW, but I do not know how to get the memory location without doing a DLL call to C code that returns the pointer.  Is there an easy way to do this in LabVIEW?  Any help is much appreciated.

    A similar question was asked recently regarding strings. You cannot pass pointers in LabVIEW as you do in C. You can pass an array to a DLL, but that means you would need to write a wrapper DLL. Be sure to read the section in the LabVIEW Help on calling code from text-based languages and also take a look at the "Call DLL" example that ships with LabVIEW  - it contains many examples of how to deal with various datatypes.

  • 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.

  • How to get the Ip address of machine from which a connection is obtained

    Hi,
    We are using Oracle HA solution and we would use at least 2 Db servers. I would like to know whether there is any way of obtaining the Ip address of the machine from which the connection has been obtained?
    Thanks
    Himadri

    know whether
    there is any way of obtaining the Ip address ofthe
    machine from which the connection has beenobtained?
    Let me get you right. Basically looks like you want
    to get the IP address of the client machines who
    connect to your server? Yes it very much possible.
    Even a simple tool like netstat -a -n display
    the IP addresses/port of remote hosts (clients). Its
    part of the IP protocol to carry the addresses in the
    packets. The question is how do you want to do this
    in java? You should look at
    java.net.ServerSocket.accept().getInetAddress()
    API
    trust it helps,
    -BJNo. I have multiple databases which are used in a Oracle RAC solution. You can obtain connections from more than one DB servers. My question was how to obtain get the IP address of the DB Server from which the connection has been obtained.
    Himadri

  • How to get the service address from service address number

    Hi, IS-U Gurus:
    I got the service address number by passing business partner number to  BAPI 'BAPI_ISUPARTNER_GETDETAIL'
    On return table of "bapiisubpa", the first field is service number, but what we need is service address,
    How can I get the service address from service number ?
    Thanks in advance.
    Liang
    Edited by: Liang Ji on Apr 27, 2009 6:57 PM

    hi
    are u looking for business partner address?
    if so u can ref table but020, get its bp no. and then refer table but000 for its address.
    Regards,
    Sumedha

  • How to get the Url(address) of Next Page in Sequence of Pages in OAF

    Dear All,
    My requirement is to get the next page Url dynamically .
    i have created 2 pages ,first page have button to navigate to the next page ,when i click on first page button ,
    i want to store the url of the next page in column of the database table.
    This is urgent requirement .
    Please suggest .
    Thanks
    Maheswara Raju

    > Is there any way to get the memory address of a
    variable (like int ,float and all) in java.
    No. Chances are excellent that there's a way to do what you want without needing the variable's address, however.
    ~

Maybe you are looking for

  • Idoc from XI through File Port

    Hi, Need you help in the below scenario. We have a scenario Proxy (SRM) to XI to Amtrix (Idoc) Now I need the Idoc adapter to write the Idoc as a Flat File. As far as my knowledge goes....... The ports we mention in rec idoc comm channel have to be d

  • Directory Server on a windows platform

    Hi, I want to unstall SUn DS on a windows 2003 server machine but It's not clear to me what else should I do after install and configure DS. I want to set it up as an Authentication Server for windows clients thanks, I need a help if somenone has don

  • Itab move corresponding

    hello abap gurus, in my requirement, all the records in ITAB1 need to be moved to ITAB2  where both have a common key field which should match. Note: ITAB1 and ITAB2 have only few common fields. ITAB2 is completely empty. can someone tell the best wa

  • Where can I download complete Labview 6.1 version ? I used to have it but I lost it now and would be really helpful if i can find it somewhere.

    I have designed and implemented an 8-channel data acquisiton system using Labview 6.1. Now, I have downloaded the version 7 express and when I open my old VI some of the sub VIs  are missing . So, I would really appreciate it if someone could advice

  • Fireworks 8 serial number

    Hi ,new to this forum but am having problems,am trying to install fireworks 8 ,have legit copy with serial number etc used on previouse PC but when want to add to new pc serial code is totaly different to the one needed to register it ie mine is STLI