Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to host a dedicated server?  (Read 1311 times)

0 Members and 1 Guest are viewing this topic.

sercrets

  • Missioneer
  • member
  • Offline Offline
  • Posts: 156
    • Discord:
How to host a dedicated server?
« on: November 16, 2022, 10:56:34 PM »

Title says it all. Thanks.
Logged
You get what you give.

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: How to host a dedicated server?
« Reply #1 on: November 17, 2022, 01:49:39 AM »

Before we start writing down everything again, maybe this is worth looking at: https://www.mission4today.com/index.php?name=ForumsPro&file=viewtopic&p=208379#208379

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

sercrets

  • Missioneer
  • member
  • Offline Offline
  • Posts: 156
    • Discord:
Re: How to host a dedicated server?
« Reply #2 on: November 17, 2022, 03:11:12 PM »

Before we start writing down everything again, maybe this is worth looking at: https://www.mission4today.com/index.php?name=ForumsPro&file=viewtopic&p=208379#208379

]cheers[
Mike




Thanks, I realize my question was very vague sorry about that. I was very frustrated and exhausted then.... Here is my issue, I do all the stuff required to get a proper server, following the instructions, and when I run it on my main pc, I can launch it, see what mission its playing etc. (never connected because I do not want to port forward my main pc). However when I move over to my server PC, using the exact same steps, files, everything, and I launch it, the command prompt opens up as it should, remains black, and then disappears and closes over the course of about a second. I have no idea what is causing this, however it is very annoying. Any help is appreciated, thanks.
Logged
You get what you give.

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: How to host a dedicated server?
« Reply #3 on: November 17, 2022, 11:46:46 PM »

If your "server" is really a windows server, and if it's a remotely hosted one, and if you tried to run an IL-2 client game on it to host a mission, then this won't work, because remotely hosted servers usually have no graphics card and no CPU-integrated 3D support whatsoever.
That's one possible cause for this.
If however you really tried to run the dedicated server "il2server.exe" and this one didn't do much or anything, then the most likely reason is DEP ("Data Execution Prevention").
This video tells a bit about what DEP is and how to disable it for certain programs, skip to the 6:25 timemark for disabling DEP on a process:



Because different Windows Server Operating Systems have different ways to access the advanced system properties (the video shows Windows 7 which is not of much help here), let me tell you that typing "SystemPropertiesAdvanced" into the start menu (or the "run" dialog thereof, if you windows OS is ancient) or "sysdm.cpl ,3" and hitting return will do the trick.

il2server.exe unfortunately needs DEP to be disabled, otherwise it simply stops running before it can output anything.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

sercrets

  • Missioneer
  • member
  • Offline Offline
  • Posts: 156
    • Discord:
Re: How to host a dedicated server?
« Reply #4 on: November 25, 2022, 08:50:52 AM »

Great! Thanks! I will try it out later! I know I have at least integrate graphics, because I am running windows 10 via a VM and its a full install, the only different is its the server version, so its a bit more lightweight... I shall let you know! Thanks for the help Mike!
Logged
You get what you give.

sercrets

  • Missioneer
  • member
  • Offline Offline
  • Posts: 156
    • Discord:
Re: How to host a dedicated server?
« Reply #5 on: November 25, 2022, 09:35:46 AM »

If your "server" is really a windows server, and if it's a remotely hosted one, and if you tried to run an IL-2 client game on it to host a mission, then this won't work, because remotely hosted servers usually have no graphics card and no CPU-integrated 3D support whatsoever.
That's one possible cause for this.
If however you really tried to run the dedicated server "il2server.exe" and this one didn't do much or anything, then the most likely reason is DEP ("Data Execution Prevention").
This video tells a bit about what DEP is and how to disable it for certain programs, skip to the 6:25 timemark for disabling DEP on a process:



Because different Windows Server Operating Systems have different ways to access the advanced system properties (the video shows Windows 7 which is not of much help here), let me tell you that typing "SystemPropertiesAdvanced" into the start menu (or the "run" dialog thereof, if you windows OS is ancient) or "sysdm.cpl ,3" and hitting return will do the trick.

il2server.exe unfortunately needs DEP to be disabled, otherwise it simply stops running before it can output anything.

]cheers[
Mike

It unfortunately did not work... I disabled DEP for all of the .exe files, so il2console, il2server, il2server_new, il2wconsole... It still will open and then shut, just like before... Any other ideas?
Logged
You get what you give.

sercrets

  • Missioneer
  • member
  • Offline Offline
  • Posts: 156
    • Discord:
Re: How to host a dedicated server?
« Reply #6 on: November 26, 2022, 07:56:51 AM »

I got it figured out! It was DEP and windows compatibility mode!
Logged
You get what you give.

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: How to host a dedicated server?
« Reply #7 on: November 26, 2022, 08:25:28 AM »

Nice. Great to see you could work it out eventually.
Would you mind to tell us which compatibility setting you've used?
I'm a bit surprised as I've been running il2server.exe on Windows 10 & 11 without any issues (apart from DEP) so far, without ever touching the compatibility settings.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

sercrets

  • Missioneer
  • member
  • Offline Offline
  • Posts: 156
    • Discord:
Re: How to host a dedicated server?
« Reply #8 on: November 27, 2022, 08:51:17 AM »

Yea I dunno why I had issues, it ran on my main pc without DEP and compatibility changed... I had to switch it to windows xp service pack 2. I was talking to a friend the other day who had il-2 randomly not work on his computer, and he did the same thing and it started to work...

Cheers, sercrets.
Logged
You get what you give.
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 26 queries.