Click here to Skip to main content
15,883,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: LinkButton isnt recognized properly Pin
Collectoons19-Apr-16 6:03
Collectoons19-Apr-16 6:03 
GeneralRe: LinkButton isnt recognized properly Pin
Richard Deeming19-Apr-16 6:06
mveRichard Deeming19-Apr-16 6:06 
GeneralRe: LinkButton isnt recognized properly Pin
Collectoons19-Apr-16 6:08
Collectoons19-Apr-16 6:08 
QuestionError Starting Windows Service Pin
Member 1098552419-Apr-16 2:52
Member 1098552419-Apr-16 2:52 
AnswerRe: Error Starting Windows Service Pin
Eddy Vluggen19-Apr-16 2:57
professionalEddy Vluggen19-Apr-16 2:57 
QuestionSocket Example UWP Pin
Miwin Solutions19-Apr-16 1:13
Miwin Solutions19-Apr-16 1:13 
AnswerRe: Socket Example UWP Pin
Jochen Arndt19-Apr-16 2:18
professionalJochen Arndt19-Apr-16 2:18 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 2:16
Miwin Solutions20-Apr-16 2: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 2:58
professionalJochen Arndt20-Apr-16 2:58 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 3:52
Miwin Solutions20-Apr-16 3:52 
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 3:59
professionalJochen Arndt20-Apr-16 3:59 
QuestionHow to login to a website programmatically using C#.? Pin
mbatra3118-Apr-16 23:58
mbatra3118-Apr-16 23:58 
AnswerRe: How to login to a website programmatically using C#.? Pin
Sascha Lefèvre19-Apr-16 0:06
professionalSascha Lefèvre19-Apr-16 0:06 
AnswerRe: How to login to a website programmatically using C#.? Pin
ChizI19-Apr-16 7:03
ChizI19-Apr-16 7:03 
QuestionVisual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 12:04
clapclap18-Apr-16 12:04 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 12:20
mveDave Kreskowiak18-Apr-16 12:20 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 12:22
clapclap18-Apr-16 12:22 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 12:29
mveDave Kreskowiak18-Apr-16 12:29 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Philippe Mori18-Apr-16 12:28
Philippe Mori18-Apr-16 12:28 
QuestionI can not log in in my own C# Project in my Compiuter Pin
Member 1228884018-Apr-16 5:20
Member 1228884018-Apr-16 5:20 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Simon_Whale18-Apr-16 5:32
Simon_Whale18-Apr-16 5:32 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Sascha Lefèvre18-Apr-16 5:33
professionalSascha Lefèvre18-Apr-16 5:33 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
OriginalGriff18-Apr-16 5:37
mveOriginalGriff18-Apr-16 5:37 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Patrice T18-Apr-16 5:41
mvePatrice T18-Apr-16 5:41 
QuestionRe: I can not log in in my own C# Project in my Compiuter Pin
Eddy Vluggen18-Apr-16 12:25
professionalEddy Vluggen18-Apr-16 12: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.