Click here to Skip to main content
15,844,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: LinkButton isnt recognized properly Pin
Collectoons19-Apr-16 7:03
Collectoons19-Apr-16 7:03 
GeneralRe: LinkButton isnt recognized properly Pin
Richard Deeming19-Apr-16 7:06
mveRichard Deeming19-Apr-16 7:06 
GeneralRe: LinkButton isnt recognized properly Pin
Collectoons19-Apr-16 7:08
Collectoons19-Apr-16 7:08 
QuestionError Starting Windows Service Pin
Member 1098552419-Apr-16 3:52
Member 1098552419-Apr-16 3:52 
AnswerRe: Error Starting Windows Service Pin
Eddy Vluggen19-Apr-16 3:57
professionalEddy Vluggen19-Apr-16 3:57 
QuestionSocket Example UWP Pin
Miwin Solutions19-Apr-16 2:13
Miwin Solutions19-Apr-16 2:13 
AnswerRe: Socket Example UWP Pin
Jochen Arndt19-Apr-16 3:18
professionalJochen Arndt19-Apr-16 3:18 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 3:16
Miwin Solutions20-Apr-16 3:16 
Hi Jochen, thanks for your help!
I have had a little more success. In the project capabilities, I just had Private Networks (Client & Server) ticked. I have now ticked Internet (Client & Server), and my test project is now able to send & receive data on both the local & remote machine (to itself (ie app is client & server)). If I create 2 projects - one server, one client and run one on the Local & one on the Remote, it can now connect, Send & Receive in either direction.
If I then try to connect my Client to my Original Server (written Visual studio C# 2010), I can connect from my Client and send data (from Client to Server). I DO NOT however receive any data from my Server to my client. This is the same for either the Local or Remote machines.
I have just fired up Wireshark, and this does see the Server Sent client.
My Client Code is this:
C#
private async void CreateClient()
  {
      try
      {
          //Create the StreamSocket and establish a connection to the echo server.
          socket = new Windows.Networking.Sockets.StreamSocket();

          Windows.Networking.HostName serverHost = new Windows.Networking.HostName("192.168.1.19");//localhost");


          string serverPort = "7001";
          await socket.ConnectAsync(serverHost, serverPort);


          //Read data from the echo server.
          Stream streamIn = socket.InputStream.AsStreamForRead();
          streamIn.Flush();
          StreamReader reader = new StreamReader(streamIn);

          while (true)
          {
              //client receive
              string response = await reader.ReadLineAsync();
          }
      }
      catch (Exception e)
      {
          //Handle exception here.
      }
  }


Has anyone any suggestions?
Thanks
Mike
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 3:58
professionalJochen Arndt20-Apr-16 3:58 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 4:52
Miwin Solutions20-Apr-16 4:52 
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 4:59
professionalJochen Arndt20-Apr-16 4:59 
QuestionHow to login to a website programmatically using C#.? Pin
mbatra3119-Apr-16 0:58
mbatra3119-Apr-16 0:58 
AnswerRe: How to login to a website programmatically using C#.? Pin
Sascha Lefèvre19-Apr-16 1:06
professionalSascha Lefèvre19-Apr-16 1:06 
AnswerRe: How to login to a website programmatically using C#.? Pin
ChizI19-Apr-16 8:03
ChizI19-Apr-16 8:03 
QuestionVisual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 13:04
clapclap18-Apr-16 13:04 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 13:20
mveDave Kreskowiak18-Apr-16 13:20 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 13:22
clapclap18-Apr-16 13:22 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 13:29
mveDave Kreskowiak18-Apr-16 13:29 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Philippe Mori18-Apr-16 13:28
Philippe Mori18-Apr-16 13:28 
QuestionI can not log in in my own C# Project in my Compiuter Pin
Member 1228884018-Apr-16 6:20
Member 1228884018-Apr-16 6:20 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Simon_Whale18-Apr-16 6:32
Simon_Whale18-Apr-16 6:32 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Sascha Lefèvre18-Apr-16 6:33
professionalSascha Lefèvre18-Apr-16 6:33 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
OriginalGriff18-Apr-16 6:37
mveOriginalGriff18-Apr-16 6:37 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Patrice T18-Apr-16 6:41
mvePatrice T18-Apr-16 6:41 
QuestionRe: I can not log in in my own C# Project in my Compiuter Pin
Eddy Vluggen18-Apr-16 13:25
professionalEddy Vluggen18-Apr-16 13:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.