Hello,
I'm here to report a bug with $portfree and /socklisten - both of which continually return NO ports free, depending on the location of the folder in which mIRC is located.
I'm running mIRC 6.35, on Windows Vista (32 bit, ultimate, no service pack).
Two vanilla copies of mIRC, with no remote files loaded, and not connected to a server, are located in two different folders.
Both are being executed with the -portable switch.
Copy one is in C:\Users\av0ider\Desktop\mIRC
Copy two is in C:\Users\av0ider\Desktop\Stuff\mIRC
I'm typing the following lines in to the status window:
//echo -a $portfree(5555)
//socklisten test_socket
I open copy ONE.
On copy ONE, I receive results of:
$true
And no result on the second command - it finishes successfully.
I close copy one, and open copy TWO.
On copy TWO, I receive results of:
$false
* /socklisten: port error
These results are consistant after rebooting, opening copy TWO first, which still fails. Opening copy ONE and trying again results in success.
These results are not just for port 5555.
The following script has been loaded and tested on both copies:
alias port_test {
var %x 5000
while (%x <= 9000) {
echo -a %x - $portfree(%x)
inc %x
}
}
Results were predictable: Nothing but $false on copy TWO, mostly $true but occasional $false on copy ONE.
This makes absolutely no sense to me whatsoever - there is no way a program is blocking all those ports, and this is reflected by copy ONE succeeding in listening on a socket.
It's not a big deal - I can solve the problem by just moving my folders around, and I'm happy with that - I just thought that you might like it called to your attention.
Hope this can be resolved.