Socket and ServerSocket implementation

Need to re implement it via the accepted way Android demands.
Currently i get NetworkOnMainThread Exception