I have the next set up:
A server (1) that is reachable from the internet and an internal server (2) that is not reachable externally, but can be reached through server 1.
Now. When I run next script on server 1, everything works. 'startsuccess!' is printed.
<?php echo "start"; $host = 'server2'; $port = '389; $ds = ldap_connect($host, $port); echo "success!"; ?>When I run this on my local pc, it doesn't work.
I forward port 389 to port 1337. This tunnel should work, because portforwarding of other ports (like 22) work.
This is the script I run locally:
<?php echo "start"; $host = 'localhost'; $port = '1337; $ds = ldap_connect($host, $port); echo "success!"; ?>Only 'start' is printed out.
Am I doing something wrong, or do I have to forward more ports?