Can mobile phone create game as server on LAN and pc can connect ?
Can mobile phone create game as server
Started by muratsal, Nov 15 2012 10:07 AM
6 replies to this topic
Sponsor:
#2 Members - Reputation: 1044
Posted 15 November 2012 - 10:23 AM
If there's a general purpose socket library available for your mobile phone platform, then probably, yes.
I seem to remember doing this when testing an IOS game, but that was many OS updates ago, (before game centre). Perhaps someone else has tried it more recently.
I'm not sure if it's a good idea, except for testing/debugging purposes.
I seem to remember doing this when testing an IOS game, but that was many OS updates ago, (before game centre). Perhaps someone else has tried it more recently.
I'm not sure if it's a good idea, except for testing/debugging purposes.
#3 Members - Reputation: 141
Posted 15 November 2012 - 10:26 AM
also can mobile phones connect each other with wireless ?
my map aplications http://haritaaraci.com
#5 Members - Reputation: 1050
Posted 15 November 2012 - 11:03 AM
Bluetooth and wifi are both fine for mobiles connecting to each other although are both handset dependent Some mobile phones cannot act as a wifi host for instance so cannot have other devices connecting or may have other similar restrictions. Bluetooth suffers from the same. Many mobile devices can only maintain a single bluetooth pairing or wifi connection at a time which will further limit you. On devices not effected then yes you can host multiplayer but generally a PC has more resources for this task.
#6 Crossbones+ - Reputation: 463
Posted 15 November 2012 - 01:03 PM
It should work fine, until you switch to another app. On iPhone at least, background processes are restricted to preserve battery life and responsiveness.
If you really want to try and make it work, you might to pretend to be a VOIP or music app. Here's a good place to start your research on that. Otherwise, you could just require your users to leave the app in the foreground at all times.
Good luck!
If you really want to try and make it work, you might to pretend to be a VOIP or music app. Here's a good place to start your research on that. Otherwise, you could just require your users to leave the app in the foreground at all times.
Good luck!
#7 Moderators - Reputation: 8538
Posted 15 November 2012 - 03:52 PM
In Android you can keep running network services in the background, assuming you set your app up properly.
That being said, you will still face potential issues with NAT and other connectivity. Mobile providers sometimes don't like you running publicly-visible servers and may block incoming connections across their network.
That being said, you will still face potential issues with NAT and other connectivity. Mobile providers sometimes don't like you running publicly-visible servers and may block incoming connections across their network.






