diff --git a/web/root/ecwebv3/lightirc/lightirc.xjs b/web/root/ecwebv3/lightirc/lightirc.xjs
index 45f0a1ebb1f8e43af65c83083681966228791ef6..af78459b9e6e91f1153b2c31468fccf07d2920d1 100644
--- a/web/root/ecwebv3/lightirc/lightirc.xjs
+++ b/web/root/ecwebv3/lightirc/lightirc.xjs
@@ -13,7 +13,7 @@
 <html>
 
 <head>
-<script type="text/javascript" src="http://<?xjs write(webIni.HostName); ?>:<?xjs write(webIni.HTTPPort); ?>/lightirc/swfobject.js"></script>
+<script type="text/javascript" src="http://<?xjs write(system.inet_addr); ?>:<?xjs write(webIni.HTTPPort); ?>/lightirc/swfobject.js"></script>
 </head>
 
 <body>
@@ -27,7 +27,7 @@ var params = {
 	nick : '<?xjs write(user.alias); ?>',
 	autojoin : '#bbs'
 };
-swfobject.embedSWF('http://<?xjs write(webIni.HostName); ?>:<?xjs write(webIni.HTTPPort); ?>/lightirc/lightIRC.swf', 'lightIRC', '730', '420', '9.0.0', null, params, null);
+swfobject.embedSWF('http://<?xjs write(system.inet_addr); ?>:<?xjs write(webIni.HTTPPort); ?>/lightirc/lightIRC.swf', 'lightIRC', '730', '420', '9.0.0', null, params, null);
 </script>
 </body>