Killswitch wrote: I've tried using opennetworkconnection(ect,ect) but it takes forever to come back with a null result, and with 250 possibilties to run through it just takes too much time:
The quickest way is to launch each OpenNetworkConnection() in it`s own thread, that way you don`t have to wait for the previous attempt to timeout before trying another IP address.
Even then it`s still not foolproof.
OpenNetworkConnection() needs an IP address and a port number to connect to, so even if the computer with the given IP address is online, unless it has that port open and waiting for a connection, then the command will still fail.
A better way is to 'Ping' the other computer, but even then it might have a firewall set up to reject ICMP packets.
Can you run a program that's hosted on your webspace with runprogram() and create a server there using createnetworkserver()? It would slove this entire problem if you can.
That`s entirely down to your hosting company. Most likely they`ll say no, as they don`t like unknown code running on their machines.
(If it`s a colocated box, then it`s yours to run whatever you want.)
Anyway, even if they allowed it, you couldn`t start it with RunProgram() unless you somehow managed to get the server mounted as a network share.