UDP Networking [Solved]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
spynaz
Party member
Posts: 152
Joined: Thu Feb 28, 2013 5:49 am

UDP Networking [Solved]

Post by spynaz »

Is it possible to create a list of running servers so the user can choose which one to join (like on COD) and not having a 24/7 running server that does it?
Last edited by spynaz on Thu Nov 14, 2013 8:49 pm, edited 1 time in total.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: UDP Networking

Post by Ranguna259 »

You can have a main server that contains only the names of other servers and then that same server could reedirect the user to one of the listed servers.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:05 am, edited 1 time in total.
User avatar
spynaz
Party member
Posts: 152
Joined: Thu Feb 28, 2013 5:49 am

Re: UDP Networking

Post by spynaz »

But the main server would have to run 24/7. Plus I don't feel like paying money to host an online server.
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:05 am, edited 1 time in total.
szensk
Party member
Posts: 155
Joined: Sat Jan 19, 2013 3:57 am

Re: UDP Networking

Post by szensk »

spynaz wrote:But the main server would have to run 24/7. Plus I don't feel like paying money to host an online server.
The main server could only receive and relay updates whenever it is running, but that seems like a bad idea because clients would be given incorrect server information. Publish-subscribe scenarios such as this could be done through services like irc/xmpp, if you don't want to run your own server.

Otherwise you could send a message to every single computer on the internet on whatever port your server runs and see if they reply in an appropriate matter. (This is a joke. Don't try to do this. )
User avatar
spynaz
Party member
Posts: 152
Joined: Thu Feb 28, 2013 5:49 am

Re: UDP Networking

Post by spynaz »

bekey wrote:In the IRC example one, the main server is actually a irc.freenode.net.
So you're able to create an irc server on freenode.net for free? If so then how?
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: UDP Networking

Post by Plu »

You can't host your own irc server, but you can use the existing on there. I'm guessing the idea would be to use IRC as the communication protocol; you have a channel, your server connects to that channel and so do the client, and they communicate information regarding other servers via IRC.

An interesting solution.

You can also rent a webserver for hosting a website for as little as $20 per year, if you're afraid of high renting costs. You can make a simple php program to handle messages and send players information on the currently available servers.

In the end you only need a fixed location that is always available so that each client knows where to connect to get the server list. That server doesn't have to do much of anything and so can be really cheap, but you'll not really get out of having that main server.

Unless you go the very complicated route, I guess. I could see options using something like a torrent network to spread the server list, but I can't see an easy way to get that working.
User avatar
spynaz
Party member
Posts: 152
Joined: Thu Feb 28, 2013 5:49 am

Re: UDP Networking

Post by spynaz »

Plu wrote:You can't host your own irc server, but you can use the existing on there. I'm guessing the idea would be to use IRC as the communication protocol; you have a channel, your server connects to that channel and so do the client, and they communicate information regarding other servers via IRC.

An interesting solution.

You can also rent a webserver for hosting a website for as little as $20 per year, if you're afraid of high renting costs. You can make a simple php program to handle messages and send players information on the currently available servers.

In the end you only need a fixed location that is always available so that each client knows where to connect to get the server list. That server doesn't have to do much of anything and so can be really cheap, but you'll not really get out of having that main server.

Unless you go the very complicated route, I guess. I could see options using something like a torrent network to spread the server list, but I can't see an easy way to get that working.
Looks like this is a hard thing to do. I do know how to code with the php language, but I just don't know how I would do this. I guess I'll just make it the way MC did where you have to manually specify a server and connect to it and you could see whether it's online or not.
User avatar
DaedalusYoung
Party member
Posts: 413
Joined: Sun Jul 14, 2013 8:04 pm

Re: UDP Networking

Post by DaedalusYoung »

There are also several free hosts with PHP support, so you can try those. I've been using www.atspace.me and www.host-ed.net for a while with no problems.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 9 guests