Author Topic: IS this possible to host the game in webplayer ?  (Read 3274 times)

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
IS this possible to host the game in webplayer ?
« on: August 25, 2013, 09:52:38 AM »
Hi, i want to create a little multiplayer game  in the webplayer. is this possible to use the webplayer as host  with TNET? or i hace to  use the Unity's builtin way to network ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: IS this possible to host the game in webplayer ?
« Reply #1 on: August 25, 2013, 02:17:19 PM »
You can't host servers from the web player. It's a Unity limitation.

pyscho2day

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 74
    • View Profile
Re: IS this possible to host the game in webplayer ?
« Reply #2 on: August 25, 2013, 03:19:31 PM »
You cant start a server in the web player at all.  you would need to have a server some where else then connect to it. but as far as a host in TNet you can do that, just not be a server/host.

If that confused you more let us know.

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: IS this possible to host the game in webplayer ?
« Reply #3 on: August 26, 2013, 02:50:51 AM »
ok, so i go back to unity's Built in network, and master server, for my multiplayer games

Etarnalazure

  • Guest
Re: IS this possible to host the game in webplayer ?
« Reply #4 on: August 26, 2013, 05:45:30 AM »
I dont think its a problem with TNet, but Unity
as a whole, whether you make a server with TNet or with Unity, you will
not be able to host a server within the webplayer application (For security reasons)
This may shed some light on it:
http://docs.unity3d.com/Documentation/Manual/SecuritySandbox.html

Your best choice would most likely be to host a server locally or get a third party
hoster to host it for you. I'd say you should stick with TNet since it does make
a lot of things easier, as well as letting you do some more advanced stuff.

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: IS this possible to host the game in webplayer ?
« Reply #5 on: August 26, 2013, 08:05:27 AM »
i have a "game", running on webplayer, using the master server. first player can host, and another can join, using the master server.

can i use the master server with TNET ? or someting ?

pyscho2day

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 74
    • View Profile
Re: IS this possible to host the game in webplayer ?
« Reply #6 on: August 26, 2013, 10:25:45 AM »
can i use the master server with TNET ? or someting ?

Yes you can.  For example you could have a the MS Running on a Amazon EC2 server and then the web clients all connect to that. That then would be fine.