You have read my mind.
That's right, I was thinking of using another HFS's instance, to simulate the server (
to have an alternative, just in case if someday Rejetto's servers are down). Editing the
Windows hosts is one option (and the other is
compiling my own executable, and for example, changing 'hfstest.rejetto.com' to a '
xxxxxx.no-ip.com' address).
in the root put as diff template
[]
1
Yes, that would work (the valid options are: '
1' is when is the server is reachable; '
2' is when no port specified and '
3' is when server does not answer).
And although that would work, you can also run PHP code directly from HFS by calling php.exe using 'exec' (taking as an example, the work done by '
raybob' on his '
FHFS',
here).
But I'm interested in having the original PHP code Rejetto have used, because it has a part that would be somewhat difficult for me to replicate (due to my limited knowledge). I mean the part where it detects if is
NATted (
NAT detection), here:
http:// hfstest.rejetto.com/ ?port={external_port}&host={external_ip|dns_name}&natted={no|yes}
That's why I hope Rejetto could share the PHP code he is using. He already had released the PHP code for 'ip.php' (for detecting the external IP),
here.
So, the only missing code, is the PHP script for 'hfstest.rejetto.com'.