a few litte things that would be good.
Dont print ip in url so that i can mod it to only scan port like
then it checks the remote_addr and prints out.
now it gives ip which gives the end user ability to scan others, which is a unwatned effect.
2nd
for ipv6
have it check the inputet add is ipv6
if so add []
bez to define a port in ipv6 it has to be in []
like 2001:470:dc100::100
is a valid ipv6
to define a port in there has to be like this [2001:470:dc46::2]:port
now when enter a straigt v6 it just adds the : at the end which is not a port but rather a new address lengt.