[Release]Portable Server Status Checker

09/01/2009 17:21 Zion~#16
Quote:
Originally Posted by PeTe Ninja View Post
This will be good for checking if the ports are open but not if the server is online. Try remaking it but this time make it to connect to the server for a brief 10 seconds and if it is connected then it is online.
If you can code a Socket System, you'd understand how this works.

There is no need, it only verifies if the server is offline, this I'll be making a new version soon.
09/01/2009 17:29 Zion~#17
Quote:
Originally Posted by PeTe Ninja View Post
I can code a socket system, I have created multiple crashers and connectors, Someone might have a port open but not on.
Maybe the people who port forwarded.
Try using Smythe94 Port Scanner.
On localhost scan the co logging server port to check if its open.
If your server is on turn it off, the only way my ap would say your server is online is if you port forwarded, and I think I can fix that.
09/01/2009 17:32 PeTe Ninja#18
Nah, I tested it. This does work if you turn your server on because it basically opens the port when you turn it on, I do not have my ports forwarded and also you are connected..

If anyone wants these codes , here they are

Code:
internal class Program
{
    // Methods
    private static void Main(string[] args)
    {
        try
        {
            IniFile file = new IniFile(Application.StartupPath + @"\Config.ini");
            string ipString = file.GetString("Config", "IP", "");
            string s = file.GetString("Config", "Port", "");
            Console.Title = "Server Status Checker";
            new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp).Connect(new IPEndPoint(IPAddress.Parse(ipString), short.Parse(s)));
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Server Status : Online");
            Console.ReadLine();
        }
        catch (OverflowException)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Invalid Port!");
            Console.ReadLine();
        }
        catch (SocketException)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Server Status : Offline");
            Console.ReadLine();
        }
    }
}
09/01/2009 18:38 Zion~#19
Those codes won't even work Pete.
:/
Now stop releasing peoples codes like a twat.
09/01/2009 19:46 Basser#20
Pete, what ur doing is stealing our sources?
You used almost exactly the same codes as me and Michael did.
BTW, visit my thread this one and mine are getting combined, this thread will be edited and closed soon, waiting for Michael to get online >_>
09/01/2009 22:09 PeTe Ninja#21
...Im using a .NET Reflector. Your releasing something dont expect people not to reflect it and check out what your doing. I thought you weren't using connection but you are. and Zion it might not work because you have to reassemble it. If I were to code it you would see a bit difference, but you should know people can code the same.
09/01/2009 22:21 Zion~#22
You got the full version of it?
09/01/2009 22:25 PeTe Ninja#23
Of your thing? I just put the main part down.
09/02/2009 02:23 Zion~#24
Of the .NET Reflector.
09/02/2009 02:25 marcos140595#25
Nice Guide ^^
09/02/2009 11:29 Basser#26
Quote:
Originally Posted by Zion~ View Post
Of the .NET Reflector.
@Zion and Pete
Lol, well so do I, but It's disrespectful what you did PeTe, if there was a way to -k, I would do it. I mean, I respected you for your all-in-1 since its a lot of work to make, but releasing someones source using a reflector, which a lot of people have no idea about, is wrong, I'll encrypt my releases from now one, cuz I don't want people like you to release my source. Not cool dude, not cool.

~Bas
09/02/2009 19:11 © Haydz#27
Code an application in .NET without obfuscation, accept the consequences
09/02/2009 21:25 Zion~#28
I know what to do now.
09/03/2009 06:16 PeTe Ninja#29
Quote:
Originally Posted by Smythe94 View Post
@Zion and Pete
Lol, well so do I, but It's disrespectful what you did PeTe, if there was a way to -k, I would do it. I mean, I respected you for your all-in-1 since its a lot of work to make, but releasing someones source using a reflector, which a lot of people have no idea about, is wrong, I'll encrypt my releases from now one, cuz I don't want people like you to release my source. Not cool dude, not cool.

~Bas
Even with protecting it, There is a way to reflect it..Though I will not do that to you.
09/03/2009 11:19 Basser#30
I know there is, but I don't think you bought a reflector, if you did, I hope you understand if someone protects a .exe, you shouldn't reflect and release the source. What happened to respect? >_>