Jump to content

Recommended Posts

Posted
1 hour ago, crow0827 said:

Is there any plan to implement local network remote control function?
It's too annoying to have to go all the way to the official DCS website to control dedicated server from the remote.

You can actually grab the WebGui folder, copy to another computer in your local network. Edit the app.js in js folder and replace all the 127.0.0.1 url matching server url, and of course on server machine you need to allow traffic from the control port within the firewall.

But personally, since it will be plain http traffic ( even if it's in your LAN only in theory ), i will not recommend this setup.

 

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

  • 1 month later...
Posted
On 9/27/2022 at 2:09 AM, Maverick87Shaka said:

You can actually grab the WebGui folder, copy to another computer in your local network. Edit the app.js in js folder and replace all the 127.0.0.1 url matching server url, and of course on server machine you need to allow traffic from the control port within the firewall.

I tried it with disabled firewall.
Server did not respond.

Could you try it?

Posted
16 minutes ago, crow0827 said:

I tried it with disabled firewall.
Server did not respond.

Could you try it?

 

 

image.png

Not sure when was introduced but it looks like is not going to respond anymore from anything that is not localhost.

in this scenario the only option that comes to my mind is a reverse proxy to masquerade request as localhost to the gameserver.
Not a straightforward solution I know, but it should works, let me know if you want try in this way, I can try to prepare something 😉

 


 

 

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Posted

Thanks for the quick reply.

If it goes through easily with a reverse proxy, I'd be willing to give it a try.
It is too much of a burden on the server host if other members cannot access the server management screen when they want to run a server in the community.
I don't want to allow the RDP of the server machine to all community members.

Posted (edited)
1 hour ago, crow0827 said:

I don't want to allow the RDP of the server machine to all community members.

This is a good approach, and it's also a really common best practice to do, not only for DCS server 😉
 

1 hour ago, crow0827 said:

If it goes through easily with a reverse proxy, I'd be willing to give it a try.

I make a quick and dirty test right now with ngnix used as reverse proxy, and it works, here the steps:

  • Open on DCS game server firewall a TCP port to be used by reverse proxy ( in my test 9087, listen directive ).
  • Configure ngnix to reverse proxy incoming request to the webgui_port specified in the autoexec.cfg file of the server ( in my test 9087 => 8087 )
    Here the basic ngnix.conf file:
     
    #user  nobody;
    worker_processes  2;
    
    error_log  logs/error.log debug;
    pid        logs/nginx.pid;
    
    events {
        worker_connections  1024;
    }
    
    http {
      include    mime.types;
      index    index.html index.htm index.php;
    
      default_type application/octet-stream;
      log_format   main '$remote_addr - $remote_user [$time_local]  $status '
        '"$request" $body_bytes_sent "$http_referer" '
        '"$http_user_agent" "$http_x_forwarded_for"';
      access_log   logs/access.log  main;
      sendfile     on;
      tcp_nopush   on;
      server_names_hash_bucket_size 128; # this seems to be required for some vhosts
    
      server { # simple reverse-proxy
        listen       9087;
        access_log   logs/reverse-proxy.access.log  main;
    
        # pass requests for dynamic content
        location / {
    		proxy_buffering off;
    		proxy_pass      http://127.0.0.1:8087;
        }
      }
    
    }
  • Copy the WebGUI folder and edit app.js to point at reverse proxy address and port

 

 

Since the ngnix server is also a web server, instead of copy webgui folder and use it locally, you can also try to directly host the webgui folder with ngnix, so basically from a user prospective, they just need to connect to a given URL without worrying about grab the webgui folder and other stuff, they can also ignore all the port configuration, because basically you can change one time, and it will be immediately apply for all the DCS server admin/moderator.

Let me say, since ngnix is already running, this last option can be a definitely good idea, protecting the url with password, ip whitelist etc.

 


 

Edited by Maverick87Shaka

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Posted

Maverick

I tested the procedure.  It works well.
Thanks.

With hosting web server, I could not understand detail of the operation.
Is it completely different from the reverse proxy method?
I just hosted the webgui folder and the javascript seems to be working, but it looks the same as when I don't use reverse proxy.

Posted (edited)
10 hours ago, crow0827 said:

Maverick

I tested the procedure.  It works well.
Thanks.

With hosting web server, I could not understand detail of the operation.
Is it completely different from the reverse proxy method?
I just hosted the webgui folder and the javascript seems to be working, but it looks the same as when I don't use reverse proxy.

You actuality need both, if you only use the webgui folder hosting you'll get the same error of trying to use webgui folder locally from any other computer.
Reverse-proxy is required to make DCS believe the request comes from the same machine (127.0.0.1), otherwise it will not reply to the request.

The method to host the webgui folder just give you more options to control who can actually use that url that you'll provide, you can track the log etc, gives you more options that simply provide a .zip file to your moderators/admins.

Even just for any future change, without send over modified javascript again, you just take care of update webgui folder hosted by yourself, and you're ready to go!

 

Edited by Maverick87Shaka

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Posted
47 minutes ago, crow0827 said:

I kind of know what to do.
But I didn't know how to write the correct configuration file.

I need to study up a little.

Let me know if you need help, I can try to prepare a package with everything you need ( host + reverse proxy ) packed to run from ngnix.
Put the zip on DCS server, run ngnix and you have everything 😉

Fly Safe
 

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Posted (edited)

Thank you for your support.
I configured as below.

DCS server/nginx server: 192.xxx.xxx.100 (example)

DCS  port 8089: webgui port

nginx port 80: hosting C:¥nginx/html/index.html (copied webgui into C:¥nginx/html)
webgui app.js: ip: 192.xxx.xxx.100 and port: 8088 are configured in js/app.js

nginx port 8088: proxy pass to 127.0.0.1:8089 

I checked that the nginx server is working properly and is able to display the webgui page.
But, some of 404 errors are displayed on F12 Developper tool.

errors are below.

  • &ACTION=GetJSONData: This item is not displayed when accessed from shared webgui folder.
  • encryptedRequest: Requested URL is different from when accessed from shared webgui folder.
    • from hosted page: Requested URL = http://192.xxx.xxx.100/:8088/encryptedRequest
    • from shared webgui folder: Requested URL = http://192.xxx.xxx.100:8088/encryptedRequest

I'm in the dark as to whether this difference in behavior is affecting or whether the configuration file is incorrect.

nginx configuration file: deleted

 

I found my mistake.
I had rewritten 127.0.0.1 to the server address, but not localhost.

It is cause of error.
After rewrite app.js, web hosted webgui is working well.

I know I'm repeating myself, but thanks for your support!!!

 

Note: procedure

  1. Rewrite "127.0.0.1" and "localhost" to DCS server address in the "app.js".
  2. Rewrite "8088" to reverse proxy port in the "app.js".
  3. Launch nginx with webgui and reverse proxy(transport to DCS webgui port).
Edited by crow0827
  • 6 months later...
Posted
5 hours ago, craft said:

Run index.html of webGUI directly is ok, but use http://127.0.0.1:8087 in browser of DCS server is not working; but http://localhost is working, So even i use ipadress to reverse proxy, it is not working and localhost can not use for reverse proxy. How can resolve this problem?  

 

What are you talking about? DCS Server doesn't have any embedded webserver

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Posted

if DCS server doesn't have embedded webserver, I don't know why i can enter WEBGUI through http://localhost;

I setup a nginx in DCS server according to the procedure mentioned above post, but it is not working, the error 404 reported; Is it because the app. js modification was incorrect ?Can you please provide a detailed description of the modifications to the app. js file?

image.png

Posted (edited)

If I want to connect to mine locally (as in on same PC) I use

file:///PATH TO DCS SERVER FOLDER/WebGUI/index.html

 

Edited by HC_Official

No more pre-orders

Click here for tutorials for using Virpil Hardware and Software

 

Click here for Virpil Flight equipment dimensions and pictures.

.

  • 1 month later...
Posted
On 11/2/2022 at 12:59 AM, Maverick87Shaka said:

Let me know if you need help, I can try to prepare a package with everything you need ( host + reverse proxy ) packed to run from ngnix.
Put the zip on DCS server, run ngnix and you have everything 😉

Fly Safe
 

Could you prepare a package with host + reverse proxy?

My DCS server is after route through port map, I host the webgui + reverse proxy on the dcs server, Now within intranet webgui is work well, and cannot visit through internet. But it works through run WEBGUI file directly through change  IP address  and port of app.js to the domain name and reverse proxy port.

  • 1 year later...
Posted
On 6/20/2021 at 5:50 PM, orcrist said:

I fixed this issue myself. It won't work unless the Saved Games folder is on the C drive. 

 

@BIGNEWY @Flappie Could this be reported and fixed? If the DCS client can work with "saved games" outside C drive, other DCS stuff should do it too, isn't it?

I5 12600KF - 32 GB DDR4 - Nvidia RTX 4060 - SSD + NVME

Nadie es un completo inutil, por lo menos sirve de mal ejemplo.

 

  • ED Team
Posted
3 minutes ago, vgilsoler said:

@BIGNEWY @Flappie Could this be reported and fixed? If the DCS client can work with "saved games" outside C drive, other DCS stuff should do it too, isn't it?


Hi

If you use the correct method for moving the saved games folder in windows it should work. 

Dont use symbolic links for saved games and dont manually create it, it has to be moved by windows if you are moving it from the default C drive location. 

But frankly moving the default location isnt a good idea in my opinion. 

 

thank you 

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal

Posted
1 minute ago, BIGNEWY said:


Hi

If you use the correct method for moving the saved games folder in windows it should work. 

Dont use symbolic links for saved games and dont manually create it, it has to be moved by windows if you are moving it from the default C drive location. 

But frankly moving the default location isnt a good idea in my opinion. 

 

thank you 

I moved it using windows method but DCS server is not reaching it, however DCS client works perfect.

Maybe having an intensive resource app using same drive as system is what is not a good idea, in my opinion.  😉

  • Like 1

I5 12600KF - 32 GB DDR4 - Nvidia RTX 4060 - SSD + NVME

Nadie es un completo inutil, por lo menos sirve de mal ejemplo.

 

Posted
4 hours ago, vgilsoler said:

Maybe having an intensive resource app using same drive as system is what is not a good idea, in my opinion.  😉

While server hits lot of RAM and other resources, honestly after start doesn't make so much hit on disk, expect if you're logging compulsively extra data,events,scoring with custom script, otherwise it will be used just to write DCS.log files.

Honestly windows itself (svchost.exe,MsMpEng.exe etc...) will hit I/O disk more intensively in a magnitude order than "standard" DCS.log can do, even on highly populated server with complex mission.

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

  • 2 months later...
Posted
On 6/12/2023 at 8:57 AM, craft said:

Could you prepare a package with host + reverse proxy?

My DCS server is after route through port map, I host the webgui + reverse proxy on the dcs server, Now within intranet webgui is work well, and cannot visit through internet. But it works through run WEBGUI file directly through change  IP address  and port of app.js to the domain name and reverse proxy port.

Did you manage to make it work througt domain ? Same problem as you a year later. Working with local ip but not with domain I get 404 in F12.

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...