2

I'm trying to send data between Windows Phone 8.1 app and my PC. How to do this? Is there any other way to connect with my PC? I found this.

But I can't add System.Net.Sockets to my project. Any working example will be a huge help.

Tharif
  • 13,794
  • 9
  • 55
  • 77
Adrian Ramzes
  • 51
  • 1
  • 7

1 Answers1

1

System.Net.Sockets and the docs you linked are for Windows Phone Silverlight apps. For a Windows Phone Runtime app you'll use Windows.Networking.Sockets.StreamSocket (TCP) or Windows.Networking.Sockets.DatagramSocket (UDP).

See How to connect with a stream socket and How to connect with a datagram socket on MSDN for details.

Rob Caplan - MSFT
  • 21,714
  • 3
  • 32
  • 54