Page 1 of 1

How to get MC classic server list info in a WPF Project?

PostPosted: 26 Jul 2013, 14:41
by Leeizazombie
I wana make a project that can tell info that if certain servers are on, how do you get the list into a program?

Re: How to get MC classic server list info in a WPF Project?

PostPosted: 26 Jul 2013, 16:57
by joppiesaus
Pew. I don't know if there's something (an url where all servers get sycnhed in a list), and then download it and put it in a listbox.
Anyways the download code:
Code: Select all
string adress = "Your URL here!";
WebClient client = new WebClient();
string DOWNLOADED_FROM_INTERNET  = client.DownloadString(adress);

Re: How to get MC classic server list info in a WPF Project?

PostPosted: 26 Jul 2013, 17:21
by Leeizazombie
joppiesaus wrote:Pew. I don't know if there's something (an url where all servers get sycnhed in a list), and then download it and put it in a listbox.
Anyways the download code:
Code: Select all
string adress = "Your URL here!";
WebClient client = new WebClient();
string DOWNLOADED_FROM_INTERNET  = client.DownloadString(adress);

Okay, but thank for the code :)

Re: How to get MC classic server list info in a WPF Project?

PostPosted: 27 Jul 2013, 02:54
by Conor
You have to get the information from Mojang somehow. I don't think its using the WebClient either, I think its a HTTP web request or something like that, I'm really not sure. I would help you if I could. Read up about it online :)