Author Topic: Connect to a server  (Read 2400 times)

lynohd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Connect to a server
« on: February 10, 2017, 10:59:01 AM »
Hello, I was going to play-test a game ive been working on for a few days but ran into some issues.
other people werent able to connect to a lobby / gameserver, I probadly have setup everythijng wrong (I followed and did the exact same as in the Demo files)
what is the correct way to set up a server and let everyone connect to it?

sorry for bad english, couldnt word myself writing this post.


Appreciate all help

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Connect to a server
« Reply #1 on: February 13, 2017, 11:51:33 AM »
You need to be hosting it somewhere accessible. Simply hosting it on your local computer is unlikely to have it be accessible to others. Also when you connect to the server, you need to be doing so by an external IP. You will need to provide more details for me to be able to help.

lynohd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Connect to a server
« Reply #2 on: February 14, 2017, 06:21:21 AM »
I opened my ports and used the Server that came with your package, and i have tried to connect with external ip, but my friends said they didnt find my server or anything
so im not sure, I dont even know. im all overwhelmed with TNet right now, not even sure what im trying to do anymore haha

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Connect to a server
« Reply #3 on: February 18, 2017, 07:54:29 PM »
For hosting the server it's best to stick to VPS hosting, such as Amazon's EC2. You can make sure that it's accessible properly. There can be a number of reasons as to why your local server isn't accessible -- from having a double router setup to using a connection that simply doesn't allow it (3G/4G/LTE), to using the wrong protocol (IPv4 vs IPv6). When you host on a VPS (virtual private server), you get to avoid all these issues as they are specifically designed for this very task: hosting a server. :)