Перейти к содержимому

Как узнать мак адрес сайта

  • автор:

How to find ip and mac addresses of some popular web sites/servers

I would like to know how to find IP address and/or a MAC addresses of some popular web sites or servers servers. For example: Google, Hotmail , Yahoo, etc.

Piotr Kula's user avatar

3 Answers 3

in a terminal (a command prompt if you are on Windows) to get the resolved IP address printed. This is the easiest way I use in practice, and it is more or less universal.

Otherwise dig or nslookup are more «correct» for the task, but might not be available, and might give more info than you want.

The MAC address is not printed, and I cannot imagine why it would be interesting. You probably only want the IP address.

EDIT: Adding my comment about MAC addresses:

You cannot see MAC addresses for hosts other than on your local network. You can only see the router’s MAC address, so if you need the foreign MAC address, then I don’t know what you are trying to do.

How to get MAC address of client using PHP?

The MAC address (the low-level local network interface address) does not survive hops through IP routers. You can’t find the client MAC address from a remote server.

In a local subnet, the MAC addresses are mapped to IP addresses through the ARP system. Interfaces on the local net know how to map IP addresses to MAC addresses. However, when your packets have been routed on the local subnet to (and through) the gateway out to the «real» Internet, the originating MAC address is lost. Simplistically, each subnet-to-subnet hop of your packets involve the same sort of IP-to-MAC mapping for local routing in each subnet.

Above will basically execute the getmac program and parse its console-output, resulting to MAC-address of the server (and/or where ever PHP is installed and running on).

How can a webpage get the MAC address?

I was logged on to my router and filling out some information. I clicked a button and a field was automatically filled in with my computer’s MAC address. How is this possible? Does it present a security risk?

I’m connected through VPN and my computer is up to date and running Microsoft Security Essentials (MSE). Is there JavaScript code that can get the MAC address? Is the MAC address sent in an IP header? I was surprised I wasn’t at least prompted to share this information.

Celeritas's user avatar

3 Answers 3

This is not a security risk.

The router looks in its ARP table to find the MAC address of your IP address. The reason it can do this, is because you are connected to the router via layer 2 in the OSI model. The router simply looks up your IP address in the ARP cache to find its MAC address. A website on the Internet is not connected to your LAN and will not be able to determine your MAC address.

In the same way, you from your computer determine the MAC address of your router by looking in the ARP cache of your computer. If you open up your command prompt (cmd.exe on Windows) and type «arp -a», you will see your router’s MAC address. This does not pose a security risk, and is required for IP traffic to work on an Ethernet network.

Dog eat cat world's user avatar

There is no risk here.

The Internet is not just one protocol, but a series of protocols that stack up on top of each other. The exact definitions of each part of the stack differ somewhat from person to person, but the two we’re concerned about here are fairly well-defined: the link layer and the network layer. Depending on who you ask, these layers have different numbers, so I’m going to use the names instead.

The link layer defines how to get a signal across two computers that are directly connected in some way. Ethernet is one example, and so is is the 802.11 family of wireless protocols; I list these because they use MAC addresses. PPP, which is often used by modems, is another example of a link-layer protocol, but it does not use MAC addresses. There are other link-layer protocols too, but I won’t get into them here.

The network layer defines how to get a signal across two computers that are NOT directly connected, using computers that ARE directly connected in some way. This is where IP lives, and it doesn’t use MAC addresses.* Data still has to be passed between machines that are directly connected to each other, but even if this is done using only protocols that use MAC addresses, it uses the MAC addresses of the two machines that are passing information between them at the moment, not the MAC address that started it all. Your MAC address is only visible to the very first link in the chain -the one between your computer and the router- and it legitimately needs that, because that’s how it tells data from your computer apart from data from other computers connected to it. But after that, your address is gone.

The reason that your router knows your MAC address is that you are directly connected to it, using the link layer (it can also see you in the network layer, which is how it’s presenting its interface to you, but that doesn’t matter here). It cannot see the MAC addresses of anyone who is not directly connected to it in this way, because that information gets lost in the network layer.** The same is true of other machines. So yes, your router can see your MAC address, but no one else can.

*: IPv4 doesn’t use MAC addresses, and if you’re not sure what IP version you’re using, it is probably IPv4. IPv6 allows (but doesn’t require) computers to use MAC addresses in certain ways, and some implementations do this, but it has caused a lot of controversy.

**: Again, this assumes you’re not using an IP version that leaks MAC address information.

Как узнать MAC адрес компьютера: 4 способа

MAC адрес – идентификатор сетевого устройства. Прописывается еще в процессе его производства. Уникальный идентификатор имеется у каждой сетевой карты или роутера.

Для чего нужен MAC адрес? Для стабильной работы интернета. Простым юзерам он понадобится, к примеру, для подключения маршрутизатора. Некоторые провайдеры применяют привязку по этому идентификатору, который нужно указать при настройке сети.

Существует 4 метода определить MAC-адрес вашего ПК для Windows и один – для Linux и Macintosh. Рассмотрим их детальнее.

Как узнать МАК адрес через командую строку?

Первый метод идентифицировать MAC адрес сетевой карты – через командную строку:

  1. Щелкните Win+R и напишите cmd.
  2. Пропишите ipconfig/all и щелкните Энтер.

Команда ipconfig/all

Параметр физического адреса

Это классический метод. Он описан в Вики и на многочисленных компьютерных порталах.

Но есть и другой способ. О нем редко упоминают, хотя он подходит для всех версий Виндовс (от «Хрюши» и выше). Поэтому, если предыдущий вариант у вас не сработал (иногда так бывает), можно определить МАК адрес компьютера этим методом. Все, что требуется – прописать getmac /v /fo list .

Команда getmac

Как видите, здесь уже отображается минимум информации – только самое важное. В моем случае в списке имеется одно устройство, но в вашем их может быть несколько.

Параметр физического адреса

Как посмотреть MAC адрес в Windows?

Этот метод работает на Виндовс 10, 8, 7, XP и хорошо подходит для новичков – поскольку еще проще, чем первые два. Итак, допустим, вам надо узнать MAC адрес на Windows 10. Для этого:

  1. Щелкните Win+R и пропишите msinfo32.
  2. Чтобы найти MAC адрес компьютера, перейдите в разделы Компоненты – Сеть – Адаптер.
  3. Идентификатор отображается только для подключенных устройств. Для остальных напротив нужной строки будет написано «Недоступно» (см. скриншот).

Шаги определения идентификатора

Как видите, здесь все еще проще, чем в первом примере.

Как определить MAC адрес компьютера?

И последний способ – посмотреть в свойствах сетевого подключения. Найти его можно разными способами, но быстрее всего будет так:

  1. Щелкните Win+R и напишите ncpa.cpl.
  2. Выделите конкретное подключение и зайдите в «Свойства».

Окно свойства

Указанных выше 4 способов для Виндовс будет предостаточно. Теперь рассмотрим другие ОС.

MAC адрес в MAC OS и Linux

Пользователи Linux смогут узнать идентификатор ноутбука или компа, написав в терминале:

ifconfig -a | grep HWaddr

Для пользователей Macintosh подойдет команда ifconfig . Альтернативный способ узнать MAC адрес на MAC OS:

  1. Откройте «Системные настройки», а затем – «Сеть».
  2. Зайдите в расширенные параметры и выберите пункт AirPort или Ethernet (смотря, какой идентификатор вам требуется).
  3. В первом случае нужное значение можно найти в пункте AirPort ID, а во втором – на вкладке «Оборудование».

Спасибо, полезная прога.

Спасибо большое! МАС поменяла, всё просто и понятно.

отдельно спасибо за 12 в начале mac адреса

а вот я чтото не пойму… установил сначала тунельбир, потом опенВПН, и в платной и бесплатной программе одна и та же проблема… А проблема вот в чем: я правильно понял чтобы работало нужно подключаться через кабель? а если я через модем сижу или через моб.телефон(точка доступа раздача крч) вот и вторая проблемка, то что мой телефон раздает интернет — через комп подсоед. как к вайфаю, а программа заменяющая IP появляется «Неопознанная сеть» — без доступа к сети. что делать?! получается меняет IP, Но интернет не дает по той области от куда IP… не пойму короче. на фотках вроде показал проблему. Если можно в лс Алексей Виноградов с вами поговрить, я кинул заявочку. за ранее спасибо

вообще по кабелю совсем не обязательно, а то что у тебя не работает это надо смотреть, потыкаться по сетевым подключениям. Может предыдущий софт, антивирус, бранмауэр что-то начудили

Добрый день! столкнулась с необходимостью прятать свой реальный айпи адрес (я работаю в вк, и рассылаю приглашения в свою группу с «левых» страничек но чтобы не заблокиировали группу и рабочую страничку как я понимаю лучше прятать свой реальный айпи? подскажите как лучше это делать? обратилась на сайт hideme.ru как тут советовали в статье, но там ответили что: «Наши общие адреса не подходят для соц сетей
но вы можете арендовать дополнительный ip адрес» у одного моего организатора разом заблокировали 8 пригласительных страничек, вот мы и озадачились…Буду признательна за подсказки как обезопасить рабочую страничку и группу ВК

видимо, для этих целей нужно заказывать уникальные IP, как вам и посоветовали

Ферги, здравствуйте, вот такой вопрос к вам .я работаю на профитцентре, и мне если взять задание иногда нужно менять айпи, я установила расширение и он поменялся, а в задании пишет, что такой ай пи уже был.значит как то основной все равно прослеживается? С мобильного интернета всегда берет задания парадокс, так как там при каждом подключении новый айпи. Почему так?

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *