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 jackson31 · Oct 22, 2011 at 11:10 AM · networkingonline

how to make 'Networking Example' connect online

Hey there, I've been testing out the 'Networking Example' pack that Unity offer on thier official site,

(you know, this one; http://unity3d.com/support/resources/example-projects/networking-example.html)

and it seems to work really well localy; I can open a game in 2 browser tabs and have them connect to one another. But when I get a friend to load the game somewhere else, joining over the internet doesn't seem to work. when I (or any of my friends) host the game the text up top says "UNASSIGNED_SYSTEM_ADDRESS" (thats an error? i guess?)

So how do I get this example to work online? are there ports I need to open? special firewall settings or something?

Thanks in advance, Jackson.

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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by CarlLawl · Oct 22, 2011 at 12:29 PM

I haven't touched the unity example but this will probably be your problem, do you give them your IP address to connect to or is there just a connect button in the game? If you don't have to put an IP in a text field to connect then you probably have an IP variable that is 127.0.0.1 , make a textfield and what ever gets entered set that to your ip variable and use the ip entered to connect to, then when they enter your ip and click connect you should be game!

Comment
Add comment · Show 2 · 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 jackson31 · Oct 22, 2011 at 02:36 PM 0
Share

it already requires an IP to be typed in, then they hit the "Connect" button to join. but that's what's not working :S

avatar image CarlLawl · Oct 22, 2011 at 02:41 PM 1
Share

www.pastebin.com pop your code on there and ill take a look

avatar image
0

Answer by jackson31 · Oct 23, 2011 at 12:15 AM

Oops, I found the solution and now i feel like an idiot. I was looking at the Script Reference for Network.Connect and for it's parameters it need a special ID number called a GUID in order to connect online, I was attempting to use the external IP (since local games worked by typing the local IP into that same box) .

Also, NAT Punchthrough needs to be enabled before hosting, otherwise the server doesn't become visable outside of my local network (that's what that "UNASSIGNED_SYSTEM_ADDRESS" thing was all about I guess)

So to anyone else trying to get this demo to work, it's like this; 1. NAT Punchthrough on (on server machine) 2. Hit 'Start Game' button 3. On client machine, enable NAT punchthough 4. type the leftmost number, from the host game screen (labled "GUID:") into the text box on the client machine 5. Press connect!

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 gcgonster · Nov 13, 2011 at 04:01 PM

Hiya, I'm trying to get the same demo working too and did what you said but I'm getting the following in the console:

Sent connect request to facilitator at 67.225.180.24:50005 Connected to facilitator at 67.225.180.24:50005 Doing NAT punch through to 950259719220261543 using 67.225.180.24:50005 Sent connect request to facilitator at 67.225.180.24:50005 Connected to facilitator at 67.225.180.24:50005 Doing NAT punch through to 950259719220261543 using 67.225.180.24:50005 Receiving NAT punchthrough attempt from target 950259719220261543 failed

I read about it and some say I don't have NAT on my home router but it does and it's enabled so I'm not sure why this ain't working.

If anyone could help would be greatful! Thanks

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 jackson31 · Dec 08, 2012 at 04:07 AM

I've started a new multiplayer project in unity and now I am getting the same error as gcgonster; "NAT punchthrough attempt from target 950259719220261543 failed" There doesn't seem to be any documentation or details on what this error means / what causes it to happen!

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unity Network Tutorial Master Server Question 1 Answer

Is it good to use unity make a card game? 2 Answers

[Command] not run on host when using relay server 0 Answers

Multiplayer example 2 Answers

Photon switches player's camera 2 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