Cities: Skylines

Cities: Skylines

141 ratings
City Web Server
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
811.508 KB
Apr 5, 2015 @ 7:53am
Jun 1, 2015 @ 9:37pm
8 Change Notes ( view )

Subscribe to download
City Web Server

Description
Allows you to access real-time information about your city via your web-browser.

Once you've loaded up your city, simply open a browser and navigate to http://localhost:8080/index.html

In the center of your screen you'll see a small globe. Clicking on this will open the web page using your default web-browser. You can hold the left-shift key and drag this button anywhere on the screen (its position will be saved between sessions). If you don't hold down the left-shift key, you can still drag the button, pressing shift just suppresses the button's click events, so you don't open your browser multiple times.

By default, the server runs on port 8080. If this port is in use, it won't work. As a workaround, hold down the left-control key, and click on the globe. This will open a folder that contains the configuration file. Close the game before opening this file, or your changes will be overwritten when the game closes. Open the file (ModSettings.json) in any text editor, and edit the "webServerHost1" with the desired port number. Afterwards, simply save the file and reload your game. In the interest of security, the server only works when accessed via the "localhost:8080" address, but you can edit the configuration file to bind to all local addresses. Simply modify your ModSettings.json file to look like this: https://gist.github.com/Rychard/d9c608880a779d8e4165

Note: It appears that this doesn't work inside the steam browser, so you'll need to use a browser outside the game.

View the source-code (available on Github): https://github.com/Rychard/CityWebServer/
96 Comments
toast May 30, 2023 @ 4:30pm 
Anyone have an update version of this?
Rena Mar 29, 2019 @ 11:49am 
It works, but the only items in the navbar are Home and Log. Clicking the city name shows more pages, but they just show raw JSON.

Also how do I go about adding more pages? Are there HTML files somewhere I can edit?
xpala May 1, 2018 @ 3:35pm 
would love an update from this mod with more infoscreens
Angelino Feb 2, 2018 @ 3:22am 
Where are the "Mister Slurp's UI" in this MOD? I re-installed Cities Skylines and Mister Slurp's U is gone :(
iM4g3Ry Dec 19, 2017 @ 11:13pm 
just made it work, fairly effortlessly; fyi, you guys, hold [Control] + Mouse Drag = moves the world icon
iM4g3Ry Dec 19, 2017 @ 11:00pm 
This is a breathtaking idea, after looking for more than an hour for some mod that would do just this... #RIP- Rush Hour, but I still use it and I can't see any data since it's maybe been a month instead of like, 2-3 years...

tl;dr -- could you make this accessible in game some how? the main thing I'm interested in is the update interval. It goes between Years (by default). Could it easily be done? I'm willing to be shown how. I have some solid experience with C++ but no C# :steamfacepalm: I'll send a request to communicate about it possibly tomorrow, so I don't interfere with your Rocket League match :orochi:
Galameth Dec 10, 2017 @ 2:23am 
Also running into charts not displaying. I get basic city info in data tables, but no charts through Chrome.
eddymurphy@3080Ti ♥ StDeck Aug 30, 2017 @ 9:01am 
For me it works fine but the Button is in the middle of the screen.
Modern Pyro Aug 13, 2017 @ 2:14pm 
Has anyone been able to port the city statistic to an editable table? I'm interested in using city growth data for research. I appreciate any help.
Junelicious May 23, 2017 @ 11:41am 
The description might need a little tweak.
Closing the game overwrites the setting file (at least it did in my case and it took me 3 reloads to properly do it) and game needs to be closed before the edit.

Also, maybe there should be an option to make viewing stats on an iPad/other tablet accessible for people without the knowledge of how config files work :)