Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by Phaseshifter · May 29, 2016 at 07:18 PM · networkingwebgl

How to run uNET (Unity Networking) Host Server for WebGL build - Unity 5.3.4f1

So I have a game that I want to export to WebGL. It uses Unity's latest networking solution uNET (Unity Networking) and I've selected the *use websockets option.

Currently, WebGL clients cannot be a server. Thus in order to host a game, I am doing it when I run the game through the editor. Then in the browser, I can join the game as a client.

So obviously I don't want to leave my computer on to be the host through the editor while people in the web join as clients.

I'm thinking that I should build the game in standalone and run the standalone game on some server and join the game as host. Then of course I leave the server on 24/7 so anyone can join through the web. But I have no idea how to accomplish this (i.e. what services to use) or if this is even the right approach.alt text

unitywebglbuildgame.png (58.4 kB)
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 cernys · Jul 07, 2016 at 01:34 PM 0
Share

Hi, this is not an answer but a update of your post. I have the same problem ! Did you, or anybody, find a solution ? Thanks

avatar image Phaseshifter · Jul 07, 2016 at 02:50 PM 0
Share

Unfortunately I haven't found a solution to this particular problem.

But in general my problem was having a networking solution for Unity games over the web. I've found that you can interact with Unity's code using

Send$$anonymous$$essage("OBJECT_NA$$anonymous$$E", "$$anonymous$$ETHOD_NA$$anonymous$$E"); in client-side javascript.

As a result, I'm using Firebase as a networking solution and database. You can use any other service as well but I've found the resources from Firebase to be quite generous.

avatar image cernys Phaseshifter · Jul 07, 2016 at 03:01 PM 0
Share

I found this five $$anonymous$$utes ago : https://community.unity.com/t5/$$anonymous$$ultiplayer-Networking/StartServer-listen-failed-error-with-UNET-and-WebGL/td-p/2563574

Thanks for yours informations.

avatar image Phaseshifter cernys · Jul 07, 2016 at 03:14 PM 0
Share

Here's more information on Send$$anonymous$$essage();

https://docs.unity3d.com/$$anonymous$$anual/webgl-interactingwithbrowserscripting.html

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by RogueMacro · Nov 12, 2018 at 06:40 AM

I don’t know if you still want answers, but for those others seeing this question. Check out this question with a good answer: WebGL cannot be server?

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

Is it possible to get a networked WebGL build to run in single player mode? 2 Answers

Best way to check if connected to the internet from a webGl build? 0 Answers

How to connect to server with a WebGL Build using Unity's Multiplayer Service, Unity 1 Answer

New UnityWebRequest How Can I Handle the responses ?? 1 Answer

Adding Custom Headers/Cookies to the UnityWebRequest.Post 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