crazy2be / buildblast

Build a base, shoot intruders
MIT License
5 stars 1 forks source link

Making the server external by default. Because if your computer is fa… #185

Open yeerkkiller1 opened 9 years ago

yeerkkiller1 commented 9 years ago

Lets do this. Maybe we should even set port to 79 (so the http port is 80), but definitely 8079 (as the previous http port was 8080).

kieve commented 9 years ago

We should just define two ports. One for the www site, the other for the game.

yeerkkiller1 commented 9 years ago

Yeah probably, but we should definitely not change the port from 8080 to 8081.

And the localhost -> "" thing... very useful. That way we don't need to understand why the server works on localhost but not for anyone else, it will just work for everyone that can hit our computer.

kieve commented 9 years ago

We're not changing the port from 8080 to 8081. 8080 is used for the webserver. It just happens that in the dev environment, I'm the only one that runs it. You guys could too. And in the future you'll want to. Bunch of features are going to come from there.

crazy2be commented 9 years ago

Well but you still have to play the game on 8081, don't you?

crazy2be commented 9 years ago

Even in the dev environment, I mean.

kieve commented 9 years ago

I fail to see why this is a problem. For someone coming in, entering a port and wondering why they can't play the game on that port, I can see the problem. The solution is not to change the default port to 8079, because that doesn't solve the problem. "Why isn't the game running on 8079?". I am not overly attached to the port 8080, so it doesn't actually matter to me which port it is running on. The correct solution is to have separate port options for the WWW website and the game.

Once I get ahead (caught up) on assignments, I'll update this so that a default game and www port are defined. Then we can all just configure to use what ever we want.