I am trying to run a headless EC2 Windows Server but cannot seem to get it to work. Any help would be appreciated.
If it’s a Unity build, run with the command line options -batchmode -nographics
If you check the “headless” build option it will add those options for you so that you don’t even need to do that.
I’ve been missing this, where is this option?
Ah, found it. That option only appears when building for Linux. The OP is building in Windows.
Yes the issue is with building in Windows. So I have a build ready on my Windows EC2 and when i do
-batchmode and -nographics is does not run. I did this on my local machine and it works great. Just to make sure I disabled all fire walls and other crap and it still does’t work
I presume the exe runs ok - and there are no errors in the log file? Have you changed network addresses from your local test to the hosted one?
Yes the exe runs fine on the local machine, and also yes the network address is updated.
Does the exe run on your hosted machine (not local), and with no errors in the log file?
No and thats the issue, it just wont run at all. I am trying a linux build but am having issue there to. I’m not too familiar with it.
Is there anything in the log file to say why it failed to run, or is the failure happening before that? Try a small hello world project to see if that runs on the windows server. What’s the actual OS? is it 64bit?
No log file generated, its happening before. That’s the thing, this is like a hello work project. There is just a cube object and some very basic networking to test out ec2. I currently run other command prompt servers for games off ec2, but I have no option to make one for unity.
My bad I totally missed this. I sadly don’t have experience running windows unity from the command prompt