Socket server in metro and socket client in desktop RRS feed

  • Question

  • I need a socket server in Metro that listens to a socket from desktop exe.

    Tried with streamsocketserver in metro and socket class in desktop app but the connection is not establishing.

    Tried with messagewebsocket in metro and httplistener in desktop and it is working. I want the reverse. Server in metro and client in desktop.

    Both will be in localhost and there will be only one client.

    What's the best way to implement this.

    This is only for debugging and will not go in store. --Many thanks

    Thursday, December 12, 2013 11:20 AM

All replies

  • This is not a supported scenario and cannot work generally. There is no recommended implementation, but I'd expect opening a StreamSocketListener would work if you make sure the Windows Store app doesn't suspend (running in the debugger should do this). You will also need to enable loopback. See http://msdn.microsoft.com/en-us/library/windows/apps/hh780593.aspx
    Thursday, December 12, 2013 3:46 PM
  • What should be the client socket class in desktop? Socket class will work?
    Friday, December 13, 2013 6:17 AM
  • How to implement sockets in a desktop app will depend on the framework used to write the desktop app.


    Friday, December 13, 2013 11:18 PM
  • c# or c++ are fine. Which socket class in desktop should be used to connect to streamsocketlistener? 

    Is there a way streamsocketlistener listen to a websocket site than to an IP/Port?

    Wednesday, December 18, 2013 9:11 AM
  • For help with desktop apps please post in the appropriate forum for the desktop framework you are using.

    A StreamSocketListener listens to a TCP stream, not a websocket.


    Wednesday, December 18, 2013 7:50 PM