Sign in to follow this  
muratsal

Can mobile phone create game as server

Recommended Posts

C0lumbo    4411
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.

Share this post


Link to post
Share on other sites
Daaark    3553
[quote name='muratsal' timestamp='1352996814' post='5001261']
also can mobile phones connect each other with wireless ?
[/quote]Yes. Many games have co-op play, and you can even run a Minecraft mobile server.

Share this post


Link to post
Share on other sites
6677    1054
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.

Share this post


Link to post
Share on other sites
sox    488
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 [b]really [/b]want to try and make it work, you might to pretend to be a VOIP or music app. [url="http://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW3"]Here's[/url] 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!

Share this post


Link to post
Share on other sites
frob    44978
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this