Error with transfer files

I so have understood that Spark transfers files so:

In the beginning tries p2p if it is impossible transfers through a server.

Mistake such:

At me two networks, local and the Internet, Spark defines IP local and because of it

does not transfer p2p, correct it please.