Fix for Windows

I think that the connect when ip is given isn't woring! need further
testing!