Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Narmer · Apr 02, 2015 at 07:48 AM · androidiosnetworkingmultiplayer

Smartphone multiplayer - NAT problem?

I have read several articles and heard that there is a problem if I want to use Unity built-in networking for smartphone multiplayer.

Some say it is possible, some say it is not.

The only thing I want is to make 1 vs 1 multiplayer using iOS and Android and I want to avoid using middleware such as Photon, since this game must not be limited (unlimited online players).

So should I use Unity built-in networking or is there any other way?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zanareno · Nov 11, 2015 at 09:58 PM 0
Share

Hi, I have the same question myself. I was wondering if you found the solution to your problem? If so, what did you choose? I want to make a board game just like you described, so i'm facing the same doubts. Can you help?

avatar image Narmer zanareno · Nov 12, 2015 at 06:01 PM 0
Share

I found out that it is not possible to use built-in Unity networking for this purpose. It works only via Wifi. I had to use Photon Cloud which uses server as a mediator and therefore resolves NAT problem.

avatar image Bunny83 · Nov 11, 2015 at 11:12 PM 0
Share

This question is way to unspecific. It highly depends on your requirements. Are both players on the same local network? Or should they be able to connect via the internet when they use NAT wifi as well? In the first case a simple UDP broadcast should help to announce that a player is ready for connection. In all other cases where people might be behind NAT routers and / or on different networks you almost always need a server that helps you with matching player, trying NAT punchthrough and / or serve as relay between the players.

You can also look into UPnP to dynamically open ports in the router (if it has UPnP enabled). However that doesn't solve the problem of actually finding each other, it's just another way to break out of the NAT router.

So this question is way to unspecific to be answered.

@zanareno:
If you actually want a specific answer you might want to ask a seperate question with more details about your requirements. For example if you only want to connect to persons you know or if you want all players be able to find each other...

avatar image zanareno Bunny83 · Nov 11, 2015 at 11:31 PM 0
Share

Hi Bunny, Thanks for your reply. I'll rephrase. I'm doing a board game and i want to add multiplayer features to it, like a lobby. One hosts and other joins. I Don't want auto matchmaking because i want the possibility to play with a friend. So it's a 1v1 game to play on iphone and android. I want to avoid uLink, SmartFox, Photon or any other that requires a licence. Since the game only requires that both clients talk to each other and knows their position in the board, what would be your recommendation? Oh and the gold is to be played online worldwide.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by wesleywh · Apr 02, 2015 at 02:58 PM

I have made an android multiplayer game with the built in unity networking. It worked just fine for me.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Narmer · Apr 02, 2015 at 04:09 PM

Try mobile networking (not WiFi).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

Get the WiFi IP address of the device 1 Answer

Cross platform multiplayer 3 Answers

Get the device IP address from Unity 3 Answers

1vs1 create/join or automatic player matchup on iOS - do I need SmartFox? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges