birdofprey Posted April 28, 2007 Share Posted April 28, 2007 The helpfiles are really thin on this topic. I tried to figure out what I was doing wrong on my own, but I now have to stop wasting my time cause I have no clue. Hopefully all I ask for here is one minute from your time to spot the problem. Except the comments regarding the script, I'd like to ask a few other questions related to this How do I close a port ? Or a connection ? Can I send data backwards ( to the initiator of an incoming connection) ? Comments regarding security issues are also more than welcome. expandcollapse popup; SERVER - LISTENING - RECEIVES AND EXECUTES COMMANDS #region Global $myip = "127.0.0.1" Global $myport = 1117 ; server's coordinates Global $remoteip = "127.0.0.1" Global $remoteport = 1000 ;remote's coordinates Global $passkey = "#32342345#32f" Global $markstart = "~!2!" Global $markend = "@#$SEEE3112" ;general variables (temporary values) Global $handshake Global $listeningsocket Global $ConnectedlisteningSocket Global $rm ; received message Global $sm ; sent message #endregion Listen() While 1 ;~ $rm = _TCPRecieveText ($ConnectedlisteningSocket) $rm = TCPRecv ($ConnectedlisteningSocket, 1024) If $rm <> "" Then ConsoleWrite ( $rm & " <" & @LF ) Msgbox ( 0, "", $rm & " <") EndIf Sleep ("500") Wend Func Listen() TCPStartup () $listeningsocket = TCPListen ($myip, $myport, 100) ; define socket $ConnectedlisteningSocket = TCPAccept($listeningsocket) ;permit incoming EndFunc Func msg($message) ;~ if $myip = "" then $myip = _GetMyIP() $mssg = $passkey & "|" & $message & "|" & $myip & "|" & $myport & "|" & $markend ;passkey will be generated randomly... Return $mssg EndFunc Func demsg($message) Local $m $m = StringSplit($message, '|') If $m[0] = 5 And $m[1] = $passkey And $m[3] = $myip And $m[4] = $myport And $m[5] = $markend Then ; I could use this to change port randomly Return $m[2] Else ConsoleWrite ( "-- CHECK THIS OUT: " & $message ) EndIf EndFunc Func _TCPRecieveText ($iSocket) Local $vBuffer = "" Local $iBytes = -1 While 1 $vBuffer &= TCPRecv ($iSocket, 1024) If $iBytes = -1 And StringInStr ($vBuffer, $markstart) Then $iBytes = StringLeft ($vBuffer, StringInStr ($vBuffer, ",")-1) $vBuffer = StringTrimLeft ($vBuffer, StringInStr ($vBuffer, ",")) Else If StringLen ($vBuffer) = $iBytes Then $vBuffer = demsg ($vBuffer) ExitLoop EndIf EndIf WEnd Return $vBuffer EndFunc Func _TCPSendText ($iSocket, $vData) Local $vBuffer = "" $vData = msg ($vData) $vBuffer = StringLen ($vData) & $markstart & $vData TCPSend ($iSocket, $vBuffer) EndFunc Func Checkip(Byref $iptocheck) Local $t_ip $t_ip = StringSplit($iptocheck, '.') If $t_ip[0] = 4 And StringIsDigit($t_ip[1]) And StringIsDigit($t_ip[2]) And StringIsDigit($t_ip[3]) And StringIsDigit($t_ip[4]) Then Return $iptocheck Else MsgBox (0, "RSDC", "Invalid IP Address" ) EndIf EndFuncoÝ÷ Ù«¢+Ø(ì±¥¹ÐÍ¥´ÅÕ½Ðí½¹Ñɽ°Á¹°ÅÕ½Ðì)±½°ÀÌØí¡¹Í¡()±½°ÀÌØíÁÍÍäôÅÕ½ÐìÌÈÌÐÈÌÐÔÌÉÅÕ½Ðì)±½°ÀÌØíµÉÍÑÉÐôÅÕ½ÐíøÌÌìÈÌÌìÅÕ½Ðì)±½°ÀÌØíµÉ¹ôÅÕ½ÐíÀÌØíMÌÄÄÈÅÕ½Ðì()±½°ÀÌØíɵ½Ñ¥ÀôÅÕ½ÐìÄÈܸÀ¸À¸ÄÅÕ½Ðì)±½°ÀÌØíɵ½ÑÁ½ÉÐôÄÄÄÜ)±½°ÀÌØíµå¥ÀôÅÕ½ÐìÄÈܸÀ¸À¸ÄÅÕ½Ðì)±½°ÀÌØíµåÁ½ÉÐôÄÀÀÀ()±½°ÀÌØí±¥Íѹ¥¹Í½Ð)±½°ÀÌØí ½¹¹Ñ±¥Íѹ¥¹M½Ð()±½°ÀÌØí½¹¹Ñ¥½¹ÍÑÑÕÌ()±½°ÀÌØíÉ´ìÉ¥ÙµÍÍ)±½°ÀÌØíÍ´ì͹еÍÍ((¥¹±Õ±ÐíU% ½¹ÍѹÑ̹ÔÌÐì((ÀÌØí½É´Å|ÄôU% ÉÑ ÅÕ½ÐíIMÅÕ½Ðì°ÈÌÈ°ÈÀÜ°ÄàØ°ÄÄÔ¤((ÀÌØí1°ÄôU% Ñɱ ÉÑ1° ÅÕ½ÐíIµ½Ñ%@ÅÕ½Ðì°ÄØ°à°ÔаÄܤ(ÀÌØí¥Á¥¹ÁÕÐôU% Ñɱ ÉÑ%¹ÁÕÐ ÀÌØíɵ½Ñ¥À°ÄØ°ÈØ°ÄÈÄ°ÈĤ((ÀÌØí±½±Ñ¥µ±ôU% Ñɱ ÉÑ1° ÅÕ½Ðí1½°Ñ¥µÅÕ½Ðì°ÄØ°ÔØ°ÔÈ°Äܤ(ÀÌØíɵ½ÑÑ¥µ±ôU% Ñɱ ÉÑ1° ÅÕ½ÐíIµ½ÑÑ¥µÅÕ½Ðì°ÄØ°ÜÌ°ØÌ°Äܤ((ÀÌØíÍÑÑÕͱôU% Ñɱ ÉÑ1° ÅÕ½Ðí¥Í½¹¹ÑÅÕ½Ðì°ÄÐÔ°Ø°ÜÜ°ÄØ° ¥Ñ=H ÀÌØíMM} 9QH°ÀÌØíMM}MU9-8¤¤)U% ÑɱMÑ ½±½È ´Ä°ÁáÀÀÀÀ¤(íøU% ÑɱMÑ ½±½È ÀÌØíÍÑÑÕͱ°ÁàÀÁÀÀ¤(ÀÌØí½¹¹Ñ¸ôU% Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½Ðí ½¹¹ÐÅÕ½Ðì°ÄÐÌ°ÈÔ°àÈ°ÈÔ°À¤((ÀÌØíÍ¡É¥¼ôU% Ñɱ ÉÑI¥¼ ÅÕ½ÐíM¡Õѽݸɵ½ÑAÅÕ½Ðì°ÄÌ°ÄÀÀ°ÄÐÔ°Äܤ(ÀÌØí¡¥É¥¼ôU% Ñɱ ÉÑI¥¼ ÅÕ½Ðí!¥É¹Ñɵ½ÑAÅÕ½Ðì°ÄÌ°ÄÄà°ÄÐÔ°Äܤ((ÀÌØí1°ÔôU% Ñɱ ÉÑ1° ÅÕ½Ðí%¸èÅÕ½Ðì°ÄØ°ÄÐаÄØ°Äܤ(ÀÌØí1°ØôU% Ñɱ ÉÑ1° ÅÕ½ÐíÐèÅÕ½Ðì°ÄØ°ÄØÜ°ÄÜ°Äܤ((ÀÌØíÑ¥µ¥¹ÁÕÐôU% Ñɱ ÉÑ%¹ÁÕÐ ÅÕ½ÐíÑ¥µ¥¹ÁÕÐÅÕ½Ðì°ÐÀ°ÄØà°ÔØ°ÈĤ)U% ÑɱMÑ ÕÉÍ½È ÀÌØíÑ¥µ¥¹ÁÕаÄÔ¤((ÀÌØíÍѸôU% Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½ÐíMÐÅÕ½Ðì°ÄÐÜ°ÄÔä°ØÔ°ÌÌ°À¤(ÀÌØí%¹ÁÕÐÄôU% Ñɱ ÉÑ%¹ÁÕÐ ÅÕ½ÐìÀÅÕ½Ðì°ÐÀ°ÄÐÌ°ÔØ°ÈĤ((ÀÌØíUÁ½Ý¸ÄôU% Ñɱ ÉÑUÁ½Ý¸ ÀÌØí%¹ÁÕÐĤ)U% ÑɱMÑ1¥µ¥Ð ÀÌØíUÁ½Ý¸Ä°ÌØÀ°À¤)U% ÑɱMÑQ¥À ´Ä°ÅÕ½Ðí5¥¹ÕÑÌչѥ°Í¡Õѽݸ½¡¥É¹Ñ¥½¸ÅÕ½Ðì¤()U%MÑMÑÑ¡M]}M!=¤()]¡¥±Ä($ÀÌØí¹5ÍôU%Ñ5Í ¤(%MÝ¥Ñ ÀÌØí¹5Í($% ÍÀÌØíU%}Y9Q} 1=M($$%á¥Ð($$($% ÍÀÌØí½¹¹Ñ¸($$%¥ÀÌØí¡¹Í¡±ÐìÐìÅÕ½ÐíMÕÍÍÕ°ÅÕ½ÐìQ¡¸($$$$ÀÌØíɵ½Ñ¥ÀôU% ÑɱI ÀÌØí¥Á¥¹ÁÕФ콹¹ÐѼݡХÐÍåÌ¥¸Ñ¡½à($$$% ½¹Í½±ÝÉ¥Ñ ÅÕ½Ðì´´´´ÅÕ½ÐìµÀìÀÌØíɵ½Ñ¥ÀµÀì1¤($$$%} ½¹¹Ð ÀÌØíɵ½Ñ¥À¤($$%±Í($$$%}¥Í ½¹¹Ð ¤($$%¹%($% ÍÀÌØí%¹ÁÕÐÄ(¹MÝ¥Ñ (íø%MÝ¥Ñ ÀÌØí½¹¹Ñ¥½¹ÍÑÑÕÌ(íø$% ÍÅÕ½Ðí ½¹¹ÑÅÕ½Ðì(íø$$%1¥ÍѸ ¤(íø%¹MÝ¥Ñ )]¹()Õ¹} ½¹¹Ð ÀÌØíɵ½Ñ¥À¤($%Q AMÑÉÑÕÀ ¤($ÀÌØí¡¹Í¡ô!¹Í¡ ÀÌØíɵ½Ñ¥À¤(%%ÀÌØí¡¹Í¡ôÅÕ½ÐíMÕÍÍÕ°ÅÕ½ÐìQ¡¸($%U% ÑɱMÑ ½±½È ÀÌØíÍÑÑÕͱ°ÁàÀÁÀÀ¤($%U% ÑɱMÑÑ ÀÌØíÍÑÑÕͱ°ÅÕ½Ðí ½¹¹ÑÅÕ½Ðì¤($%U% ÑɱMÑÑ ÀÌØí½¹¹Ñ¸°ÅÕ½Ðí¥Í½¹¹ÐÅÕ½Ðì¤($% ½¹Í½±]É¥Ñ ÅÕ½Ðí!¹Í¡Ý¥Ñ ÅÕ½ÐìµÀìÀÌØíɵ½Ñ¥ÀµÀìÅÕ½Ðì¥ÌèÅÕ½ÐìµÀìÀÌØí¡¹Í¡¤(%±Í($%5Í ½à À°ÅÕ½ÐíIMÅÕ½Ðì°ÅÕ½Ðí ¹¹½Ð½¹¹ÐѼ±¥¹ÐÅÕ½Ðì¤(%¹%)¹Õ¹($)Õ¹}¥Í ½¹¹Ð ¤(%Q AM¡Õѽݸ ¤)¹Õ¹()Õ¹!¹Í¡ ÀÌØíɵ½Ñ¥À¤($ÀÌØí ½¹¹ÑM½ÐôQ A ½¹¹Ð ÀÌØíɵ½Ñ¥À°ÀÌØíɵ½ÑÁ½ÉФ($%%ÉɽÈQ¡¸(íø$$%5Í ½à À°ÅÕ½ÐíIMÅÕ½Ðì°ÅÕ½Ðí¥±Ñ¼ÉÐÍÉÙÈÌÌìÅÕ½Ðì¤($$%IÑÕɸÅÕ½Ðí¥±Ñ¼ÉÐÅÕ½Ðì($%±Í($$%}Q AM¹QáÐ ÀÌØí ½¹¹ÑM½Ð°ÅÕ½ÐíÉÑ¥¹ÌÅÕ½Ðì¤($$%%ÉɽÈQ¡¸($$$%5Í ½à À°ÅÕ½ÐíÉɽÈÅÕ½Ðì°ÅÕ½ÐíÉɽȥ¸Q AM¹èÅÕ½ÐìµÀíÉɽȤ($$%±ÍìݥйÍÝÈ($$$$ÀÌØí±¥Íѹ¥¹Í½ÐôQ A1¥ÍѸ ÀÌØíµå¥À°ÀÌØíµåÁ½ÉаÄÀÀ¤ì¥¹Í½Ð($$$$ÀÌØí ½¹¹Ñ±¥Íѹ¥¹M½ÐôQ AÁÐ ÀÌØí±¥Íѹ¥¹Í½Ð¤íÁɵ¥Ð¥¹½µ¥¹($$$$ÀÌØíÙ±¥¥¹½µ¥¹µÍÍô}Q AI¥ÙQáÐ ÀÌØí ½¹¹Ñ±¥Íѹ¥¹M½Ð¤íѵÍÌ($$$%MÝ¥Ñ ÀÌØíÙ±¥¥¹½µ¥¹µÍÍ($$$$%ÍÅÕ½ÐíÉÑ¥¹ÌÅÕ½Ðì($$$$$%IÑÕɸÅÕ½ÐíMÕÍÍÕ°ÅÕ½Ðì($$$$%ÍÅÕ½Ðí¹½±ÅÕ½Ðì($$$$$%IÑÕɸÅÕ½Ðí¹½±ÅÕ½Ðì($$$%¹MÝ¥Ñ $$($$%¹¥($%¹%)¹Õ¹()Õ¹µÍ ÀÌØíµÍͤ(íø%¥ÀÌØíµå¥ÀôÅÕ½ÐìÅÕ½ÐìÑ¡¸ÀÌØíµå¥Àô}Ñ5å%@ ¤($ÀÌØíµÍÍôÀÌØíÁÍÍäµÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíµÍ͵ÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíµå¥ÀµÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíµåÁ½ÉеÀìÅÕ½ÐíðÅÕ½ÐìµÀìÀÌØíµÉ¹íÁÍÍäÝ¥±°¹Éѽɥ¹Ñ¼É¹½´¹ÉѸ¸¸(%IÑÕɸÀÌØíµÍÍ)¹Õ¹()Õ¹µÍ ÀÌØíµÍͤ(%1½°ÀÌØí´($ÀÌØí´ôMÑÉ¥¹MÁ±¥Ð ÀÌØíµÍÍ°ÌäíðÌäì¤(%%ÀÌØíµlÁtôÔ¹ÀÌØíµlÅtôÀÌØíÁÍÍä¹ÀÌØíµlÍtôÀÌØíµå¥À¹ÀÌØíµlÑtôÀÌØíµåÁ½ÉйÀÌØíµlÕtôÀÌØíµÉ¹Q¡¸ì$½Õ±ÕÍÑ¡¥ÌѼ¡¹Á½ÉÐɹ½µ±ä($%IÑÕɸÀÌØíµlÉt(%¹%)¹Õ¹()Õ¹}Q AI¥ÙQáÐ ÀÌØí¥M½Ð¤(%1½°ÀÌØíÙ ÕÈôÅÕ½ÐìÅÕ½Ðì(%1½°ÀÌØí¥ åÑÌô´Ä($(%]¡¥±Ä($$ÀÌØíÙ ÕȵÀìôQ AIØ ÀÌØí¥M½Ð°ÄÀÈФ($%%ÀÌØí¥ åÑÌô´Ä¹MÑÉ¥¹%¹MÑÈ ÀÌØíÙ ÕÈ°ÀÌØíµÉÍÑÉФQ¡¸($$$ÀÌØí¥ åÑÌôMÑÉ¥¹1Ð ÀÌØíÙ ÕÈ°MÑÉ¥¹%¹MÑÈ ÀÌØíÙ ÕÈ°ÅÕ½Ðì°ÅÕ½Ð줴Ĥ($$$ÀÌØíÙ ÕÈôMÑÉ¥¹QÉ¥µ1Ð ÀÌØíÙ ÕÈ°MÑÉ¥¹%¹MÑÈ ÀÌØíÙ ÕÈ°ÅÕ½Ðì°ÅÕ½Ð줤($%±Í($$%%MÑÉ¥¹1¸ ÀÌØíÙ ÕȤôÀÌØí¥ åÑÌQ¡¸($$$$ÀÌØíÙ ÕÈôµÍ ÀÌØíÙ ÕȤ($$$%á¥Ñ1½½À($$%¹%($%¹%(%]¹($(%IÑÕɸÀÌØíÙ ÕÈ)¹Õ¹()Õ¹}Q AM¹QáÐ ÀÌØí¥M½Ð°ÀÌØíÙѤ(%1½°ÀÌØíÙ ÕÈôÅÕ½ÐìÅÕ½Ðì($ÀÌØíÙÑôµÍ ÀÌØíÙѤ($ÀÌØíÙ ÕÈôMÑÉ¥¹1¸ ÀÌØíÙѤµÀìÀÌØíµÉÍÑÉеÀìÀÌØíÙÑ(%Q AM¹ ÀÌØí¥M½Ð°ÀÌØíÙ ÕȤ)¹Õ¹()Õ¹}Ñ5å%@ ¤(%1½°ÀÌØí¥À(%%%¹ÑÐ ÅÕ½Ðí¡ÑÑÀè¼½¡¥À¹å¹¹Ì¹½É¼ÅÕ½Ðì°QµÁ¥ÈµÀìÅÕ½ÐìÀäÈíù¥À¹ÑµÀÅÕ½Ðì¤Q¡¸($$ÀÌØí¥Àô¥±I¡QµÁ¥ÈµÀìÅÕ½ÐìÀäÈíù¥À¹ÑµÀÅÕ½Ðì°¥±ÑM¥é¡QµÁ¥ÈµÀìÅÕ½ÐìÀäÈíù¥À¹ÑµÀÅÕ½Ð줤($%¥±±Ñ¡QµÁ¥ÈµÀìÅÕ½ÐìÀäÈíù¥À¹ÑµÀÅÕ½Ðì¤($$ÀÌØí¥ÀôMÑÉ¥¹QÉ¥µ1Ð ÀÌØí¥À°MÑÉ¥¹%¹MÑÈ ÀÌØí¥À°ÅÕ½ÐìèÅÕ½Ð줬Ĥ($$ÀÌØí¥ÀôMÑÉ¥¹QÉ¥µI¥¡Ð ÀÌØí¥À°MÑÉ¥¹1¸ ÀÌØí¥À¤´MÑÉ¥¹%¹MÑÈ ÀÌØí¥À°ÅÕ½Ðì¼ÅÕ½Ð줬Ȥ($$ÀÌØí¥Àô ¡¥À ÀÌØí¥À¤($%IÑÕɸÀÌØí¥À(%¹%(%MÑÉÉ½È Ä¤(%IÑÕɸ´Ä)¹Õ¹ìôôÐí}Ñ%@()Õ¹ ¡¥À¡ åÉÀÌØí¥Áѽ¡¬¤(%1½°ÀÌØíÑ}¥À($ÀÌØíÑ}¥ÀôMÑÉ¥¹MÁ±¥Ð ÀÌØí¥Áѽ¡¬°Ìäì¸Ìäì¤(%%ÀÌØíÑ}¥ÁlÁtôйMÑÉ¥¹%Í¥¥Ð ÀÌØíÑ}¥ÁlÅt¤¹MÑÉ¥¹%Í¥¥Ð ÀÌØíÑ}¥ÁlÉt¤¹MÑÉ¥¹%Í¥¥Ð ÀÌØíÑ}¥ÁlÍt¤¹MÑÉ¥¹%Í¥¥Ð ÀÌØíÑ}¥ÁlÑt¤Q¡¸($%IÑÕɸÀÌØí¥Áѽ¡¬(%±Í($%5Í ½à À°ÅÕ½ÐíIMÅÕ½Ðì°ÅÕ½Ðí%¹Ù±¥%@ÉÍÌÅÕ½Ðì¤(%¹%)¹Õ¹($)Õ¹1¥ÍѸ ¤($ÀÌØí±¥Íѹ¥¹Í½ÐôQ A1¥ÍѸ ÀÌØíµå¥À°ÀÌØíµåÁ½ÉаÄÀÀ¤ì¥¹Í½Ð($ÀÌØí ½¹¹Ñ±¥Íѹ¥¹M½ÐôQ AÁÐ ÀÌØí±¥Íѹ¥¹Í½Ð¤íÁɵ¥Ð¥¹½µ¥¹($ÀÌØíÉ´ô}Q AI¥ÙQáÐ ÀÌØí ½¹¹Ñ±¥Íѹ¥¹M½Ð¤)¹Õ¹((Ì)¥Í½¹¹Ñ° ½¹¹Ñ¥¹¸¸¸¸¸¸ ½¹Ñ¸¸¸ ½Õ¹Ñ¥¹(ÅÕ½ÐíMÐÅÕ½Ðì½¹±äÑ¥Ù¥¸¸½¹¥Ñ¥½¹ÌɵÐ)Éå½ÔÍÕÉå½ÔݹÐѼ͡Õнݸ¹½Üüüü´±¥¹ÐÍ¡½Õ±Ýɹչ¥¹ÑÉÕͥٱ䡽ÈѼ¹°¤¹½ä¥¸µ¥¹ÕÑ¥¹¼¥¹ÁÕÐÉ¥Ù( Thanks in advance PS: what's the BB code for setting the hight of these codeboxes ? Link to comment Share on other sites More sharing options...
birdofprey Posted April 30, 2007 Author Share Posted April 30, 2007 Is that really that hard ? Where could I find more detailed information regarding this ? Link to comment Share on other sites More sharing options...
McGod Posted April 30, 2007 Share Posted April 30, 2007 Replace Sleep("500") with Sleep(500) Also, I noticed that you try to accept the client right away. Meaning it will almost always $ConnectedlisteningSocket will be -1. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
birdofprey Posted May 1, 2007 Author Share Posted May 1, 2007 Replace Sleep("500") with Sleep(500)Also, I noticed that you try to accept the client right away. Meaning it will almost always $ConnectedlisteningSocket will be -1.Whoops. Sleep ("500") ?! I guess that's what happens when you get lost between flawed examples and incomplete examples about TCP. This thread Tcp explained finally put an end to this.Thanks Chip ! Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 1, 2007 Share Posted May 1, 2007 Hi,you can try this : http://www.autoitscript.com/forum/index.ph...l=internet-cafeSo long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
LiquidPerceptions Posted May 2, 2007 Share Posted May 2, 2007 (edited) I have a client & server program to do exatcly this, if you want I can send you the codes in .txt, or give you a link for them. Just let me know. Edited May 2, 2007 by LiquidPerceptions "I'm not here to make decisions, I'm here to make a difference" Link to comment Share on other sites More sharing options...
jefhal Posted May 2, 2007 Share Posted May 2, 2007 in oder to remote shutdown a computerWhy not just use shutdown? shutdown targetcomputer parameters, etc... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
birdofprey Posted May 2, 2007 Author Share Posted May 2, 2007 (edited) Hi,you can try this : http://www.autoitscript.com/forum/index.ph...l=internet-cafeSo long,MegaI kinda get lost there, but thank you. I haven't had the time yet, I'll have a closer look at it.I have a client & server program to do exatcly this, if you want I can send you the codes in .txt, or give you a link for them. Just let me know. Hurray. You'd save me hours of coding, probably, eventhough I'd most likely adapt things a bit. Use the method that's easier for you. Thank you very much in advance.Why not just use shutdown? shutdown targetcomputer parameters, etc...I don't know. Is that some windows command ? Never heard of it. If it is, that remote computer should "open up" to receive such commands, and I'm not sure I want to do that. Also... I want to be able to cancel the command and I want to be able to set the remote pc into hibernation sometimes.Anyhow, with all these examples, I should be able by now to put things together, if I only had the time... the only issue left is: I really don't want to dig a hole into that systems security with my program, as this won't be used for a private network, but over the internet. As you see in the code probably, I tried to take some very rudimentary and most likely inefficient and useless preventive mesures to prevent bad things from happening. Is there a general thread about networking security somewhere by any chance ?Edit: typo Edited May 2, 2007 by birdofprey Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now