Alexxander Posted August 28, 2013 Share Posted August 28, 2013 (edited) hi all i am making a script that u run a script on a PC and then send a shutdown command from another PC from another script through the internet i'am using TCP functions the problem is that i only know the IP address of the PC that will receive the command and when i want to use the TCP listen i and TCP accept i have to specify the ip to listen for (wich i don't have) can i make the receiver PC listen to all IPs at a specified port ? tnx in advanced... Edited August 28, 2013 by alexander95 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 28, 2013 Developers Share Posted August 28, 2013 You need to run that by me again but this time slowly as the above doesn't make much sense. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FireFox Posted August 28, 2013 Share Posted August 28, 2013 Hi,For the TCPListen function use the @IPAddress1 macro.Br, FireFox. Link to comment Share on other sites More sharing options...
Alexxander Posted August 28, 2013 Author Share Posted August 28, 2013 Jos i'm sorry i don't understand what u mean u didn't understand the idea i'm talking about ? u want me to retell it with another words ? Link to comment Share on other sites More sharing options...
Alexxander Posted August 28, 2013 Author Share Posted August 28, 2013 FireFox bro: @IPAddress1 macro it give the local IP i am sending the command through the internet wich i must use the Global IP Link to comment Share on other sites More sharing options...
hannes08 Posted August 28, 2013 Share Posted August 28, 2013 FireFox bro: @IPAddress1 macro it give the local IP i am sending the command through the internet wich i must use the Global IPYou cannot listen to the global IP as it belongs to your local router.You also need to create a port forwarding on that device in order to make this working.Or a third party server in the middle where both PCs can connect to to receive the commands. Alexxander 1 Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
FireFox Posted August 28, 2013 Share Posted August 28, 2013 (edited) broWho is bro? @IPAddress1 macro it give the local IP i am sending the command through the internet wich i must use the Global IPYou don't understand how it works, the server listens for incomming connections so it uses its local IP. You cannot listen to the global IP as it belongs to your local router.It depends on how your network is made, but yes it's not a global IP for the individuals.Br, FireFox. Edited August 28, 2013 by FireFox Link to comment Share on other sites More sharing options...
Developers Jos Posted August 28, 2013 Developers Share Posted August 28, 2013 Jos i'm sorry i don't understand what u mean u didn't understand the idea i'm talking about ? u want me to retell it with another words ? The problem is that you are not making clear what you want to do so I asked you to explain it better. Your title says you want to listen on any IP, but you clearly do not understand how this works when being on an LAN behind a LAT router connected to the internet. So define clearly what you you want to do and you might get some better explanations and help. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Alexxander Posted August 28, 2013 Author Share Posted August 28, 2013 Posted 4 minutes ago alexander95, on 28 Aug 2013 - 12:56 PM, said: bro Who is bro? (bro) is a shortcut for (brother) , anyway i meant by saying it (my friend) Link to comment Share on other sites More sharing options...
FireFox Posted August 28, 2013 Share Posted August 28, 2013 (edited) (bro) is a shortcut for (brother) , anyway i meant by saying it (my friend)Actually I know that, I made you believe I didn't know Edited August 28, 2013 by FireFox Link to comment Share on other sites More sharing options...
Alexxander Posted August 28, 2013 Author Share Posted August 28, 2013 Actually I know that, I made you believe I didn't know Link to comment Share on other sites More sharing options...
FireFox Posted August 28, 2013 Share Posted August 28, 2013 Your problem is solved?If not, try the TCP examples of the beta helpfile.Replace the server script IP by @IPAddress1 and the client script IP by the global IP of the server.Br, FireFox. Alexxander 1 Link to comment Share on other sites More sharing options...
EKY32 Posted August 28, 2013 Share Posted August 28, 2013 (edited) I think he needs to make all the clients connect to one server or a database with the IP Addresses of the servers. Edited August 28, 2013 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] 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