Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Show server status and IP address on the web

Here SysOps can list their MultiPlayer server info and users can send feedback to their SysOps. Or just talk about the MultiPlayer servers they play on. This is not about MultiPlayer in general - please use the MultiPlayer Forum for that!

Post Mon Apr 12, 2004 7:31 am

Show server status and IP address on the web

Does anyone know how I would show the server status and IP address when using a dynamic IP. I have a web site and want to post the info but I cant find anything in Joe Boomz server operator that would do this.
I think I need a combination of enumerate running processes on the server and javascript for the IP address and then a scheduled FTP transfer to the web site?????

Post Mon Apr 12, 2004 9:12 am

Look for "flinfo" from Stats Shack. It's a PHP script that does what you want. Sadly, it appears to be no longer availble from the web site, but maybe someone can send it to you...

Cryo.

Cryogenius - Author of FLstat v1.3 and the Global Player Rankings .

Post Mon Apr 12, 2004 9:33 am

I found it, it's here. Haven't tried it though...

EDIT: Just checked it out. It does NOT find the IP of the server. You have to edit another file inc-file.php manually so the IP is displayed by flinfo.php. The amount of players and player max is garnered from the server but that is not much more than what FLSO does. My IPs are dynamic as well and I have been looking high and low for something that would show my IPs automatically.
---------------
Earendil
SysAdmin of Boston Freelancer server
See server rules and server news for more info.

Edited by - Earendil on 4/12/2004 11:13:07 AM

Post Mon Apr 12, 2004 2:00 pm

I found this vb script that works for me. I will fiddle with it and get it to write a web page that can be uploaded by an FTP server on a schedule

this script works on windows machines and should be saved as a .vbs file
' GetIP.vbs
' 1-18-2004, Maurer
' Copyright Jim Maurer
'
'Note: If you schedule this program to run, please make sure it's has at least a 15 minute interval.
'
On error resume next
Dim ip_info, ip_host, ip_time, ip_mainsite, DataBlock, Message
Const URL = "http://ip.auditmypc.com/"
set xmldoc = CreateObject("Microsoft.XMLDOM"
xmldoc.async=false
xmldoc.load(URL)

For each DataBlock in xmldoc.documentElement.childNodes
Select Case DataBlock.NodeName
Case "ip"
ip_info = DataBlock.text
Status = "ok"
Case "host"
ip_host = DataBlock.text
Status = "ok"
Case "time"
ip_time = DataBlock.text
Status = "ok"
Case "mainsite"
ip_mainsite = DataBlock.text
Status = "ok"
End Select
Next

If Status = "ok" Then
Message = ip_info & vbCrLf & ip_host & vbCrLf & ip_time & vbCrLf & ip_mainsite
Else
Message = "I could not find valid data, are you connected to the internet? Support found at email(at)auditmypc.com"
End If

wscript.echo Message

Return to Freelancer Server Forum