Author Topic: Questions about servers and ports  (Read 1799 times)

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Questions about servers and ports
« on: November 04, 2013, 10:34:30 AM »
Hi, I am initiating me into the network settings, and I have some basic questions, I hope someone can help me.

1. - I'm creating a game that requires many open rooms permanently, this means that each room is a server? Or each room belongs to a different port?


2. - As I can set up my game so that the customer does not have to write any settings iP, only have the option to create the room name and password?

3. - TNET has some function to join a random room?

4. - As I can create salar by name and not by iD? (Some example code)

5. - As I said before my game requires many open rooms and do not want anyone to have to write anything about IP or ports, want everything to be automatic, what are the best practices?

6. - It would be appropriate that I initiate the server first? (They do not want anyone to have to do anything like that?)


thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Questions about servers and ports
« Reply #1 on: November 04, 2013, 12:35:39 PM »
1. One server can have many channels (rooms).

2. Yes, if you have a central sever in a specific location. For Starlink I used a server hosted on tasharen.com, for example.

3. TNManager.JoinRandomChannel.

4. What's a salar?

5. Host a server on a static IP or better yet -- an NS record (for starlink I used servername.tasharen.com for example).

6. If you have a central server, all you need to do connect to it.