MAC (Media Access Control)Addreess, Network Card address.

Hi ,
Could you please tell me
how to read computer's MAC Address using Java programme.
its urgent !
Thanks
ramesh

You can get the mac address by running ipconfig in a
DOS prompt and parsing out the data.
//First run ipconfig
Process conf =
Runtime.getRuntime().exec("c:/windows/ipconfig.exe
/all");
// then parse out the response
DataInputStream ds = new
DataInputStream(conf.getInputStream());
while ((String lineItem = ds.readLine()) != null) {
// look for index of "Physical Address" and you have
e it
There is a lot more information returned here as well
you might find usefull.This solution seems platform specific. Do you have a solution that is more portable?

Similar Messages

  • Display MAC (media access control) address of connected access point.

    Hi all! Sorry if this is already posted somewhere but I tried searching and was having difficulty because of the word MAC having multiple meanings here.
    Anyways I want to be able to view the MAC (media access control) address of the access point I am connected to. Is this possible? I can't find it in System Preferences. Is there a terminal command that would allow me to see it? Any help would be MUCH appreciated. Thanks!

    I'm looking at it right now. In the top portion, next to the active graph, it has the SSID of my access point. In the table beneath that, my access point is the first on the list, and the MAC address is clearly visible.
    Second if I click on my access point in the list, the MAC address appears, temporarily at the bottom of the window.
    For comparison, in the iStumbler preferences, on the AirPort tab, I have only "Auto-Select Best Network" & "Keep on Top" selected.

  • Require MAC (Media Access Control) address for my ...

    Hi
    I recently bought the Nokia C6.
    I want to connect to my WiFi network in my office.
    My network administrator require the MAC (Media Access Control) address of my set to give me access to the network.
    How can I find this address for my set?
    Solved!
    Go to Solution.

    On home screen:
    Open the number keypad (button in the middle in bottom row) and then dial *#62209526# (equals *#MAC0WLAN#) => Device will show your WLAN MAC address.

  • MAC (Media Access Control) filtering

    I have MAC filtering set on my wireless router. How can I find the MAC address of my iPod Touch to be able to let it thru'?
    Thanks
    Nigel

    Ben,
    Many thanks for that and sorry for the slow reply!
    Now I just need to find how to get my music and videos onto it without having to use iTunes or download stuff and pay for it! I will be happy.
    Thanks
    Nigel

  • Controlling Two Network Card by LabVIEW

    Hi,
    I'm using LabVIEW 8.5 and Windows XP.
    I am intending to use LabVIEW to control a PC with 2 network cards in it.
    I want to send TCP/IP packet out from one network card,
    and receive the packet from another network card.
    Do I have to change the confguration of the XP system?
    How can I assign those two different cards to send and receive individually?
    Can anyone tell or suggest what to do for me
    Thank you very much~ ^^

    You will not be able to directly prohibit the network cards from receiving or transmitting. You can define your network routes on the PC to route the traffic in the manner you want. Each network adapter will need to have its own IP address. NI's Internet Tool kit has a few issues, most notably the FTP VIs, when using multiple NICs. In addition, any DNS requests made will be routed to the primary network card. Windows determines which interface it thinks is the primary interface. From a code perspective using the native TCP or UDP VIs you will not have to do anything special.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Media Access control address on my ibook

    I have a pc desktop and wireless network. I connect my ibook wirelessly to my pc desktop. I want to enter my ibook MAC address into my router for added security. Where do i find it on my ibook?

    Just found the answer on this message board scrolling through questions.

  • Internet Access with a Networking Card

    I have a macbook pro (for about three months) that has VISTA installed. ( I have been a PC user for about 20 years and will need time to learn about the MAC operating system). I bought a Verizon USB720 card to access the internet nationally through VISTA on the macbook pro. There may be some software in the computer that prevents my being able to use this card. The error message in effect says that someone is using this internet connection. I returned the first Verizon card and bought another card with the same error message. Any ideas what the problem may be? Many thanks EKL1

    You probably need to set the card up in OSX. Verizon should have a modem script that needs to be installed. (Hard Drive>Library>Modem Scripts). Then you need to set up the card from Network Preferences. Then it should work on both platforms.

  • Do Mac Pros need network cards?

    I bought a Mac pro in 2007.  It's running 10.4. Do I need to buy a network card to access an existing wireless network?

    In 2007, so that should have been an original Mac Pro.  The wireless network card was an optional add-on with a Mac Pro, so if you did not order one with it, then you do not have a wifi card and will need to purchase one.
    I think wifi was only as a build to order option (that is, no wifi as standard equipment) up to about the 2010 Mac Pro's.
    P.S. if you are really running 10.4 on that machine, then you must actually have a PowerMac G5, not a Mac Pro (all Mac Pro's are Intel machines) and the first Mac Pro would have shipped with OS X 10.5 on it.  No PowerMac every shipped with wifi as a standard item, only as build to order optional equipment.

  • Trouble Accessing my Wireless Network

    I have the older BEFW 11s4; it is hooked up to our Cable modem. We can see and connect to the router, but cannot get access to teh internet. Any suggestions or guidance to fix such an issue would be apprecaited.
    Thank you
    John Edmonton

    Most Cable Internet Service Providers (ISP) use Media Access Control (MAC) Address authentication to establish Internet connection for end-users. MAC address is a unique identifier assigned to the network adapter/s of the computer. To set up your Linksys router to work with a cable ISP, you have to enable the MAC Address Clone feature on the router’s web-based setup page.
    Well connecting the cable modem to the router’s WAN or Internet port. Connect a computer to any of the numbered ports (1, 2, 3 or 4). While making the following connection you will be loosing the internet connectivity. Here is the link which will help you to get the internet back again: http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=0ff4c94586a345d082828ec2161aaecf_3686.xml&pid=80&r...

  • Network Card Teaming for the Home

    Sadly microsoft is way behind the other competing OS's  in this field.
    Sure you may say that your server versions offer this but the home needs its too. Why you might ask. The answer is Bluray and eventually 4k movies. I copy them to my freebsd plex server for home viewing. I'd prefer not
    to let teenagers ruin my bluray disks. I copy them once and then store them safely away.
    My freebsd plex  server has 3 1 Gig links to my home cisco 24 port Gig switch which connects by 3 Gig links to my 8 port cisco switch and the 3 nics in my FX8350 box. This works fine in linux and freebsd , but unless
    I have  identical cards and can run the manufacturers teaming software I am basically screwed in windows and back to single links.
    You may say that I'm disk bound anyway, but I have a a 4 X 3 Terabyte disk ZFS system in their version of RAID 0 which is rysnced to four identical pools both local and remote over a 5ghz wifi link.
    Don't restrict us and blame issues with response times as I've read. Just let us use it as an option  and we'll make our own judgement. After over 30 years of computer experience I can cope. Remember us baby boomers
    like your founder.  I am currently downloading the enterprise version to see if it has the capability.
    I have read many comments about this and I totally agree with them.
    This is not only your chance not only to catch up with what currently appears to be your technical superiors but also provide a compelling reason to upgrade from Windows 7 for technically expert users.
    Oh btw I do really like windows 10, no issues so far, but please fix this. Pretty please :D
    Cheers
    Phil

    On Thu, 25 Dec 2014 01:09:56 +0000, S33kr wrote:
    Oh by the way your clarification was more like obfuscation. Its not about streaming media , its about Teaming Network Cards to create multiple gig LACP channels. I've changed the title to reflect that.
    I don't think that Microsoft is too concerned about losing consumer sales
    due to any lack of native teaming in its consumer level OS'. If one
    absolutely requires NIC teaming on a consumer OS then the solution for
    Windows is to purchase multiple NICs from the same vendor that support
    teaming and use their configuration utility to create and manage the team.
    Teaming, at the consumer level, is an extreme outlier and as I said, I'm
    sure that Microsoft isn't losing any sleep over any lost sales to due its
    lack of native teaming in the client OS.
    Paul Adare - FIM CM MVP
    You should never anthropomorphize computers; they hate that. -- Skud

  • Installing new network card...how?

    The built in ethernet on my computer does not appear to be working. How do I get the Mac to see a new network card once i plug it into the board? Same for a sound card. I know that the built in sound is bad.
    I have extensive knowledge of these processes for a PC, but not at all for a Mac. A PC will automatically detect new hardware, but the Mac doesn't appear to see it.
    Thanks for any help.

    The built in ethernet on my computer does not appear
    to be working. How do I get the Mac to see a new
    network card once i plug it into the board? Same for
    a sound card.
    There aren't a lot of PCI Ethernet cards supported natively in OS X, and even then those that are usually still need a driver installed for them to function. D-Link is the only one I know off-hand that markets a 10/100 card billed as Mac-compatible. A Mac-compatible generic sound card will be even harder to track down.. the only ones I know of are very expensive ones aimed at digital audio production.
    -Douggo

  • MAC address access control default?

    I'm still using old graphite ABS, and all of them
    are using MAC address access control.
    Just by accident I connected a PB G4 with an
    internal extreme Airport card.
    The MAC address of this AirPort card wasn't in the
    access list of the ABS.
    It looks like ABS does only limit access through
    MAC addresses for 802.11b cards. I'll spend some time
    to double check this behaviour.
    Did anyone already see this default of access
    control?

    I'm pretty well aware of the limitations of any kind of
    MAC address control: in an hostile environment its a
    "straw house" or an "empty extinguisher".
    But in a collaborative and friendly environment I thought
    it may be a useful "frontier marker" between "friendly" and
    clearly "hostile" behaviors.
    This belief was foolish.

  • MAC address and router access control

    My iPhone 3GS can only access the network (through my Netgear KWGR614 wireless router) when the router's MAC address access control is off. When I turn it on the phone is blocked. The MAC address I use is taken from the iPhone settings. It begins with 64. All other MAC addresses I have ever seen begins with 00. Is this MAC address correct? If it is right, could it be that the router can't handle this address?

    The first 3 bytes of the mac address identifies the manufacturer. For example, mine starts with 04:1e:64 which is Apple
    04-1E-64 (hex) Apple, Inc
    041E64 (base 16) Apple, Inc
    1 Infinite Loop
    Cupertino CA 95014
    UNITED STATES
    . if it starts with 64 then it belongs to
    64-4F-74 (hex) LENUS Co., Ltd.
    644F74 (base 16) LENUS Co., Ltd.
    18-5 Gwacheon-Dong
    Gwacheon Gyeonggi-Do 427-060
    KOREA, REPUBLIC OF
    check this list : http://standards.ieee.org/regauth/oui/index.shtml
    enter your first 3 numbers (first 3 pairs) from your wifi (settings/general/about) (don't use colons in the search)
    Not sure about the router as I never tried mac filtering. Each router will behave differently.
    Hope this helps.

  • MAC address access control

    Why does my airport express/time capsule show more wireless clients than I've authorized via the MAC address access control?

    Sorry, but I have to re-awaken this old thread.
    1. I recently purchased a new iPad.
    2. With a) a hidden SSID, b) a MAC address-based access control list and c) a WPA2 secured network, I am assuming that no new device should be able to access my WiFi network.
    3. When I got home with the new iPad on Friday evening, and started it, it was online without even asking me whether to connect, or what the WPA2 key was.
    I find this strange.
    Additional information:
    4. I also have an iPhone 4S.
    5. I used the personal hotspot feature of the iPhone 4S to connect the WiFi-only iPad to the Internet while on the road.
    6. That personal hotspot feature was still enabled when I got home with the iPhone and the new iPad.
    7. Home network setup:
    7a) Fritz.Box 7270 as DSL modem/router (WiFi disabled)
    7b) Apple Airport Extreme (v 7.6.4) connected via LAN to DSL router, (in bridge mode, create wireless network), Access control on this base station.
    7c) Apple Airport Express (v 7.6.4) connecte to Airport Extreme via WiFi (extend wireless network), Access control not an option on this base station.
    8. Native IPv6 enabled on all devices (and provided by ISP).
    Any suggestion and help is highly appreciated.

  • [SOLVED] Lost MAC address on network card

    It seems that my wired ethernet card has lost its MAC address. Some information/output:
    # lspci|grep Ethernet
    02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller
    The card uses the sky2 kernel module
    # dmesg|grep sky2
    sky2 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    sky2 0000:02:00.0: setting latency timer to 64
    sky2 0000:02:00.0: v1.22 addr 0xf7dfc000 irq 16 Yukon-2 EC Ultra rev 2
    sky2 eth0: addr 00:00:00:00:00:00
    Adding a line
    #ifconfig eth0 hw ether <random-address-here>
    to the startup-scripts makes it possible to use the nic, but it seems like a very temporary solution.
    I don't know what can have caused this. Maybe the winter cold here in Norway erased some part of the nic's ROM?
    - Does anybody have any idea how I can remedy this?
    - Do I have to send the laptop in for repair to get it restored?
    Last edited by kapelrud (2008-12-05 16:35:54)

    iBertus wrote:I suppose a driver bug could have corrupted the ROM on the network card. Do you have a Windows install that you can boot into to see if the card is working correctly with those drivers?
    Using "ipconfig /all" on windows showed the same zeroed mac address, so I guess the problem isn't (wasn't) linux-specific.
    I left the pc in my locker at school last night and when I started it up again this morning the mac had mysteriously returned! Maybe the university leprechaun was bored yesterday.
    So I guess the problem is solved, for now... Thanks anyway!

Maybe you are looking for