diff --git a/wol/scripts/sendmac.sh b/wol/scripts/sendmac.sh
index ce6ca56c80657e82ff62baf04cba9b3fd99d4098..9a8d20610e27d00d47ed6a10692ae011c68ceb2c 100755
--- a/wol/scripts/sendmac.sh
+++ b/wol/scripts/sendmac.sh
@@ -16,5 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1)
 subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3)
 echo "$1" | netcat $subnet.52 9999
+netcat -l $IP 9999
diff --git a/wol/scripts/wakeonlanservice.sh b/wol/scripts/wakeonlanservice.sh
index 1c2949d9c8b7bc8985d3f7d7327a61b95e241cc8..97889da3bd212086c60d0894509e19135af2e6dd 100755
--- a/wol/scripts/wakeonlanservice.sh
+++ b/wol/scripts/wakeonlanservice.sh
@@ -18,14 +18,15 @@
 
 IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1)
 broadcast=$(ip a | awk '/inet.*eth1/ {print $4}' | cut -d / -f 1)
+subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3)
 netcat -k -l $IP 9999 | \
     while read MAC
     do
         if [ $(echo "$MAC" | egrep -c "^([0-9a-f]{2}:?){6}$") -eq 1 ]
         then
             wakeonlan -i $broadcast "$MAC"
+            bootedip=`arp | grep "$MAC" | awk '{print $3}'`
+            echo "$bootedip" | netcat $subnet.51 9999
         fi
     done
 
-
-