Check for open ports localhost only, small fixes