Jump to content

Server status


Recommended Posts

Its a good question, that I too would like to know the answer to

METAR weather for DCS World missions

 

Guide to help out new DCS MOOSE Users -> HERE

Havoc Company Dedicated server info Connect IP: 94.23.215.203

SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245

Please contact me HERE if you have any server feedback or METAR issues/requests

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

PHP snipet for testing TCP socket connectivity (server)

 

Hi guys.

Assuming you have a web server with php capability (almost all), use the code below either embedded in a page or by itself in a file (eg test.php).

Adapt the ip, port and messages to your server and liking.

Any html tags will work in the messages.

Note that if the server is down you may have to wait for 2 seconds (last parameter on the fsockopen function, may want to experiment/trim it) before the rest of the page loads.

Good luck

 

<?php
// Enter your ip, port and messages below
// You can use any html format for the messages
//  for example :
// $messageOK = "<img src='serverok.gif' alt='Server OK'>";
//
$ip = "94.130.23.93";
$port = 10308;
$messageOK = "JUST DOGFIGHT Server is UP <br/>\n";
$messageNR = "JUST DOGFIGHT Server is DOWN <br/>\n";
//
// ----------------

$fpntr = fsockopen($ip, $port, $errnumber, $errstring, 2);
if (!$fpntr) {
   echo $messageNR;
} else {
   echo $messageOK;
   fclose($fpntr);
}
?>

  • Like 1

JUSTDOGFIGHT server - For Nickname reservation, stats, server map, instructions and other content visit our site justdogfight.com

 

🙂 Smile 🙂

Link to comment
Share on other sites

  • 1 year later...

Greetings - apologies for bringing this thread back from the dead, but we're trying to do something similar. This works, but we would like to know if it's possible for one to grab the server name and / or the currently connected pilots. I've seen this on a couple other servers, but don't know the variables or commands necessary to add to this script to accomplish that. Is that info available?

Link to comment
Share on other sites

Greetings - apologies for bringing this thread back from the dead, but we're trying to do something similar. This works, but we would like to know if it's possible for one to grab the server name and / or the currently connected pilots. I've seen this on a couple other servers, but don't know the variables or commands necessary to add to this script to accomplish that. Is that info available?

For use that script you need a webserver ( IIS, apache, NGINX ) and the PHP engine installed and working on it.

 

If you're total new to this, you can try to use XAMPP, you'll find a lot of tutorial on google/youtube on how to setup your first webserver with this tool.

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!

Link to comment
Share on other sites

We do have a webserver with PHP installed on it. I've been working with PHP for years - it's more of an issue of not knowing what to look for from the DCS server instance to display the server name and connected users through the script.

 

 

We're currently using Flighter's posted script from above and it works great - we just want to add to that.

Link to comment
Share on other sites

We do have a webserver with PHP installed on it. I've been working with PHP for years - it's more of an issue of not knowing what to look for from the DCS server instance to display the server name and connected users through the script.

 

 

We're currently using Flighter's posted script from above and it works great - we just want to add to that.

 

cool! if you already have coding skills this should be a breeze for ya. There is actually a couple of different ways to do this. You're going to need a way to gather all of your clients and then check to see which of those clients are active. You can then write those client names/id's to a file and then pull that data from your file via php to post on your web pages. This will allow you to count how many users are live on your server and who those users are. All though not required frameworks like MIST or MOOSE really make this process much easier. If you already know php, adding lua to your toolbelt should also be a breeze.

Coming Soon...
The Fraternity Returns : https://thefraternitysim.com/
Link to comment
Share on other sites

You're going to need a way to gather all of your clients and then check to see which of those clients are active. You can then write those client names/id's to a file and then pull that data from your file via php to post on your web pages.

 

 

Right, we have that set up in a database already, which I can either grab that way or create a txt file - either way should work.

 

 

 

This will allow you to count how many users are live on your server and who those users are.

 

 

This is the part where I need some guidance. How do I get this info from the DCS server instance? Admittedly, while I have used PHP for a long time, my usage of it to do things like this is limited - it's mostly been in database driven webpage development.

Link to comment
Share on other sites

Right, we have that set up in a database already, which I can either grab that way or create a txt file - either way should work.

 

 

 

 

 

 

This is the part where I need some guidance. How do I get this info from the DCS server instance? Admittedly, while I have used PHP for a long time, my usage of it to do things like this is limited - it's mostly been in database driven webpage development.

 

 

To get this info from your server you're going to need to dig into the lua code. this is where mist, moose or any other framework comes into play. you're going to have to do a bit of research. Here are a couple of links to help you get started

 

HOGGIT (THE OG): https://wiki.hoggitworld.com/view/DCS_mission_editor

MIST: https://forums.eagle.ru/showthread.php?t=98616

Moose: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/index.html

Coming Soon...
The Fraternity Returns : https://thefraternitysim.com/
Link to comment
Share on other sites

To get this info from your server you're going to need to dig into the lua code. this is where mist, moose or any other framework comes into play. you're going to have to do a bit of research. Here are a couple of links to help you get started

 

HOGGIT (THE OG): https://wiki.hoggitworld.com/view/DCS_mission_editor

MIST: https://forums.eagle.ru/showthread.php?t=98616

Moose: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/index.html

 

Hmmm, I'm familiar with MOOSE. I didn't think we'd need that to display the server(s) status in a vbulletin 5.5.1 widget. I thought just a PHP file would do it.

 

Anyhow, when we get this sorted out we will share how with the community because it seems people know how and keep it to themselves; not very community spirited. We are making progress :thumbup:


Edited by BoneDust
 

VCAW-99_sig_ED_BD-3.png

 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

Hmmm, I'm familiar with MOOSE. I didn't think we'd need that to display the server(s) status in a vbulletin 5.5.1 widget. I thought just a PHP file would do it.

 

Anyhow, when we get this sorted out we will share how with the community because it seems people know how and keep it to themselves; not very community spirited. We are making progress :thumbup:

 

your joking right? I have learned most of my DCS stuff from this great community. Sorry, I do not have code to simply cut-n-paste for you to use. Not every setup is the same. I'm using lua, php, and python to make it all work. this may not be needed for your situation. Anyhow was just trying to help you figure things out or point you in the right direction. Maybe someone does a simple cut-n-paste solution that may work for you. Keep at it - im sure you'll get it.

  • Like 1
Coming Soon...
The Fraternity Returns : https://thefraternitysim.com/
Link to comment
Share on other sites

your joking right? I have learned most of my DCS stuff from this great community. Sorry, I do not have code to simply cut-n-paste for you to use. Not every setup is the same. I'm using lua, php, and python to make it all work. this may not be needed for your situation. Anyhow was just trying to help you figure things out or point you in the right direction. Maybe someone does a simple cut-n-paste solution that may work for you. Keep at it - im sure you'll get it.

 

We appreciate your help and we were not looking for simple cut and past.

 

I can only speak from our experience since leaving BMS; sorry if that offends you but that doesn't mean your right; of course I'm not necessarily right either. We each base our opinions on our own experiences.

 

None-the-less, thanks for your help; it is appreciated. :thumbup:

 

VCAW-99_sig_ED_BD-3.png

 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

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

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