Replies: 2 comments 1 reply
-
This issue occurs not only with unpacked versions but also with applications installed via the installer. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm converting this to an issue, which is more appropriate in this instance |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Unable to run multiple NativePHP apps simultaneously on Windows
Environment
Project Setup
To reproduce this issue, I created a minimal project with almost default configuration:
Create Laravel project
Install NativePHP package
cd native_php composer require nativephp/electron
Initialize NativePHP
Note: The project was kept as close to the default state as possible with minimal customization.
Issue Description
When attempting to run multiple NativePHP applications simultaneously on Windows, the second application fails to start with the following error:
Error Details
Console output shows these errors:
Error: Error: net::ERR_NAME_NOT_RESOLVED
UnhandledPromiseRejectionWarning: Error: net::ERR_NAME_NOT_RESOLVED
Steps to Reproduce
Build two separate NativePHP applications with different app IDs
App 1 environment variables (.env):
App 2 environment variables (.env):
After building both apps, launch the first application → Starts successfully
Launch the second application → Fails with the above error
Expected Behavior
Both applications should run simultaneously without any conflicts.
Actual Behavior
The second application fails to start.
Questions
Additional Context
Running multiple NativePHP applications simultaneously is a common requirement in both development and production environments. Finding a solution to this issue would be greatly beneficial for many use cases.
If anyone has encountered this issue or knows a workaround, your help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions