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
Similar Messages
-
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
MithunHi 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 values of Select-options from the screen.
The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.
Hi,
Refer this following code..this will solve your problem...
"Following code reads value entered in s_po select options and willprovide search
"help for s_item depending upon s_po value.
REPORT TEST.
TABLES : ekpo.
DATA: BEGIN OF itab OCCURS 0,
ebelp LIKE ekpo-ebelp,
END OF itab.
SELECT-OPTIONS s_po FOR ekpo-ebeln.
SELECT-OPTIONS s_item FOR ekpo-ebelp.
INITIALIZATION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
DATA:
dyn_field TYPE dynpread,
temp_fields TYPE TABLE OF dynpread,
zlv_dynpro TYPE syst-repid.
zlv_dynpro = syst-repid.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = zlv_dynpro
dynumb = syst-dynnr
request = 'A'
TABLES
dynpfields = temp_fields
EXCEPTIONS
OTHERS = 0.
LOOP AT temp_fields INTO dyn_field.
IF dyn_field-fieldname EQ 'S_PO-LOW'.
SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
WHERE ebeln EQ dyn_field-fieldvalue.
EXIT.
ENDIF.
ENDLOOP. -
How to get the current logged in username from windows and put it into an AS var
Hello,
I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
Thanks in advance
MichaelJust for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
In the html page that publishes with the .swf file under the <head> section:-
<script language="JavaScript" type="text/javascript">
function findUserName() {
var wshell=new ActiveXObject ("wscript.shell");
var username=wshell.ExpandEnvironmentStrings("%username%");
return username;
</script>
The ActionScript:-
import flash.external.ExternalInterface;
var username:String = ExternalInterface.call ("findUserName");
trace (username); // a quick test to see it in output -
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 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); -
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 RajagopalanHi 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 any terminal
Hi
Actually, I want to monitor all the users who are connected to the database using toad. Here is the sql statement used:
SELECT s.SID,
s.serial#,
s.command,
s.machine,
s.terminal,
p.spid,
s.osuser,
s.program,
s.USERNAME
FROM v$process p, v$session s
WHERE p.addr = s.paddr AND s.program = 'toad.exe'
ORDER BY s.TERMINAL
This will give me the name of the terminal, but i need to know about the IP-Address of that particular system.
Is there any way to get the ip address of any terminal.
Please suggest me something regarding this.Hi,
See this thread.
Hi i want to cliente machine name who is accesing the EBS
Hi i want to cliente machine name who is accesing the EBS
And, your other thread.
Is it possible to trace unauthorized users? (via ip address or terminal id)
Re: Is it possible to trace unauthorized users? (via ip address or terminal
Regards,
Hussein -
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 PMhi
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.
~ -
How to get the IP address of printer USB attached to Time Capsule?
I'm trying to work a printing problem with my HP7310 Officejet and VMware's Fusion 2.0.3. I'm on Mac OS 10.5.5.
One of the first diagnostic steps for Fusion is to ping the IP address printer. If I open the Print & Fax dialog from System Preferences I can see the name of my printer, let's say it's called "foo bar". I then open a bash terminal and type: ping "foo bar", but get an "unknown host" message.
I can ping the Time Capsule itself by getting the IP address from Airport Utility. The printer "foo bar" shows properly in the Airport Utility Printers dialog.
Anyone have any suggestions?If you open AirPort Utility > Manual Setup > Advanced > Logs & Statistics > DHCP clients, a list of the devices will be displayed with their IP addresses. Make note of these.
You will have to get the IP for your printer by process of elimination. Go to
System Preferences > Network to see your ethernet and wireless connections and associated IPs. You should be able to narrow the list down to identify your printer.
Maybe you are looking for
-
The Service has encountered an error: ...(kNetworkError)
Was running 10.5.5 iCal server just fine. Then I decided to move the "Data Store:" in the settings tab to another location. Ever since then, when I click on the iCal service, the grinding wheel rolls on and gives this error... The service has encount
-
How to load Windows XP on a Macbook running 10.8.2
I have a white MB running 10.8.2 and want to run Windows XP in a second partition on the internal drive. Bootcamp assistant would not run without Windows 7. I manually repartitioned the disk to create a Windows partition (formatted at FAT32) and in
-
Minor Problem When Scripting MS Word
I think I'm just overlooking something obvious, but I have an AppleScript that works flawlessly--the FIRST time it's run on a file opened in Word--but the only way to run it again with another file is to quit Word and THEN open another file and run i
-
I bought the labVIEW RT software and the hardware.It included the LabVIEW6.1 FDS. I got the error code,and I let the install program go on.After the install completed,I found my LabVIEW worked well expect the DAQ palette.there are no "data acquisitio
-
Firefox 5 crashes and session restore does not load any tabs that were previously open.
Also, if I exit Firefox 5 it no longer asks to confirm that I wish to close multiple tabs - even though that option is checked in the options folder. Have changed various settings in about:config but to no avail. Any ideas gratefully received...