getnamo / NodeJs-Unreal

Embed node.js as an Unreal Engine plugin.
MIT License
239 stars 34 forks source link

Windows Firewall Pop-Up to allow Node.js to connect to network #34

Open neurogamedev opened 2 years ago

neurogamedev commented 2 years ago

Hello everyone!

So, I made an experiment in UE5 which needs to connect to the network to log the user in with their e-mail and password to the Neurosity.co service. Basically, I did this but in UE5.

ezgif-4-2efe877040fd

Everything works fine in the editor, but I have a hiccup with the package for Windows. When I send the game to other people, they get stuck in the login phase.

When I tried in another computer, I found something interesting happens when I open my UE5 project in a different computer, I get a pop-up like this one:

image

After I accept that prompt in UE5, the packaged Windows game logs in without a hitch. Any ideas how I can make this pop up window appear in the packaged game? Is there a line of code which would prompt the Windows Defender Firewall to pop up like this?

Any ideas?

Thanks for your help guys!

hikingyoung commented 2 years ago
  1. My project either, needs that query window. Usually the first time you open your project, the PC will pop up that window to ask your selection, so if my .exe doesn't pop up that, I just tried to reopen .exe once again, maybe triple times or more,it worked.
  2. You can literally add that manually by opening "Windows Defender"-->click "Allow application pass through firework"(something like this cuz my language is Chinese, I don't know exactly what the english version looks like)-->then click "Modify setting"-->"allow other apps"-->browser your disk to select the path--> click "add". The effect of doing all of these above is equal to pop up that window.