Multiplayer: works in LAN only...

Just started using Construct 2? Post your questions here

Post » Tue Jul 14, 2015 7:12 pm

*sorry for my English*

Hi, I'm following the multiplayer real-time game project: my game works well under the same connection, but with different connections the peer will be kicked.

I've not a good English, so maybe i didn't understand something...

what could generate this problem?

Can someone help me please? thanks!
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Wed Jul 15, 2015 5:32 am

I'm not sure if this helps at all but,

but do you have a dynamic ip or static ip?

A few months ago I tried hosting some games and people could not connect to me for some reason, so I read somewhere that having a static ip and port forwarding would help with this.


I'm not sure if this will help but, maybe you can look into it.

Also have you tried running the game on different computers? Different host to different players connecting?
B
6
S
2
Posts: 60
Reputation: 1,242

Post » Wed Jul 15, 2015 11:45 am

Yes, I tried on several devices. Always the second device try to connect, but at the least, it will be kicked..

Maybe I need a dedicate app for host?

I'm really locked, I don't know what to do..
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Wed Jul 15, 2015 4:10 pm

So no one can help me??

@ashley Can I send my capx to you?
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Wed Jul 15, 2015 4:26 pm

It depends on your network configuration, particularly the NAT setup. It's not really anything to do with the .capx.
Scirra Founder
B
399
S
236
G
89
Posts: 24,546
Reputation: 195,436

Post » Wed Jul 15, 2015 4:31 pm

@ashley Thanks for reply.

My game is based on your example. Your works well, mine not.

I tried to upload the project on a website, but same error. -> http://naragames.altervista.org/zero/

Why your example works and mine not?
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Wed Jul 15, 2015 5:19 pm

Ok, I think I need to set up something here. Am I right??

Image
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Sun Jul 19, 2015 10:34 am

I've got the same problem. Multiplayer only works at my local network. Not when someone else tries to connect to the game from the Internet.

I bypassed my router and connected my computer directly to the network but that did not help. I also disabled my software firewall for a moment, same result, not working.

I've uploaded the Chat example to the Scirra Arcade Tutorial games. Does it work if other people try it?

The strange thing is that I've tried the chat example and also the multiplayer game example with my friend a few months ago and it did work. I exported it as a HTML5 and send it to my friend as a zip package.
B
3
Posts: 4
Reputation: 183

Post » Sun Jul 19, 2015 10:39 am

It seems to work... Must be something with the NAT then. Too bad. It's almost impossible to test and develop my game because of this problem.
B
3
Posts: 4
Reputation: 183

Post » Sun Jul 19, 2015 12:54 pm

Found this: http://www.web2py.com/

I think can solve this problem, but I don't tried it, so I don't know how it works.

If you try it, let me know something please!
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest