Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: While button is clicked Pin
CHill6020-Apr-16 11:01
mveCHill6020-Apr-16 11:01 
GeneralRe: While button is clicked Pin
tvks27-Apr-16 2:55
tvks27-Apr-16 2:55 
QuestionReflection and "security" Pin
Super Lloyd19-Apr-16 7:17
Super Lloyd19-Apr-16 7:17 
QuestionLinkButton isnt recognized properly Pin
Collectoons19-Apr-16 4:19
Collectoons19-Apr-16 4:19 
SuggestionRe: LinkButton isnt recognized properly Pin
Richard MacCutchan19-Apr-16 5:09
mveRichard MacCutchan19-Apr-16 5:09 
GeneralRe: LinkButton isnt recognized properly Pin
Collectoons19-Apr-16 5:16
Collectoons19-Apr-16 5:16 
GeneralRe: LinkButton isnt recognized properly Pin
Richard MacCutchan19-Apr-16 5:26
mveRichard MacCutchan19-Apr-16 5:26 
AnswerRe: LinkButton isnt recognized properly Pin
Richard Deeming19-Apr-16 5:56
mveRichard Deeming19-Apr-16 5:56 
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 

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.