Re factored bootstrap.
Scan port before connection in bootstrap.