Настройка WOL для ПК

1391
Richard

Моя цель - иметь возможность удаленно разбудить мой компьютер. Итак, я сделал следующее:
1) Запустил Windows 8, поэтому выключил брандмауэр
2) Зашел в свойства моей локальной сети и включил WOL
3) Зашел в BIOS и проверил все параметры пробуждения под управлением питанием

Я использовал порт WOL на изображении монитора WOL, чтобы посмотреть, получаю ли я какие-либо соединения. Используя приложение Mocha WOL для iPhone, я сначала попробовал WOLing, когда он подключен к моей домашней сети, и Depicus сказал, что получил его, отлично. Но моя главная цель - это WOL откуда угодно. Поэтому я отключил Wi-Fi для своего iPhone и попытался WOL, используя следующие настройки:
IP: 209.189.XXX.XXX (получил это от googleing «что такое мой ip»)
MAC-адрес: 00-0F-XX-XX-XX-XX
Порт WOL: 9

Пытаясь проснуться, монитор Депика ничего не получил. В порядке Хорошо. Затем я зашел на сайт WOL с изображением WOL и ввел те же настройки:
Mac-адрес: То же, что и над
IP: То же, что и выше.
Маска подсети: 255.255.255.255 (не уверен, но видел на каком-то форуме, что вы должны использовать это для удаленного wol).
Порт: 9

Все еще не повезло. Я живу в квартире, поэтому у меня есть только роутер. Зашел на страницу роутера и попытался перенаправить порт 9. Похоже на это: Настройка WOL для ПК

Но я понятия не имею, что поставить для поля «To IP Address». И адрес 192.168.1.X, поэтому я даже не думаю, что это что-то сделает, так как я не могу использовать локальный ip.

Любые идеи о том, как заставить это работать?

2

3 ответа на вопрос

2
Bon Gart

Ok. The screenshot of your port forwarding page shows you were working in the correct direction. What you need to do is determine which internal IP address is being assigned to your computer by your router. However... since this address can be different if you allow the router to assign it randomly, what you need to do is tell the router what internal IP address you want for your computer EVERY time, and then assign that address in the port forwarding page.

Whaat? Huh? lol.

Ok. Click the Setup, on your router Admin page there. You will see the button for DHCP reservation table. Once it opens, look at the table of the currently connected computers by their name and MAC address. There, on that table, you can tell the router to assign a specific internal IP address to your computer. Say... 192.168.1.101 and why that? Well, you'll probably never connect 100 computers to your router.

Now, by using the DHCP reservation table, you ensure that every time you start your computer, it gets the address of 192.168.1.101 and this is important, because now when you go over to the port forwarding tab, you can put a 101 in that one box you can change.... you know, the box that currently has a 0 in it. This way, you are telling the router to forward all traffic on port 9, to the computer at 192.168.1.101.... which is the internal IP address you assigned to your computer in the DHCP reservation table.

Follow?

1
ernie

The reason you need port forwarding when trying to do this from outside your local area network (LAN) is that you need to connect to your router, which then redirects the message to your computer.

The IP address you're getting from whatever website you use is the IP address of the router. In other words, right now, you're sending a message to your router, but your router has no idea where to send that. That's where the port forwarding comes in.

Your computer has it's own internal LAN address (as does your iPhone when it's on your wireless), and you need to tell your router to send the message to that system. Your router is configured to use 192.168.1.* address on the intranet/LAN side, which is why the port forwarding dialog has that filled in for you already. So, how do you get your computers IP address? Easiest way I know of is:

  1. Enter 'cmd' in the Start screen to launch a command prompt
  2. Type ipconfig and press enter - you should see a line that starts "IPv4 Address" and that should be a 192.168.1.* address.

Take that address and enter it into the port forwarding form you've shown in your screen shoot, save and apply the changes.

The way you've got it set up right now, the messages are getting forwarded, to a system with the address of 192.168.1.0, which is technically an invalid address, so the WOL message that you're trying to send is probably being sent nowhere. Change it to point to your Win8 system, and you should be good to go.

0
Josh

If it were me, I'd flash the router with DD-WRT firmware and use the built-in WOL features in the admin console to wake up the machines.

DD-WRT Site

Хорошо, если я положу DD-WRT на мой роутер, что тогда? Как это поможет? Richard 11 лет назад 1
@josh R - немного подробностей для вашего ответа. Carl B 11 лет назад 0
Это полный перебор для простого вопроса о переадресации портов, и [как правило, все равно будет использоваться переадресация портов] (http://www.dd-wrt.com/wiki/index.php/WOL#WOL_Methods). ernie 11 лет назад 0