I have php files on my computer and I can access them well with IIS, which is an ether localhost or Using loop-back address. But now if I want to use the same file from PHP to another computer which is not on the LAN but what should I do in any other computer on the Internet? I was thinking about the IP address (static) as an option, but then I was not successful in finding a way to do this. Thanks in advance ....
I could not fully understand your question. Is your problem
1) Do not you have a static IP? Then:
There are services like "no-ip" where you can create redirects. On your site, you can create a free domain name (which is also a static IP), such as yourdomain.no-ip.com then you can run your own equipment on your server computer. This tool updates the IP at all times, so it will always be right.
2) You do not know how to access the server outside the LAN because the IP of your network is the same for all computers (if you are viewing from outside)? After that:
Check your router settings, generally: There you will be able to define rules how to redirect the request from outside. For Http, you should redirect the request to the server's IP from port 80 (Note: you can also use another port on the server computer)!
Comments
Post a Comment