{"author_link":"\/users\/omiya-games","author_name":"Omiya Games","author_uid":"omiya-games","comments":[],"epoch":1501542050,"event":"LD39","format":"md","ldjam_node_id":45938,"likes":1,"metadata":{"p_key":"99434","p_author":"Omiya Games","p_authorkey":"1000317","p_urlkey":"315131","p_title":"Trouble with Unity server hosting","p_cat":"LDJam ","p_event":"LD39","p_time":"1501542050","p_likes":"1","p_comments":"0","p_status":"WAYBACK","us_key":"1000317","us_name":"Omiya Games","us_username":"omiya-games","event_start":"1501200000","event_key":"74","event_name":"LD 39"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD39","removed_author":false},"_superparent":32802,"_trust":10,"author":317,"body":"So I'm trying to create a server and client in Unity of my game.  The server handles physics simulation, while the client is just a glorified UI.  I'm using Google Cloud's free trial to create an Ubuntu server and uploaded my server, but something must be wrong: the server doesn't look like it's opening port 7777!\n```\nomiyagames@---:~\/v0.3$ .\/everybody_plays_golf.x86_64 -batchmode -nographics -logfile log.text &\nomiyagames@---:~\/v0.3$ sudo netstat -anp\nActive Internet connections (servers and established)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID\/Program name\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1681\/sshd       \ntcp        0      0 10.142.0.2:46354        169.254.169.254:80      ESTABLISHED 1615\/python3    \ntcp        0      0 10.142.0.2:46350        169.254.169.254:80      ESTABLISHED 1613\/python3    \ntcp        0      0 10.142.0.2:22           24.105.162.149:53340    ESTABLISHED 6174\/sshd: omiyagam\ntcp        0    464 10.142.0.2:22           74.125.72.164:44100     ESTABLISHED 5999\/sshd: omiyagam\ntcp        0      0 10.142.0.2:46344        169.254.169.254:80      CLOSE_WAIT  1613\/python3    \ntcp        0      0 10.142.0.2:46352        169.254.169.254:80      ESTABLISHED 1614\/python3    \ntcp6       0      0 :::22                   :::*                    LISTEN      1681\/sshd       \nudp        0      0 0.0.0.0:68              0.0.0.0:*                           1053\/dhclient   \nudp        0      0 10.142.0.2:123          0.0.0.0:*                           1518\/ntpd       \nudp        0      0 127.0.0.1:123           0.0.0.0:*                           1518\/ntpd       \nudp        0      0 0.0.0.0:123             0.0.0.0:*                           1518\/ntpd       \nudp6       0      0 fe80::4001:aff:fe8e:123 :::*                                1518\/ntpd       \nudp6       0      0 ::1:123                 :::*                                1518\/ntpd       \nudp6       0      0 :::123                  :::*                                1518\/ntpd       \n```\n\nThe code is open-source, with the most relevant script being [ServerManager.cs](https:\/\/bitbucket.org\/OmiyaGames\/ludum-dare-39\/src\/732c76c25cc6a7abdb13924261107c7cd6509a60\/Assets\/Project\/Scripts\/ServerManager.cs?at=default&fileviewer=file-view-default).  So, anyway, I either need this fixed, or have a backup plan.  Any ideas?\n\nEdit: also, the log:\n\n```\nSet current directory to \/home\/omiyagames\/v0.3\nFound path: \/home\/omiyagames\/v0.3\/everybody_plays_golf.x86_64\nMono path[0] = '\/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed'\nMono config path = '\/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Mono\/etc'\nPlayer data archive not found at `\/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/data.unity3d`, using local filesystem\nInitialize engine version: 2017.1.0f3 (472613c02cf7)\nForcing GfxDevice: Null\nNullGfxDevice:\n    Version:  NULL 1.0 [1.0]\n    Renderer: Null Device\n    Vendor:   Unity Technologies\nAudioManager: Using Unknown: NoSound Driver\nBegin MonoManager ReloadAssembly\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp-firstpass.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp-firstpass.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.UI.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.UI.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Networking.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Networking.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Timeline.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Timeline.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Analytics.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Analytics.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/TextMeshPro-1.0.55.56.0b11.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/TextMeshPro-1.0.55.56.0b11.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/System.dll (this message is harmless)\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/System.Core.dll (this message is harmless)\n- Completed reload, in  0.017 seconds\nUnloadTime: 0.846000 ms\nSetting up 1 worker threads for Enlighten.\n  Thread -> id: 7f025effd700 -> priority: 1 \n```","comments":0,"created":"2017-07-31T22:54:36Z","files":[],"files-timestamp":0,"id":45938,"love":1,"love-timestamp":"2017-07-31T23:28:28Z","meta":[],"modified":"2017-07-31T23:28:28Z","name":"Trouble with Unity server hosting","node-timestamp":"2017-07-31T23:09:46Z","parent":34569,"parents":[1,5,9,32802,34569],"path":"\/events\/ludum-dare\/39\/everybody-plays-golf\/trouble-with-unity-server-hosting","published":"2017-07-31T23:00:50Z","scope":"public","slug":"trouble-with-unity-server-hosting","subsubtype":"","subtype":"","type":"post","version":121731},"node_metadata":{"n_key":"45938","n_urlkey":"315131","n_parent":"34569","n_path":"\/events\/ludum-dare\/39\/everybody-plays-golf\/trouble-with-unity-server-hosting","n_slug":"trouble-with-unity-server-hostin","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"317","n_created":"1501541676","n_modified":"1501543708","n_version":"121731","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/39\/everybody-plays-golf\/trouble-with-unity-server-hosting","text":"So I'm trying to create a server and client in Unity of my game.  The server handles physics simulation, while the client is just a glorified UI.  I'm using Google Cloud's free trial to create an Ubuntu server and uploaded my server, but something must be wrong: the server doesn't look like it's opening port 7777!\n```\nomiyagames@---:~\/v0.3$ .\/everybody_plays_golf.x86_64 -batchmode -nographics -logfile log.text &\nomiyagames@---:~\/v0.3$ sudo netstat -anp\nActive Internet connections (servers and established)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID\/Program name\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1681\/sshd       \ntcp        0      0 10.142.0.2:46354        169.254.169.254:80      ESTABLISHED 1615\/python3    \ntcp        0      0 10.142.0.2:46350        169.254.169.254:80      ESTABLISHED 1613\/python3    \ntcp        0      0 10.142.0.2:22           24.105.162.149:53340    ESTABLISHED 6174\/sshd: omiyagam\ntcp        0    464 10.142.0.2:22           74.125.72.164:44100     ESTABLISHED 5999\/sshd: omiyagam\ntcp        0      0 10.142.0.2:46344        169.254.169.254:80      CLOSE_WAIT  1613\/python3    \ntcp        0      0 10.142.0.2:46352        169.254.169.254:80      ESTABLISHED 1614\/python3    \ntcp6       0      0 :::22                   :::*                    LISTEN      1681\/sshd       \nudp        0      0 0.0.0.0:68              0.0.0.0:*                           1053\/dhclient   \nudp        0      0 10.142.0.2:123          0.0.0.0:*                           1518\/ntpd       \nudp        0      0 127.0.0.1:123           0.0.0.0:*                           1518\/ntpd       \nudp        0      0 0.0.0.0:123             0.0.0.0:*                           1518\/ntpd       \nudp6       0      0 fe80::4001:aff:fe8e:123 :::*                                1518\/ntpd       \nudp6       0      0 ::1:123                 :::*                                1518\/ntpd       \nudp6       0      0 :::123                  :::*                                1518\/ntpd       \n```\n\nThe code is open-source, with the most relevant script being [ServerManager.cs](https:\/\/bitbucket.org\/OmiyaGames\/ludum-dare-39\/src\/732c76c25cc6a7abdb13924261107c7cd6509a60\/Assets\/Project\/Scripts\/ServerManager.cs?at=default&fileviewer=file-view-default).  So, anyway, I either need this fixed, or have a backup plan.  Any ideas?\n\nEdit: also, the log:\n\n```\nSet current directory to \/home\/omiyagames\/v0.3\nFound path: \/home\/omiyagames\/v0.3\/everybody_plays_golf.x86_64\nMono path[0] = '\/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed'\nMono config path = '\/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Mono\/etc'\nPlayer data archive not found at `\/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/data.unity3d`, using local filesystem\nInitialize engine version: 2017.1.0f3 (472613c02cf7)\nForcing GfxDevice: Null\nNullGfxDevice:\n    Version:  NULL 1.0 [1.0]\n    Renderer: Null Device\n    Vendor:   Unity Technologies\nAudioManager: Using Unknown: NoSound Driver\nBegin MonoManager ReloadAssembly\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp-firstpass.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp-firstpass.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/Assembly-CSharp.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.UI.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.UI.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Networking.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Networking.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Timeline.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Timeline.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Analytics.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/UnityEngine.Analytics.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/TextMeshPro-1.0.55.56.0b11.dll (this message is harmless)\nLoading \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/TextMeshPro-1.0.55.56.0b11.dll into Unity Child Domain\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/System.dll (this message is harmless)\nPlatform assembly: \/home\/omiyagames\/v0.3\/everybody_plays_golf_Data\/Managed\/System.Core.dll (this message is harmless)\n- Completed reload, in  0.017 seconds\nUnloadTime: 0.846000 ms\nSetting up 1 worker threads for Enlighten.\n  Thread -> id: 7f025effd700 -> priority: 1 \n```","title":"Trouble with Unity server hosting","wayback_source":[]}