r/visualbasic • • May 12 '15

Web Server

I have a dedicated Minecraft server. I'd like to build a basic web server that shows detailed info about my server and let's me know if the Minecraft server process is running.

That way I don't have to keep an RDC window open while I play and so I can view stats when I'm away from home.

I've never built a web server app, so any tutorials or advice would be excellent.

5 Upvotes

10 comments sorted by

View all comments

2

u/JakDrako May 12 '15

If you don't want to deal with IIS, you can also "self-host" the web server. Look into OWIN/Katana for examples of how to do this.

You can also use WCF (usually used for web services, but nothing prevents you from returning a valid HTML page) and host it in a console window or a Windows service (or, of course, IIS, but then we're back with dealing with IIS for a very simple use).

1

u/Bonejob VB Guru May 12 '15

why do you have to make it so hard on me man... See above code :P

1

u/JakDrako May 13 '15

Very, very nice. I'm adding that to my list of quick tools and utilities.

How do you parse the request when you get a POST or a GET with many arguments? I'm guessing you can extract that from the context? I generally use a bare-bone WCF class library, so that I can define my ServiceContract and my WebInvokes and get all the parsing done by WCF.