Html5 SimpleHTTPServer how to run another server?

i did a html demo,but only play locahost by SimpleHTTPServer, i can’t change the server ip and port.
1:i did a game demo by the SimpleHTTPServer. but the game only play by localhost, the url: localhost:8082/HtmlPro.html. i need run the SimpleHTTPServer in one server and play the demo in the other pc, how do i do ?
2: paly the demo use the url:127.0.0.1 by the SimpleHTTPServer, how did u do ?
3:if i use apache replace the SimpleHTTPServer, how to configue the apache?

the demo don’t play by the apache as the readme file configuration, the brower can’t decompression the gz file.
<Directory “${SRVROOT}/htdocs”>
AddEncoding gzip gz
</Directory>

Configuring .htaccess file for (GZIP GZ file for UE4.9)__
Add code file below to your .htaccess file:

<files *.gz>
AddType “text/javascript” .gz
AddEncoding gzip .gz
</files>

Froffs
thanks!

fist i configure the http.conf file.

1:before configuration:
<Directory />
AllowOverride none
Require all denied
</Directory>
#LoadModule rewrite_module modules/mod_rewrite.so
2:after configuration
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
LoadModule rewrite_module modules/mod_rewrite.so
second i add the …htaccess in the game demo root directory and Add code file below to .htaccess file:

<files *.gz>
AddType “text/javascript” .gz
AddEncoding gzip .gz
</files>

at last i restart the apache and play the game ,but the game don’t play.