<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nhat Truong Hoang (Justin)</title>
    <description>The latest articles on DEV Community by Nhat Truong Hoang (Justin) (@tin0312).</description>
    <link>https://dev.to/tin0312</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1072467%2F91601936-5169-4601-91c0-ce107f8e655d.jpeg</url>
      <title>DEV Community: Nhat Truong Hoang (Justin)</title>
      <link>https://dev.to/tin0312</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tin0312"/>
    <language>en</language>
    <item>
      <title>Developing a PHP Project Across Windows and Mac on Your Home Network</title>
      <dc:creator>Nhat Truong Hoang (Justin)</dc:creator>
      <pubDate>Sat, 06 Dec 2025 22:24:21 +0000</pubDate>
      <link>https://dev.to/tin0312/developing-a-php-project-across-windows-and-mac-on-your-home-network-26nd</link>
      <guid>https://dev.to/tin0312/developing-a-php-project-across-windows-and-mac-on-your-home-network-26nd</guid>
      <description>&lt;p&gt;&lt;strong&gt;Scenario:&lt;/strong&gt;&lt;br&gt;
You're developing a PHP application on a Windows desktop using XAMPP. You want to work on the same project from a MacOS machine on your home network without installing XAMPP or any dependencies on the Mac.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What We'll Accomplish:&lt;/strong&gt;&lt;br&gt;
This guide covers two main tasks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Giving your Mac access to the project folder on Windows&lt;/li&gt;
&lt;li&gt;Giving your Mac access to phpMyAdmin running on Windows&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Part 1: Enable File Sharing (Mac Access to Project Folder)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Locate Your Project Folder
&lt;/h3&gt;

&lt;p&gt;Ensure your project is in the XAMPP htdocs folder.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Example path: &lt;code&gt;C:\xampp\htdocs\project&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Share the Folder on Windows
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Right-click the project folder and select &lt;strong&gt;Properties&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Go to the &lt;strong&gt;Sharing&lt;/strong&gt; tab&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Advanced Sharing&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Check &lt;strong&gt;"Share this folder"&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Permissions&lt;/strong&gt; and grant &lt;strong&gt;Full Control&lt;/strong&gt; to ensure the Mac can read and write files&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 3: Connect from Mac
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;On your Mac, press &lt;strong&gt;Cmd + K&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Enter the Windows machine's IP address in this format: &lt;code&gt;smb://[IP_ADDRESS]&lt;/code&gt;

&lt;ul&gt;
&lt;li&gt;Find the Windows IP by opening Command Prompt and typing &lt;code&gt;ipconfig&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;When prompted, enter your Windows username and password

&lt;ul&gt;
&lt;li&gt;Find your username by typing &lt;code&gt;whoami&lt;/code&gt; in Command Prompt&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Important:&lt;/strong&gt; Your Windows account must have a password. If it doesn't, go to Windows Settings → Accounts and set one&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 4: Open the Project on Mac
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open VS Code (or your preferred text editor)&lt;/li&gt;
&lt;li&gt;The shared Windows folder will appear in Finder's sidebar under "Network" or "Locations"&lt;/li&gt;
&lt;li&gt;Open the project from this shared location&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Part 2: Enable Database Access (Mac Access to phpMyAdmin)
&lt;/h2&gt;

&lt;p&gt;Now that your Mac can edit files, you also need database access to make changes and view data. This requires configuring the Windows Firewall.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Start XAMPP Services
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open XAMPP &lt;strong&gt;as Administrator&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Start &lt;strong&gt;Apache&lt;/strong&gt; and &lt;strong&gt;MySQL&lt;/strong&gt; services&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 2: Configure Windows Defender Firewall
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Type &lt;strong&gt;"Windows Defender Firewall"&lt;/strong&gt; in the Windows search bar&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;"Allow an app or feature through Windows Defender Firewall"&lt;/strong&gt; in the left sidebar&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 3: Allow Apache Through Firewall
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;"Change settings"&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Find &lt;strong&gt;Apache HTTP Server&lt;/strong&gt; and &lt;strong&gt;Apache HTTPS Server&lt;/strong&gt; in the list&lt;/li&gt;
&lt;li&gt;Check both boxes, but &lt;strong&gt;only enable "Private"&lt;/strong&gt; (since you're on a home network)&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 4: Configure Inbound Rules
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Return to the Windows Defender Firewall main page&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;"Advanced settings"&lt;/strong&gt; in the left sidebar&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;"Inbound Rules"&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 5: Enable Required Ports
&lt;/h3&gt;

&lt;p&gt;Ensure ports &lt;strong&gt;80&lt;/strong&gt; (HTTP) and &lt;strong&gt;443&lt;/strong&gt; (HTTPS) are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enabled&lt;/li&gt;
&lt;li&gt;Set to allow connections from all remote hosts&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 6: Find Your Windows IP Address
&lt;/h3&gt;

&lt;p&gt;Open Command Prompt and type &lt;code&gt;ipconfig&lt;/code&gt;. Note down the IPv4 address.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Access phpMyAdmin from Mac
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open a browser on your Mac&lt;/li&gt;
&lt;li&gt;Enter: &lt;code&gt;http://[WINDOWS_IP_ADDRESS]/phpmyadmin&lt;/code&gt;

&lt;ul&gt;
&lt;li&gt;Example: &lt;code&gt;http://192.168.1.100/phpmyadmin&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Testing Your Setup
&lt;/h2&gt;

&lt;p&gt;To verify everything works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open a browser on your Mac&lt;/li&gt;
&lt;li&gt;Navigate to: &lt;code&gt;http://[WINDOWS_IP_ADDRESS]/project&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Your project should load and run from the Windows XAMPP server&lt;/li&gt;
&lt;li&gt;Any changes you make to files on the Mac will immediately reflect in the original Windows folder&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;You're all set!&lt;/strong&gt; You can now develop seamlessly across both machines without duplicating your development environment.&lt;/p&gt;

</description>
      <category>php</category>
      <category>xampp</category>
      <category>mysql</category>
      <category>network</category>
    </item>
    <item>
      <title>Remote File Inclusion</title>
      <dc:creator>Nhat Truong Hoang (Justin)</dc:creator>
      <pubDate>Tue, 12 Dec 2023 04:48:19 +0000</pubDate>
      <link>https://dev.to/tin0312/remote-file-inclusion-49bp</link>
      <guid>https://dev.to/tin0312/remote-file-inclusion-49bp</guid>
      <description></description>
    </item>
  </channel>
</rss>
