diff --git a/app/network/views.py b/app/network/views.py
index 258c680e67a0b252e375e177d61a986f47ec2aeb..a4e8da9509ba135dfe6df157ebfeeacfea70334f 100644
--- a/app/network/views.py
+++ b/app/network/views.py
@@ -415,9 +415,9 @@ def retrieve_ips(subnet, prefix):
         data = {'ips': [], 'first': '', 'last': ''}
     else:
         hosts = [str(ip) for ip in address.hosts()]
-        if len(hosts) > 15:
-            first = hosts[9]
-            last = hosts[-5]
+        if len(hosts) > 17:
+            first = hosts[10]
+            last = hosts[-6]
         else:
             first = hosts[0]
             last = hosts[-1]