Developer Snippet Diary

Access XAMPP server from a different machine using the Remote Desktop Protocol (RDP)

When you're trying to access your XAMPP server from a different machine using the Remote Desktop Protocol (RDP) IP address, there are several factors that can cause the connection to fail:

  1. Open run command and type wf.msc

    Open Windows Firewall with Advanced Security
  2. Allow incoming connections on the port your XAMPP server is running on, typically port 80 for HTTP and 443 for HTTPS. You can adjust these settings in your Windows firewall settings or any other firewall software that you might be using.
  3. Click on inbound Rules
  4. Add new Rules
  5. Select Port option and click next
  6. Add 80 in special local ports and click on next
  7. Select Allow the connection and click Next>Next
  8. Give any name and Click Finish
  9. You added inbound rule Successfully

Similarly add outbound Rule with port 80 and access Your RDP Ip from anywhere

__________________

If above method not working Also check
Port Forwarding: If your server is behind a router or other type of network device, you might need to set up port forwarding. Port forwarding is a way to tell your router that incoming connections on a certain port should be directed to your server. The specifics of how to set this up depend on your router, but generally you'll need to access your router's configuration interface and add a port forwarding rule for the port your XAMPP server is using.

__________________

If still not working check also 

XAMPP Configuration: By default, XAMPP is configured to only accept connections from the same machine it's running on for security reasons. You might need to adjust these settings to allow connections from other machines. You can do this in the httpd-xampp.conf file, typically located in C:\xampp\apache\conf\extra. Look for lines that say Require local and either comment them out by adding a # at the start of the line, or change them to Require all granted.

 After making these changes, be sure to restart your XAMPP server.

Posted by: R GONDAL
Email: rizikmw@gmail.com