Game Development Reference
In-Depth Information
We create the server instance:
g_Server = new HTTPServerThread();
Then, we use the detected adapter address:
if ( !Adapters.empty() )
{
g_Server->FBindAddress = Adapters[0].FIP;
}
Finally, we start the web server thread:
g_Server->Start();
By default, the server starts at the IP address 127.0.0.1 and the port is 8080 .
After we start App5 on an Android device, we can connect to it from a desktop computer with
any web browser: just type its IP address and the port. The IP address is detected by the web
server at startup and is displayed at the top of the device screen.
The following is a browser screenshot with the output from our tiny web server:
Accessing our Android web server from a desktop web browser.
There's moreā€¦
App5 works on both Windows and Android, but there are subtleties related to the network
coniguration.
 
Search WWH ::




Custom Search