hi all,
i wanted to give you a code for vb 2010 to show it the server is online or offline
first for the imports
Code:
Imports System.Net.Sockets
then under the Public Class Form1 insert this code
Code:
Dim game As New TcpClient()
Dim auth As New TcpClient()
the game dim is for the game server state and auth is for auth server state
then for the code of the status you can but it any were you want in the form load if you want it to see if the the server is off or on when the launcher is started or in a button so the player can manual see it
you will need also two labels to in your form
Try
game.Connect("gameserver ip", game server port example {4515} )
Catch ex As Exception
label1.Text = "Offline"
label1.ForeColor = Color.Red
End Try
Try
auth.Connect("authserver ip",port example {1433} )
Catch ex As Exception
label2.Text = "Offline"
label2.ForeColor = Color.Red
End Try
If game.Connected Then
label1.Text = "Online"
label1.ForeColor = Color.Green
End If
If auht.Connected Then
label2.Text = "Online"
label2.ForeColor = Color.Green
End If
and this is the link for the FULL launcher just edit the IP and PORT
download form : Screenshoots
if it's not online