themax90 Posted June 24, 2006 Author Share Posted June 24, 2006 I kind of wish this would have become a sticky, it is very useful to a tcp developer and I spent many hours writing all the code. Link to comment Share on other sites More sharing options...
Jordban Posted July 23, 2006 Share Posted July 23, 2006 This looks great! Thanks a lot! Link to comment Share on other sites More sharing options...
themax90 Posted July 27, 2006 Author Share Posted July 27, 2006 Added: AdminDB and TCP Server Update 1 Added: AutoIt-ITS Link Bump. Link to comment Share on other sites More sharing options...
Snarg Posted August 14, 2006 Share Posted August 14, 2006 I am curious to learn how far along you are in developing an AutoIt based packet sniffer. Thank you for your hard work. A little reading goes a long way. Post count means nothing. Link to comment Share on other sites More sharing options...
themax90 Posted August 16, 2006 Author Share Posted August 16, 2006 I am curious to learn how far along you are in developing an AutoIt based packet sniffer. Thank you for your hard work.Only basic research on Etheral. Not much has been done in the line of research because AutoIt will take time to support the capability. Most likely I will end up using a winsock library and C++ for it. But because there is not avialible functionality or threading capabilities, a packet sniffer may take a while.I will research more since someone seems interesting in the topic.AutoIt SmithP.S. I really miss the good old blizzhackers.... Link to comment Share on other sites More sharing options...
themax90 Posted August 24, 2006 Author Share Posted August 24, 2006 Bump, added Database Editor.Preview to AutoIt-ITS v0.9.2 located here : http://www.autoit-its.com/autoit-its/forum...wtopic.php?t=69FileMan updated with 29+ scripts all authored by me. Link to comment Share on other sites More sharing options...
J_Y_C Posted November 27, 2006 Share Posted November 27, 2006 Just wanted to say thanks and good work, Smith. Not that I am interested in TCP, but I think your std IO scripts you have in your fileman will be exactly what I need to make a Java/AutoIt Bridge. I have been having problems reading and writing from the stdIO, but you made it work! Thanks a mil, you are The Dude! Link to comment Share on other sites More sharing options...
bonebreaker Posted January 31, 2007 Share Posted January 31, 2007 Hi, does anybody know a simple method with which i can ckeck if a socket does no longer exist ? My programs:[topic="40019"]Sudoku[/topic], [topic="41258"]Suitcase game & Random jokes[/topic], [topic="41641"]8 Queens[/topic], [topic="41679"]Puzzle Generator[/topic], [topic="42045"]Snake[/topic]My UDFs:[topic="41309"]Prime functions & Prime game[/topic]Other:Fake emailer Link to comment Share on other sites More sharing options...
bonebreaker Posted January 31, 2007 Share Posted January 31, 2007 TCPRecv() on it.Thx, it works now My programs:[topic="40019"]Sudoku[/topic], [topic="41258"]Suitcase game & Random jokes[/topic], [topic="41641"]8 Queens[/topic], [topic="41679"]Puzzle Generator[/topic], [topic="42045"]Snake[/topic]My UDFs:[topic="41309"]Prime functions & Prime game[/topic]Other:Fake emailer Link to comment Share on other sites More sharing options...
_Kurt Posted February 1, 2007 Share Posted February 1, 2007 (edited) Smith, I support your idea of this becoming a sticky because several people have trouble with TCP and others don't understand anything about it. These are excellent examples, and I've learnt alot when studying these scripts. TCP is my weakness and this is very handy for people like me. Keep up the good work Kurt Edited February 1, 2007 by _Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Geeky Posted February 10, 2007 Share Posted February 10, 2007 This thread helped me and my friend a lot! We're currently working on a mIRC-like script, that allows several people to connect to one server and talk Link to comment Share on other sites More sharing options...
Camden Posted July 12, 2007 Share Posted July 12, 2007 Hey, i've been working with auto-it for about a year now... and i kno this is probably a very stupid question... but how the hell do i host the server? it seems to not work when i try to run from my computer Link to comment Share on other sites More sharing options...
martin Posted August 26, 2007 Share Posted August 26, 2007 Hey, i've been working with auto-it for about a year now... and i kno this is probably a very stupid question... but how the hell do i host the server? it seems to not work when i try to run from my computerCamden, I am amazed that no-one has answered you in nearly about 6 weeks, and it was your first post as well.Can you tell us which scripts you were trying and what the error or problem was when you tried to run them?The question isn't at all stupid, but maybe you would have got a reply earlier if you had given more information. Welcome to the forums, belatedly if you've been observing for a year. Don't let the absence of any response until now discourage you. Questions often go unanswered and once they are a couple of days old the thread can slip out of sight. If this happens in the future you can simply 'bump' it up to the top again by adding another post, someone is sure to help eventually. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
sensalim Posted February 23, 2008 Share Posted February 23, 2008 Ok my router (I go to http://192.168.2.1), does not allow more than 10 rows of port forwarding... and it's all filled.What the heck do I do now... Link to comment Share on other sites More sharing options...
nfwu Posted February 24, 2008 Share Posted February 24, 2008 You should probably remove some rows, like those that are not necessary or not using TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
mladost1 Posted March 26, 2008 Share Posted March 26, 2008 (edited) Hi, guys! I was just trying to make a very simple script, but I am kind of new to TCP/UDP and I was wondering if I could get a little advice. You can just ignore the GUI cause I really need to connect the two PCs first The problem is that as soon as I start the programs on both PCs the listening port just yells it cannot connect. The IPs are there just so i don't have to type them every time I run the scripts. Please write some suggestions how to fix this . expandcollapse popup#include <GUIconstants.au3> opt ("TCPtimeout",15000) Guicreate ("Chat - Server",300,300) opt ("Guioneventmode",1) $x=10 $y=200 Dim $ar[10000] TCPStartup() $ip="85.130.20.205" $port=1337 $lp=TCPConnect($ip,$port) $send=GUICtrlCreateInput("",10,240) $b=GUICtrlCreateButton("Send",100,240) GUISetOnEvent($b,"sent") if $lp=-1 Then MsgBox (0,"Error","Can't connect!") TCPShutdown() exit EndIf GUISetState() GUISetOnEvent($GUI_EVENT_CLOSE,"close") dim $i=0 While 1 $data=TCPRecv($lp,512) If $data <> "" Then if $i>1 then for $m=0 to $i-1 step 1 $y=$y-20 GUICtrlSetPos($ar[$i],$x,$y) next endif $y=200 $ar[$i]=GUICtrlCreateLabel($data,$x,$y) $i=$i+1 EndIf WEND func close() TCPCloseSocket($lp) TCPShutdown() Exit EndFunc func sent() TCPSend ($lp,GUICtrlRead($send)) EndFunc //That's the code of the connecting one expandcollapse popup#include <GUIconstants.au3> opt ("TCPTimeout",15000) Guicreate ("Chat - Client",300,300) opt ("Guioneventmode",1) $x=10 $y=200 Dim $ar[10000] TCPStartup() Global $MainSocket $send=GUICtrlCreateInput("",10,240) $b=GUICtrlCreateButton("Send",100,240) GUISetOnEvent($b,"sent") Local $MaxLength = 512; $ip="85.130.35.139" $port=1337 GUISetOnEvent($GUI_EVENT_CLOSE,"close") $MainSocket = TCPListen($ip, $port) if $MainSocket=-1 then TCPShutdown() Exit Endif dim $i=0 GUISetState() While 1 $data=TCPRecv($MainSocket,512) If $data <> "" Then if $i>1 then for $m=0 to $i-1 step 1 $y=$y-20;85.130.20.205 GUICtrlSetPos($ar[$i],$x,$y) next endif $y=200 $ar[$i]=GUICtrlCreateLabel($data,$x,$y) $i=$i+1 EndIf WEND func close() TCPCloseSocket($MainSocket) TCPShutdown() Exit EndFunc func sent() TCPSend ($MainSocket,GUICtrlRead($send)) EndFunc //And that is the listening one. Edited March 26, 2008 by mladost1 Link to comment Share on other sites More sharing options...
Envoi Posted March 27, 2008 Share Posted March 27, 2008 Hi, guys! I was just trying to make a very simple script, but I am kind of new to TCP/UDP and I was wondering if I could get a little advice. You can just ignore the GUI cause I really need to connect the two PCs first The problem is that as soon as I start the programs on both PCs the listening port just yells it cannot connect. The IPs are there just so i don't have to type them every time I run the scripts. Please write some suggestions how to fix this . The first thing you need to do is make the $ip address on the client and the server match. You don't want the client connecting to itself, but rather, trying to connect to the server's ip address. Then add this code snippet from the OP's server example to your server's While loop: If $ConnectedSocket = -1 Then $ConnectedSocket = TCPAccept($MainSocket) If $ConnectedSocket <> -1 Then ; Someone Connected TCPSend($ConnectedSocket, "Connected!") EndIf EndIf You'll also want to declare this outside the loop: $ConnectedSocket = -1 Then change this line: $data=TCPRecv($MainSocket,512) to: $data=TCPRecv($ConnectedSocket,512) I'm pretty sure that's all I changed and was able to get your client to connect. You want to receive data from a client, and it's the $ConnectedSocket = TCPAccept($MainSocket) line that tells you what that client's SocketID is. Your $MainSocket is only returning the main socket identifier, surprisingly. Let me say that I'm very new to sockets and AutoIt, but hopefully this helps you along. And anyone, please correct any mistakes I've made in this post. I won't get mad --Kris Link to comment Share on other sites More sharing options...
mikidutza Posted April 3, 2008 Share Posted April 3, 2008 i have a problem to: if i use TCPListen(@IPAddress1,4999) on a computer that is on a network (@IPAddress1 = 192.168.1.64) it wont connect i even tryed TCPListen(_GetIP(),4999) with diffrent ports and it stil wont connect do you have any ideea how to maked work??? Link to comment Share on other sites More sharing options...
Delta01 Posted April 13, 2008 Share Posted April 13, 2008 What do we forward the port to? What app? Link to comment Share on other sites More sharing options...
p)(d Posted January 11, 2009 Share Posted January 11, 2009 how can i check if my computer is connected to a server on a tcp port? something like DOS command "netstat -na" and a filtered output with my destination server ip and tcp port. SYS 64738 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