diff --git a/web/root/ecwebv3/pages/002-forum.ssjs b/web/root/ecwebv3/pages/002-forum.ssjs
index aaaefac2441a023ad2c97419e8f172eb408a6621..2923d25725553fd5527fd1eed378b436b73c0e54 100644
--- a/web/root/ecwebv3/pages/002-forum.ssjs
+++ b/web/root/ecwebv3/pages/002-forum.ssjs
@@ -17,8 +17,8 @@ if(http_request.query.hasOwnProperty('board')) {
 
 if(http_request.query.hasOwnProperty('sub')) {
 	print("<script type='text/javascript'>");
-	print("loadThreads('http://" + webIni.HostName + ":" + webIni.HTTPPort + "/forum-async.ssjs', '" + http_request.query.sub + "', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");");
+	print("loadThreads('http://" + system.inet_addr + ":" + webIni.HTTPPort + "/forum-async.ssjs', '" + http_request.query.sub + "', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");");
 	if(http_request.query.hasOwnProperty('thread'))
-		print("loadThread('http://" + webIni.HostName + ":" + webIni.HTTPPort + "/forum-async.ssjs', '" + http_request.query.sub + "', '" + http_request.query.thread + "', " + false + ");");
+		print("loadThread('http://" + system.inet_addr + ":" + webIni.HTTPPort + "/forum-async.ssjs', '" + http_request.query.sub + "', '" + http_request.query.thread + "', " + false + ");");
 	print("</script>");
 }
\ No newline at end of file