Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Real MAC/IP address?  (Read 3699 times)

0 Members and 1 Guest are viewing this topic.

High1

    Topic Starter


    Apprentice

    Thanked: 2
    Real MAC/IP address?
    « on: November 20, 2016, 05:31:36 AM »
    Hello

    I have the following in Command Prompt under IPCONFIG /ALL:

    Ethernet adapter Local Area Connection:
    Physical Address. . . .: D0-27-**-**-**-**

    Wireless LAN adapter Local Area Connection* 2:
    Physical Address. . . .: 5A-D1-**-**-**-**

    Wireless LAN adapter Local Area Connection* 3:
    Physical Address. . . .: 1A-D1-**-**-**-**

    Likewise, with my IP address. I see:

    Wireless LAN adapter Wireless Network Connection:
     IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)

    That is not my IP address at all.

    Which command lines do I require, please, to identify my real MAC address (physical address), the unique address for my PC, and IP address?

    Thank you.


    camerongray



      Expert
    • Thanked: 306
      • Yes
      • Cameron Gray - The Random Rambings of a Computer Geek
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Mac OS
    Re: Real MAC/IP address?
    « Reply #1 on: November 20, 2016, 05:47:24 AM »
    192.168.1.2 is the IP of your machine on the local network, if you want your public IP address you need to use an external website such as http://ipchicken.com/ or http://icanhazip.com/

    Are those MAC addresses given next to "Physical Address" incorrect?

    High1

      Topic Starter


      Apprentice

      Thanked: 2
      Re: Real MAC/IP address?
      « Reply #2 on: November 20, 2016, 07:07:36 AM »
      Hello

      Thanks for your reply.

      The addresses I copied from cmd, but I always thought that a computer only had one MAC address?


      camerongray



        Expert
      • Thanked: 306
        • Yes
        • Cameron Gray - The Random Rambings of a Computer Geek
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Mac OS
      Re: Real MAC/IP address?
      « Reply #3 on: November 20, 2016, 07:31:39 AM »
      Each network adaptor will have its own MAC address - The MAC identifies the network hardware rather than the machine itself.  What are you trying to achieve?

      High1

        Topic Starter


        Apprentice

        Thanked: 2
        Re: Real MAC/IP address?
        « Reply #4 on: November 20, 2016, 07:38:10 AM »
        Quote
        The MAC identifies the network hardware rather than the machine itself

        Oh, right, thanks.

        I didn't know. I simply wanted to find out the MAC address of my PC - I didn't realise that the MAC address was associated with a network card. So those computers with no Internet connection or network card installed, do not have a MAC address?

        Thanks again.

        Salmon Trout

        • Guest
        Re: Real MAC/IP address?
        « Reply #5 on: November 20, 2016, 07:50:26 AM »
        those computers with no Internet connection or network card installed, do not have a MAC address?
        You got it.

        High1

          Topic Starter


          Apprentice

          Thanked: 2
          Re: Real MAC/IP address?
          « Reply #6 on: November 20, 2016, 07:52:59 AM »
          Thanks for clarifying

          Salmon Trout

          • Guest
          Re: Real MAC/IP address?
          « Reply #7 on: November 20, 2016, 08:21:22 AM »
          Note that most PCs nowadays have a network adapter chip on the motherboard, rather than a separate network card, and that chip will have a unique MAC address. Most laptops will also have a wifi adapter built in too, and that will have its own separate MAC address. So do smartphones, smart TVs, in fact anything capable of a network connection - anything that has wifi for example, such as cameras.

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: Real MAC/IP address?
          « Reply #8 on: June 22, 2017, 09:16:43 PM »
          Here is a definition of the MAC address.
          https://kb.iu.edu/d/alfq
          Quote
          Every network adapter has a Media Access Control address (usually shortened to MAC address). A MAC address is a six-byte identifying number permanently embedded in the firmware of the adapter, and is readable by the network and the operating system of the device on which the adapter is installed. All Ethernet cards and modems have a MAC address. The address must follow the standards set by the Institute of Electrical and Electronics Engineers (IEEE), which sets computer networking standards. The MAC address is a six-pair set of hexadecimal numbers, for example, a1-c2-e3-44-5f-6d.

          The purpose of the MAC address is to uniquely identify every node (e.g., workstations and printers) on a network. Every adapter has a unique MAC address. Even two identical models from the same manufacturer will have distinct MAC addresses.

          Note: You may also hear people refer to the MAC address as the physical address, the hardware address, or the adapter address.

          Notice "The purpose of the MAC address is to uniquely identify every node." In this context a node is a thing that does work  taht makes it isignificant in the scheme of thigs. So far, garbage can lids do nat havaq a MAC address. But they have proposed giving a Mac address to the can, just not the lid. Bit that might change.


          Hackoo



            Hopeful
          • Thanked: 42
          • Experience: Expert
          • OS: Windows 10
          Re: Real MAC/IP address?
          « Reply #9 on: June 22, 2017, 09:32:49 PM »
          Hi  ;)
          Here is a batch script that can get your (LAN ,Public) (IP) and MAC Addresses  8)
          Code: [Select]
          @echo off
          Title Get (LAN ,Public) (IP) and MAC Addresses by Hackoo 2017
          mode con cols=80 lines=5 & Color 9E
          echo( & echo(
          echo   Please Wait a While ... Searching for (LAN ,Public)(IP) and MAC addresses ...
          Set "LogFile=%~dp0%~n0.txt"
          @for /f "delims=[] tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do (
              set "LAN_IP=%%a"
          )

          for /f "tokens=2 delims=: " %%A in (
            'nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"'
          ) Do set ExtIP=%%A


          @For /f %%a in ('getmac /NH /FO Table') do  (
              @For /f %%b in ('echo %%a') do (
                  If /I NOT "%%b"=="N/A" (
                      Set "MY_MAC=%%b"
                  )
              )
          )
          Cls
          echo(
          echo                My Private LAN IP       : %LAN_IP%
          echo                My External Public IP   : %ExtIP%
          echo                MAC Addres              : %MY_MAC%

          (
          echo My Private LAN IP      : %LAN_IP%
          echo My External Public IP  : %ExtIP%
          echo MAC Address            : %MY_MAC%

          )>"%LogFile%"
          Timeout /T 5 /NoBreak>nul
          Start "" "%LogFile%"