A simple example of a service-oriented client-server application written using OWIN
Linux | Windows |
---|---|
-
Build
HelloOwin.sln
, which should restore / download any missing NuGet packages. -
Run
HelloOwinServer.exe
(use default values, or /? to see cmd line options) -
Run
HelloOwinClient.exe
(use default values, or /? to see cmd line options)
If the server starts up ok, then you should see console messages similar to this:
Starting Owin server at Address = http://localhost:12345 UseJson = True
Press any key to exit.
If everything works ok for client, then you will see console messages similar to this.
Hello, Jorgen!
Press any key to exit.
If the server is not running, or if the client is trying to connect to a different address than the server is listenting to, then you will see error messages on the console window similar to this.
Error starting HelloOwinClient.exe
System.AggregateException: One or more errors occurred.
---> System.Net.WebException: Unable to connect to the remote server
---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
127.0.0.1:54321