Connection from exterior
Options
Aslan85
✭
Hi Bolt's Guys !
I created my little game with Bolt !
In my local network that works perfectly and, for me, it's fun.
Now, I want to try the game with my friends but I don't know how I can set it.
My friends can ping my pc but if they want to join the game, they can not. It's maybe an user's right problem but I want some indications.
Do you know why my friends can't join the game ?
I created my little game with Bolt !
In my local network that works perfectly and, for me, it's fun.
Now, I want to try the game with my friends but I don't know how I can set it.
My friends can ping my pc but if they want to join the game, they can not. It's maybe an user's right problem but I want some indications.
Do you know why my friends can't join the game ?
0
Comments
-
How are they trying to connect to the game you're hosting?0
-
Yes, I tried two things.
First, I was the host.
Second, I configure an Amazon EC2 with windows server 2012.
From a simple ping in my terminal (I'm using a Mac) I can ping the server but when I search to connect at my game, I can't join it.
My boltInit file is exactly the same that you have created. I found here :
http://hastebin.com/yofudoquwa.avrasm0 -
You host may be behind a firewall, or it could be connecting to the wrong address. When you launch the server you should see the ip and port it binds to in the logs.0
-
OK, I check that right now.
--------------------------------------
The EC2 server has a private IP address 172.31.xx.xx and a public address 52.34.xx.xx
With the log. I've seen that the server use the private IP.
How I can said to bolt to use the public address ?
I must to create a route between the public and the private address ?0 -
Ok, I stay a noob
I haven't found some documentation about configure a windows server 2012.
The game using bolt turn with the private IP and clients connect to my computer with the public IP.
I haven't create any link between the 2 address and clients can not connect at the game.
Anyone has some links to set a route between the public address and the game ?
Another way,
if I set "BoltLauncher.StartServer(myPublicAddress);" that's works ?
I think isn't safe but I can do it that ?
Thank you for reply.0 -
If you have a lot of problems with IP and firewalls it might be worth using Zeus, it handles all that for you.0
-
Yes, it's probably the right way.
I try it, thank you.0 -
AWS has their own firewall, which you need to grant access for traffic to pass through. This is defined in the security group(s) you have assigned to your server instance.
Have users connect to the external IP, or get an elastic IP. You get 1 elastic IP free so long as it's associated with a server. Then you have to make sure your computer's firewall is allowing the client to connect as well. Lastly, you need to make sure the server firewall (Windows Firewall in your case) is allowing traffic.
While I haven't used Bolt on AWS on a current build, I had a test version of my game running there for over a year and it works just fine. Just a lot of setup at first.0 -
Thanks Yukichu !
I set an elastic IP and open port on the firewall and that's work !
I can play with my friends all over the world0 -
Awesome, glad I could help.0