tag:blogger.com,1999:blog-9099779.post4049463266930610927..comments2024-03-23T23:09:17.426+01:00Comments on StalkR's Blog: Wake on Lan in PythonStalkRhttp://www.blogger.com/profile/15113480981262771031noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-9099779.post-34111712446822188392010-08-09T21:59:32.298+02:002010-08-09T21:59:32.298+02:00Nice article and so impressive.
thanks for sharin...Nice article and so impressive. <br />thanks for sharingmegauploadhttp://www.ldevils.comnoreply@blogger.comtag:blogger.com,1999:blog-9099779.post-84138204409839854692010-07-28T12:54:47.715+02:002010-07-28T12:54:47.715+02:00You're welcome :)
As I said the code is for P...You're welcome :)<br /><br />As I said the code is for Python2, for Python3 just see the original author http://myf00.net/?p=215<br />In addition, you have to set something in the sendto(). If the remote computer address is A.B.C.D then use:<br />sock.sendto(data, ('A.B.C.D', 9))<br /><br />Also, most distributions have a wakeonlan package (see Debian http://packages.debian.org/search?keywords=wakeonlan), it may be more convenient: wakeonlan -i A.B.C.D -p 9 00:11:22:33:44:55StalkRhttps://www.blogger.com/profile/15113480981262771031noreply@blogger.comtag:blogger.com,1999:blog-9099779.post-15239362188023016702010-07-28T04:24:17.674+02:002010-07-28T04:24:17.674+02:00Mine is python3 and it shows this error
line 8, i...Mine is python3 and it shows this error<br /><br />line 8, in <br /> sock.sendto(data, ('', 9))<br />TypeError: sendto() takes exactly 3 arguments (2 given)<br /><br />Google the error and it seems to have something todo with encoding.<br />Do you know how to fix it.<br />THank a lot for the code.Anonymousnoreply@blogger.com