Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Albert-han · Aug 12, 2015 at 01:39 PM · networkingunity multiplayer

Unity Understanding Network

Hi guys,im new to networking stuff here and i need some help.

I've been googling around the web for a few hours now on how to use the networking but none explains ip adresses,ports,port forwarding and stuff like that , they only explain the classes and functions on Unity networking not networking in general so i need some tutorials on networking in general.Im trying to make a local game with UNET so please explain to me the basics behind local multiplayer and general networking.

Please dont reply google it yourself because i already did and im asking it here because i can reply to questions that i dont understand and some of you might have better resources than me.

Thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer Wiki

Answer by JoshuaStrunk · Aug 12, 2015 at 05:48 PM

So what your really should be looking for is a basic overview of how the internet works. Now I say basic but this is a massively complicated topic and if you have little experience on the technical side of computing I recommend finding some one who is experienced with networking to set up your games networking or just forget about networking your game.

I would look up how to set up a basic web or game server on you local machine as these will get you familiar with all of these terms. I recommend Minecraft or Terraria because both are quite popular and you should be able to find plenty of resources targeting them. It only counts if you can get a friend to connect to it. If you are struggling to get those set up you are going to have a bad time with networking on your own.

As for your specific questions I will just give a brief answer for more detailed and informed information see the links below them.

Video on port numbers : Port Numbers

Video on NAT which covers ports, private area networks and more: Network Address Translation


IP Addresses

Why it matters in your game: This is how your players find the server running your game.

Every time you connect to a website you are using an IP Address and Port number. IP Addresses are exactly how they sound, Addresses. This is all abstracted away by your browser and these fancy servers called Name Servers(Think of these as massive address books). So really when you connect to www.unity3d.com your browser sends out a request to a Name Server to retrieve the actual IP Address if it does not already have the actual IP Address cached. Then your browser sends a request to Unity3D's IP address and waits for a response coming back from it.

More info on IP addresses


Port Numbers

Why it matters in your game: This is how your players find the program on the server to talk to.

As IP addresses are to your home address, ports are to the people inside. Programs on servers have to be configured to listen for requests on specific port numbers. That way one physical server can have multiple server applications running and responding to requests

More info on Ports


Port Forwarding

Why it matters in your game: If your are testing on at home you very likely need this so others can "see" your machine.

Now port forwarding requires a bit more knowledge of how IP addresses to understand why it is needed. Basically its a technique used to expose computers running in your private home network behind your firewalls, router, and ISP to the internet.

More info on port forwarding


I am marking this community wiki because I could have grossly simplified something.

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

25 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 avatar image avatar image

Related Questions

Network.connections.Length is always 0 1 Answer

UNET NetworkServer.Spawn intermittently not called on clients 1 Answer

Unity networking tutorial? 6 Answers

Local IP adress in UNet 4 Answers

[UNet] "No such host is known" error on iOS 1 Answer


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