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 s4sanjay441 · Mar 15, 2012 at 07:08 AM · networkcommunicationinternetmultiplayer networking

Is Internet connection needed for network game?

I am working on the game which is already finished. I have two exe file for them. Now these two need to run on two different PCs and both are in the network. I can run the game properly if I have internet connected. But they can't run if I have not attached to the external internet. The application runs but no communication.

So is it external internet required to run even LAN game? If no then let me know the APIs we can use.

Thanks in advance.

Comment
Add comment · Show 8
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 syclamoth · Mar 15, 2012 at 07:13 AM 0
Share

No, external internet is not required for network play in Unity. There must be some other factor in play.

avatar image syclamoth · Mar 15, 2012 at 07:13 AM 0
Share

Are you using the $$anonymous$$aster Server? Obviously that needs an internet connection.

avatar image s4sanjay441 · Mar 15, 2012 at 07:38 AM 0
Share

Its like this. Exe one acts as the main screen where whole gameplay is there. In the second exe the radar stuff shows the data. Not much processing. Exe 1 is act as server and exe 2 connects to that and uses the info generated by it.

We have LAN connection and different IPs. But this requires external internet.

avatar image syclamoth · Mar 15, 2012 at 07:42 AM 0
Share

Weird. In my experience, unless you're using the master server for something, an external internet connection is completely unnecessary. What networking libraries are you using? Unity internal?

avatar image s4sanjay441 · Mar 15, 2012 at 07:48 AM 0
Share

Yes. From logical point of view. Even it is master server we have address of the PCs in each exe so no need to go out side of the LAN. it has to run.

Check this link. http://unity3d.com/support/documentation/Components/net-HighLevelOverview.html

"Connecting servers and clients together" point. Its says strange thing,

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by fherbst · Mar 15, 2012 at 09:21 AM

If you use a Master Server, you need an internet connection, because the master server is somewhere on Unity's servers. Then everything you send runs over the master server (I think), you don't have direct connections between the players.

If you want to use pure local connections, you have first to detect the other players by other means (i.e. the host does UDP broadcasting, the others listen to that, and connect), or simply connect to them by using the direct IP. Then you have a direct connection between host and clients.

Thats two entirely different approaches for detecting other players and connecting (and the cause why most games have a choice between "Internet Game" and "LAN game").

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

6 People are following this question.

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

Related Questions

Occasionally issue with Wifi connection 0 Answers

Which ways are available for a Unity program to communicate with other programs? 2 Answers

Ping class producing false positives, alternative to check connectivity? 3 Answers

Questions about the fixed frame rate of Unity 1 Answer

Problems with UDP data sending 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