Portal 2 Becomes An Impressively Capable Web Server
1 min read
Summary
Portal 2 has been hacked to run a functional web server, allowing the game to communicate with web browsers, potentially creating an interactive two-way relationship.
Using the Source Engine, the game can now implement necessary TCP network sockets for web traffic, react to browser connection requests with HTML responses and determine the status of in-game objects.
From there,343iphering the meaning of the binary data (which is just a bunch of 0s and 1s) requires a bit more work.
This allows the in-game status or objects to effect the HTML served to browsing, creating a potentially dynamic and interactive experience.
While the hack is impressive in itself, the real excitement lies in the potential for Portal 2 to communicate with browsers, smartphones and other IOT devices in innovative ways.