Extract port from server name only if ctp is off.

After ctp program is run it was still trying to extract port number
from the server name (in the form of server:port). This is useless
because in ctp program I want to set custom server and custom port.

In other words setting port in ctp program was ignored.
Added more detailed error log after connection.

Before it was not really helpful to see "cant connect to X" because
it was unknown on which port it was trying to connect. Knowing more
details about proxy connection is good.
Fixed typo.