Getting Machine IP Address
Hi,
We have a standalone Flash application (i.e. we run the swf
directly, not in browser) which displays information about an
application running remotely.
When the app is run on on
one and only one machine we want to display all data, on all
others we want to display limited information. So I'd like to
detect the IP addresses of the machine on which the app is running.
Server side scripting is obviously not an option here, can
anyone point me in the direction of a solution?
Cheers
Hi,
Try the following links
http://www.codeproject.com/KB/cs/network.aspx
http://social.msdn.microsoft.com/forums/en-us/winforms/thread/E5FE11C4-7F0C-4AC6-80D1-7B8DFB374416
Regards,
A.Murugan
If it solved your problem,Please click "Mark As Answer" on that post and "Mark as Helpful". Happy Programming!
Similar Messages
-
Is it possible get machine ip address from oracle
Hai
Is it possible get machine ip address from oracle (pl/sql or sql).Please clarify this
Any idea should be appreciated
Regards
mohanhi rao !
you can also use v$session dynamic performance view to get ip of any connected user.
this view can give almost all information about any connected session, but you must
have administrative privileges to query this view.
regards,
aamir. -
Hello All,
I am trying to get the information of all the user's who connect to our Domain network by signing in using the domain account. For this I am using the Windows audit group policies ( I am not sure of there is any other way). I can see when the user tries
to login to the network there is a audit event created on the AD/DC server. I can see the Kerberos authentication and logon/logoff events in the audit events under event viewer.
However the info which is being populated in these events include :- Hostname, IP address, Username and so on... But I can't see the MAC address of the user machine/system. Is there any way I can
get the Mac address of the endpoint system as its one of the important criteria for our project.
Any inputs on this would be appreciated, incase if there is any other way other than group policies please suggest.
Thanks,
Kavish> include :- Hostname, IP address, Username and so on... But I can't see
> the MAC address of the user machine/system. Is there any way I can get
> the Mac address of the endpoint system as its one of the important
> criteria for our project.
If you use DHCP, you can query the DHCP server. There's no builtin
method to get the MAC address directly.
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
Getting the IP Address/host ID of a unix machine
Hi,
In my java program I am using this code to get the IP Address of a windows machine.
InetAddress inetAdd = InetAddress.getLocalHost();
String host_Name_IP = inetAdd.toString();I want to know if the same thing works in the unix machine also. If no pls tell me how to obtain the same in unix.
Thanksthen y is it returning null when I execute it on a
unix machineWorks on my Linux FC4! -
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
Himadriknow 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 -
Getting Public IP address of a machine
Hi,
I have a console based application to get the ip address of a machine. I have tried the following code to retrieve the ip address of the local machine.
IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName());
string IPAddress = string.Empty;
foreach (IPAddress ip in host.AddressList)
if (ip.AddressFamily == AddressFamily.InterNetwork)
IPAddress = ip.ToString();
break;
Console.WriteLine(IPAddress);
Console.ReadKey();
This gives me both Public IP as well as Private IP of the machine in
host.AddressList
I am unable to distinguish them and retrieve only Public IP of the machine.
Please let me know how to go about obtaining only Public IP of a machine.
SidHi,
Try the following links
http://www.codeproject.com/KB/cs/network.aspx
http://social.msdn.microsoft.com/forums/en-us/winforms/thread/E5FE11C4-7F0C-4AC6-80D1-7B8DFB374416
Regards,
A.Murugan
If it solved your problem,Please click "Mark As Answer" on that post and "Mark as Helpful". Happy Programming! -
Getting the IP address of the local machine.
Hello All,
We are deploying an application using 10g AS(LINUX).We have to capture the IP address of the
user machine, in which the browser is running.(10g forms,9i db)
WEB_UTIL is not configured and we are using java importer for the purpose.
I am a 'very' newbie in java.I searched a lot in the net and got some solutions but all providing the Ip address of the AS machine.
Can anyone give a java program to get the IP address of the local machine?Or a link...
Thanks in advance
JeneeshGive a glance to these documents. may be coukd help you
http://forum.java.sun.com/thread.jspa?threadID=245711
Java 6.0 includes an API to get the MAC address of any attached network interface:
http://java.sun.com/javase/6/docs/api/java/net/NetworkInterface.html#getHardwareAddress
(idea for IP user: you can shell out, and use the 'who -m'?)
Regards Jeneesh -
Getting the MAC address of the machine
Is there any method to get the MAC address of machine in java.?????????????
In our proxy server application we get the IP address of each client connected our proxy server.
But as the IP addresses are dynamic , we can't trace the location of the machine whenever any client does malicious downloads.Thanks It works .
The code is as follows .
It works when the machine is connected to internet while throws a null pointer exception when not connected .
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
public class MacAddress {
public static void main(String[] args) throws SocketException, UnknownHostException {
try {
InetAddress address = InetAddress.getLocalHost();
* Get NetworkInterface for the current host and then read the
* hardware address.
NetworkInterface ni = NetworkInterface.getByInetAddress(address);
byte[] mac = ni.getHardwareAddress();
* Extract each array of mac address and convert it to hexa with the
* following format 08-00-27-DC-4A-9E.
for (int i = 0; i < mac.length; i++) {
System.out.format("%02X%s", mac, (i < mac.length - 1) ? "-" : "");
// System.out.print(mac);
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (SocketException e) {
e.printStackTrace(); -
How can I get the MAC address of my Apple TV?
How can I get the MAC address of my Apple TV? I currently do not have an HDMI device to connect it to, and the MAC is not listed on the box or the Apple TV itself.
(to answer the obvious, I am trying to pair it with an iPad, and I need to register the Apple TV for the network so the two can see each other)As long as I know java doesn't have support to work on link-layer, only internet and transport layers. You may write simple native code. On windows, IP Helper functions, like SendARP allow you to pass an IP address and get the hardware address. You store the hardware address on your database/file and later, when that machine is off, you send a frame to the address you stored previous.
[http://msdn.microsoft.com/en-us/library/aa366071(VS.85).aspx]
I haven't seen it on Linux, but if you need help let me know I'll check the Linux API's too. -
AVAYA IP Phones unable to get an IP address from DHCP server.
I installed new SRW208P switch and I mada an uplink connection with SRW 2024 switch (using GE port).
when I am trying to connect AVAYA IP Phone to the SRW208P port, the set trying to get an IP address from the DHCP server and failed to get it.
some times after 10 minutes, it get the IP address, but all the machines (PCs) connected to the same switch (SRW208P) hange.
Note: the PCs an IP Phones are connected with separate UTP cables to the access switch.
Is there any suggestions to solve this issue, please.
Regards,The issue is that your machine is not being assigned an IP address / was unable to reach the DHCP server to receive one. The 169.254.x.x IP your machine is showing isn't assigned from DHCP, it's assigned by the local machine and is referred to as an APIPA
address.
So something is preventing your machine from reaching your DHCP server, which could one of a number of things. In the first instance I'd suggest having a look at
http://epan36.blogspot.co.uk/2012/09/eventid-1001-dhcp-your-computer-was-not.html which lists several of things that could cause this error and things you can try in order to resolve it.
If none of those work, can you confirm whether you have any other machines connecting via the same method on the network, which might indicate whether this is an issue at the machine end or somewhere between the machine and DHCP server? -
Is it possible to get the ip address of the person who logged in a site
I need to get the IP address of the person who is browsing, i have tried request.getRemoteAddr() which is giving a firewall ip address but not his local system ip. what is the way to find out the ipaddress? should i use any applets or javascript?
Any way I got it
How to get the user ip address of client machine who is behind firewall
use this code
request.getHeader("x-forwarded-for");to get the local ip address
InetAddress localadd = InetAddress.getLocalHost();
localadd.getHostAddress();to get the external ip
request.getRemoteAddr()and here are few links which ip address discussions are made
[link1|http://forum.java.sun.com/thread.jspa?threadID=5155243&messageID=9586796]
[link2|http://forum.java.sun.com/thread.jspa?threadID=5309344&tstart=0]
thanks to BalusC and RahulSharna -
Hi, I have a strange issue with DHCP.
I have a lab environment on a single Hyper-v 2012 Server. AD, DNS & DHCP exist on a single virtual machine, I have a flat network 192.168.1.x, all VM's are on this network. I have authorised DHCP and Setup the scope.
A VM has a legacy adaptor, the legacy nic is configured in the boot order as the first device.
When I boot the machine I do not get a DHCP address, however when the OS boots the Legacy NIC then gets a DHCP address??
I need to use a legacy NIC as I need to PXE boot the VM, however I should get an IP address at boot time, which I don't get.
I have run Wireshark on the DHCP server, I can see the legacy NIC do a "DHCP Discover and the DHCP Server respond with a DHCP Offer" however all communication ends there. I have disable all firewalls and I see no reason for this not to work.
I have done tis before with no issues but I am unable to get this to work on this server!!!!!Hi
According to your description , it is recommended to make sure or do :
In your environment , there is no any other valid DHCP, BOOTP or proxy DHCP offers.
Make sure if the DHCP server is overload.
So suggest to test that creating a new “internal virtual switch” and change the settings of VM which provide DHCP service to connect to the new “virtual switch”.
Then create a new VM use legacy NIC also connect to the new “internal virtual switch” and try to PXE Boot.
Hope this helps.
Best Regards
Elton ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Hello,
Does anybody on this list know how to get the IP address of the
current machine using Forte?
I was originally going to use the registry entry but it seems
that the IP address in Win 95 is not stored in the same place on each
machine. Besides I would prefer something less platform specific.
The machine name may also be usefull.
Thanxs in advance
David McPaulHi Paul,
You can get the ip address by using external connection
myconn : externalconnection = new;
ipaddr : textdata;
ipaddr = myconn.getdotaddress ();
you have the ip address.
This is platform independent
hope this helps
ashok segu
McPaul David wrote:
Hello,
Does anybody on this list know how to get the IP address of the
current machine using Forte?
I was originally going to use the registry entry but it seems
that the IP address in Win 95 is not stored in the same place on each
machine. Besides I would prefer something less platform specific.
The machine name may also be usefull.
Thanxs in advance
David McPaul -
"Your Machine MAC Address is Invalid"?
Hi,
I need to use a software that is based on Adobe Air but got trouble with my MAC address. So, every time I try to login to the software, it's always failed and "your machine MAC address is invalid".
There's a question that kept popping up after the installation and it hasn't appeared anymore after I click "Always Allow". Any idea what should I do to get this fixed? Because all other MAC users can use this software well.
Thanks!- The MAC address you wrote is of the right format. Since it is unique to each device I can't tell if it is the one for your iPod. Are you sure that the password you entered is correct? Unless you turned it off, the first letter you entered is automatically capitalized. Carefully check each letter as you enter it. Also, some users have turned of Auto-Fill in Settings>Safari to get the password to work.
- Have you powered off and then back on your router
- Have you reset network settings:
Settings>General>Reset Network Settings
- Reset your iPod
Press and hold the On/Off Sleep/Wake button and the Home
button at the same time for at least ten seconds, until the Apple logo appears.
- The troubleshooting here:
http://support.apple.com/kb/TS1398
Entering the iPod's MAC address only helps if the router is set up to filter connections via the Mac address.
Maybe you are looking for
-
HELP
-
I have had this problem on two separate websites. I am using Fireworks-originated graphics and popup menu in a Dreamweaver template. On only one page on the website, my pop-up menu is appearing in the wrong place. Example (hover over "Teams & Schedul
-
Hi All,Please send me abap-hr material .Its urgent please.
Hi All,Please send me abap-hr material .Its urgent please.
-
Load chain auto reaction method
Hi All, In Bw 3.5 load chain is configured , if load fails an automatic mail is triggered with log message, now i want to change the mail id of the sender . I had checked in RZ20 BW monitor->process chain and selected the failed one and checked t
-
Lost my email on hot mail and bb id
hi.. i lost my email which is the same of blackberry id.. some one steal my email even i cant restore the password of that email.. i cant restore my bbm contact.. plz what the solution ?