erifash Posted January 16, 2006 Share Posted January 16, 2006 (edited) I have a couple of quick questions: 1. Do AutoIt's TCP functions work over the internet? 2. If so, do I have to enable port fowarding? 3. Could AutoIt do this automatically? 4. Can anyone give me some example code that works over the internet? Thank you. Edited January 16, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
nobby Posted January 16, 2006 Share Posted January 16, 2006 Autoit TCP function work over TCP/IP protocol connections. So it works over the internet. Port forwarding will depend on both the client and server network setup, mainly firewall and router setups. CheersNobby Link to comment Share on other sites More sharing options...
erifash Posted January 16, 2006 Author Share Posted January 16, 2006 I have a wireless router. Would I use my computer's public IP? My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Oxin8 Posted January 16, 2006 Share Posted January 16, 2006 if your computer is set up to have a public ip, then yes. If not, you could do that or just do port forward. Check the router manual if you're really stumped... ~My Scripts~ *********_XInput UDF for Xbox 360 ControllerSprayPaint_MouseMovePlus Link to comment Share on other sites More sharing options...
greenmachine Posted January 16, 2006 Share Posted January 16, 2006 (edited) Man I need help with this too. TCP is being funky for me. I have 2 computers here at home on a network. One's wireless, the other (mine), is attached. What's weird is that I can't get TCP stuff to work from this comp (attached) to that one (wireless), but it works fine from that one to this one. Plus, once that one has a connection with this one, this one can respond fine, and that one picks up the responses. But no matter what, I can't go from this comp to that one. It doesn't make sense. And neither did this post.... [edit] Watch this.. cool visual analogy time. (The dots don't mean anything, the forum just wouldn't let me have lots of spaces. Maybe a codebox would have done it, but oh well.) Wireless comp = A Wired comp (mine) = B ...........................|....................... ...........................|....................... A ---------------------------------> B ...........................|....................... A <-------------------------------> B ...........................|....................... ...........................| <-------------- B ...........................|....................... ...........................|....................... So, A can contact B over any port, no problem. If A has contacted B, B can respond to A over the same port. However, B can't contact A on its own from any port, doing anything. Why? I have no idea. That's why I'm here; I could really use some help on this. [/edit] Edited January 16, 2006 by greenmachine Link to comment Share on other sites More sharing options...
blademonkey Posted January 16, 2006 Share Posted January 16, 2006 (edited) Man I need help with this too. TCP is being funky for me. I have 2 computers here at home on a network. One's wireless, the other (mine), is attached. What's weird is that I can't get TCP stuff to work from this comp (attached) to that one (wireless), but it works fine from that one to this one. Plus, once that one has a connection with this one, this one can respond fine, and that one picks up the responses. But no matter what, I can't go from this comp to that one. It doesn't make sense. And neither did this post.... [edit] Watch this.. cool visual analogy time. (The dots don't mean anything, the forum just wouldn't let me have lots of spaces. Maybe a codebox would have done it, but oh well.) Wireless comp = A Wired comp (mine) = B ...........................|....................... ...........................|....................... A ---------------------------------> B ...........................|....................... A <-------------------------------> B ...........................|....................... ...........................| <-------------- B ...........................|....................... ...........................|....................... So, A can contact B over any port, no problem. If A has contacted B, B can respond to A over the same port. However, B can't contact A on its own from any port, doing anything. Why? I have no idea. That's why I'm here; I could really use some help on this. [/edit]Does A have The Windows Firewall turned on? Also, what are their IPs, subnet, the whole shabang. more info = better answers. Edited January 16, 2006 by blademonkey ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
greenmachine Posted January 16, 2006 Share Posted January 16, 2006 It was the windows firewall. I had forgotten all about that until a while after the post - turns out all ports are blocked on A, which would make sense. Link to comment Share on other sites More sharing options...
blademonkey Posted January 17, 2006 Share Posted January 17, 2006 It was the windows firewall. I had forgotten all about that until a while after the post - turns out all ports are blocked on A, which would make sense.Glad I could be of service. ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
greenmachine Posted January 17, 2006 Share Posted January 17, 2006 Hate to burst your bubble, but I actually figured that out before you posted. It was 2:33 am when you posted, and I had solved it and gone to bed way before that. However, that was the network. That wasn't the initial topic of this thread. The initial topic was dealing with TCP over the internet. I tried that as well with a friend, and had no luck. We both did port forwarding to see if that would make a difference, and it didn't. Why would that still fail? If both parties have ports available to use, and access to them from either side, shouldn't that do it? Link to comment Share on other sites More sharing options...
Oxin8 Posted January 17, 2006 Share Posted January 17, 2006 Yea, if port forwarding is available and turned on with the ports are available it should work but I've been in situations where it doesn't. I ended up coming to the conclusion that some routers just suck. ~My Scripts~ *********_XInput UDF for Xbox 360 ControllerSprayPaint_MouseMovePlus Link to comment Share on other sites More sharing options...
greenmachine Posted January 17, 2006 Share Posted January 17, 2006 It works at school in my computer classroom, so that's cool. I just wish I could extend the reach outside of a network. Link to comment Share on other sites More sharing options...
ChrisL Posted January 17, 2006 Share Posted January 17, 2006 It works at school in my computer classroom, so that's cool. I just wish I could extend the reach outside of a network.I have just tried an application using tcp/ip created with AutoIT, over the internet. My PC is at home I am at work, providing you set up port forwarding on the router and have correct permission in the firewall then it works OK [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
erifash Posted January 17, 2006 Author Share Posted January 17, 2006 (edited) Ahhh! Finally! I tried port fowarding and a static ip but I guess it screwed something up and knocked out my internet connection for all of yesterday! I reset the changes so I guess it just needs a little bit of time to get everything worked out. Thanks for the info! Edited January 17, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
ChrisL Posted January 17, 2006 Share Posted January 17, 2006 Ahhh! Finally! I tried port fowarding and a static ip but I guess it screwed something up and knocked out my internet connection for all of yesterday! I reset the changes so I guess it just needs a little bit of time to get everything worked out. Thanks for the info! If you want a DNS resolution because of DHCP IP address go to no-ip.comyou can then use a myname.redirectme.net name [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Promethyl Posted January 17, 2006 Share Posted January 17, 2006 I also wondered... how do you initiate TCP connections. Specifically, I want to know if a computer is listening on port 10000. (TCP VPN Cisco). 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