Click here to Skip to main content
15,910,009 members
Everything / Client-server

Client-server

client-server

Great Reads

by lakhdarr
Different ways to export a grid contents to different file formats csv, excel, pdf using ASP MVC
by pravin kumar sinha
Python GUI non-blocking with timer events, 'select' API, Blender example
by discompsys
An easy way to allow local objects with direct access to invoke methods on a class, but prevent them from being part of the public API, for remote invocation.
by Zahid Khan Kakar
Deploy your Windows Application in Online Mode

Latest Articles

by pravin kumar sinha
Python GUI non-blocking with timer events, 'select' API, Blender example
by Michael Janulaitis
Provides an introduction to the open source client/server DotNetOpenServer SDK project for Android, iOS, Windows Phone, Windows, Mac and Java Platforms
by David Maw
A working example of a Windows client and server using TLS over TCP.
by CyberMakarov007
SQL table dependency with entity framework in WPF

All Articles

Sort by Title

Client-server 

24 Mar 2017 by User 13050660
Hi,I'm making a TCP Server/Client chat program. I have two clients. The problem I'm having is that I can send one message from one of the clients, but then consecutive messages from the same client get sent to the server, but the server doesn't pass them on until I send a message from the...
24 Sep 2018 by David Maw
A working example of a Windows client and server using TLS over TCP.
28 Feb 2019 by Gyzmo
My application is a reverse to the normal "client Server" communications in that it needs to work in the reverse method. The normal client/server system works where the client will initiate a call to the server the server then responds. I need to have the server initiate the call to the client...
28 Feb 2019 by Patrice T
Quote: My application is a reverse to the normal "client Server" communications in that it needs to work in the reverse method. ... I should explain, the clients will be industrial print engines where the operator will turn them on and then run the software on a PC to communicate with them. The...
12 Feb 2016 by lakhdarr
Different ways to export a grid contents to different file formats csv, excel, pdf using ASP MVC
7 Apr 2022 by RHBrooks
I'm looking for guidance for the best methodology for the following scenario; I want to send messages from multiple locations (classes) and threads within the main program. I need a class or DLL that can receive these messages, act upon them,...
7 Apr 2022 by Greg Utas
I develop in C++, not C#, so I don't know if there's any C#-specific thing that you could use. So what if message queueing is "old"? Queueing messages on threads is a common approach within an .exe. You could also use UDP if your messages...
7 Apr 2022 by Mike Hankey
You may want to look at EventAggregator[^]. It's a publish/subscribe framework that I use in a WPF application I'm developing but it may be available in other frameworks also.
6 Dec 2016 by Member 12369145
Hi,I am new to this kind of asking question.First let me explain about how application works.This application has single server and multiple clients (more than 750 to 1000 clients), here client refers to computer. When we place a file(approximately 2 to 3 GB) in server and informs...
6 Dec 2016 by KarstenK
Best is some distributed download to minimize duration. Subservers or Torrents in some tree strucure should be the best architecture.Try your luck by exploring the libtorrent examples. It shouldnt be to hard to find the problems.
20 Dec 2015 by venkat28vk
Hi,I have developed a server and client code using tcp/ip protocol, which enables the client to send data to server and the same data is received from server to client. I would like to know how to keep the client open all the time, same like as server. I should not keep executing the...
18 Dec 2015 by Garth J Lancaster
surely that depends on YOU - what you you want/need to achieve in the client ? (we dont know your requirements because you havnt stated any)instead of str_echo(ls); you could do for (; ; ){ str_echo(ls); sleep(60 * 1000); // for example to sleep 1 minute between loops...
18 Feb 2022 by payam purchi
can i get client is offline or online in new thread in server side ? it's mean when a client connected to my server i want check in new thread that The client is still online or not . What I have tried: NetworkStream client.getstram...
4 Jan 2016 by Mr. Mahesh Patel
Hello Expert,I have deployed one WCF self-hosted service on Client PC and URL looks like - "http://localhost:[port]/myservice"I have deployed one web application on server with SSL and url looks like - "httpS://abc.com/index.html"Now I am trying to call the localhost service from...
6 Apr 2016 by Zahid Khan Kakar
Deploy your Windows Application in Online Mode
22 Aug 2016 by MyOldAccount
INTRODUCTION:I have studied the MSDN examples for blocking TCP server[^] and blocking TCP client[^].I wanted to try something simple, in view of modifying those examples to create simple chat application.I have tried to implement the following, for a start:send message from...
22 Aug 2016 by Jochen Arndt
You are using blocking sockets. When receiving and there are no more data, the recv function will block (not return) until new data are received or the connection is closed (as triggered with your third try).The simplest method to avoid this is using some kind of indication that all current...
9 Sep 2020 by Member 14934537
I have a project which a server will communicate with multiclients. The program is working fine when sever and clients connect in same network (same ip address and same port). However, I need to change my server ip address every single time I...
9 Sep 2020 by Chris Copeland
If you're switching between networks then you can absolutely expect your IP address to be continually changing. Traditionally a server wouldn't be moving around, it would sit on a network somewhere statically and the network provider can provide...
17 Jul 2018 by Drekel
am trying to communicate between two client frequently (ClientA. Server. ClientB) If ClientA send a message it goes to server then server sends it back to ClientA instead of sending that message to ClientB. same thing with ClientB both client can't communicate with each other but can connect to...
8 May 2019 by nrjtrn
I am hitting the post request to WCF service end point from my angular 7 application. On localhost, the hit goes to WCF server but when i deploy the WCF application on server then Method 405 not allowed Cors preflight error is showing in my console. Even cors are enabled in WCF application. ...
15 Oct 2015 by amir.nazarizadeh
HiI have a simple chat program in c# with a client and a serverwhen I start the program it give me warning with this message:Additional information: Could not connect to net.tcp://localhost:1234/Chat/ChatService. The connection attempt lasted for a time span of 00:00:02.0986369. TCP...
15 Oct 2015 by Patrice T
Quote:what's wrong?The error message tells you What is the problemQuote:Could not connect to net.tcp://localhost:1234/Chat/ChatService.and whyQuote:No connection could be made because the target machine actively refused it 127.0.0.1:1234.Do you have a firewall ?Have you allowed...
16 Jul 2016 by Member 12638643
import java.net.Socket;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.IOException;/** * A ChatConnection implements a connection between the chat server and a * single chat client. The connection will run as a separate Thread. */public...
16 Jul 2016 by OriginalGriff
What you have posted is a framework that presumably your tutor provided - it's full of helpful bits such as:// Get the input stream from our socket/*** Enter your code Here */which are telling you exactly what to do, and where to do it.This is your homework: you are expected to think...
5 Oct 2017 by Baburc
Hai I am creating an app which has main app and client app. In my app I want to add Contact numbers. When I click on a contact second windows appears where I can input some details. After that when I click send button the records should send to that phone number of client app. I have...
5 Jun 2017 by David Crow
What exactly are you having trouble with: adding contact numbers, clicking on an item (button), populating a database, communicating with another device? Without more information, I'd say you are wanting to send a vCard from one device to another. Is that even close?
5 Oct 2017 by nawazish12khan
Step1: Setup Web Server where you store your Data using webservices. Step2: You gave registration option to every client by ther mobile number (that is your unique ID) and store data on web server database in tblRegistration. Step3: When any client send msg save data on server with detail...
26 Apr 2016 by Member 12478311
Can anyone explain clearly how to create WCF Service and also how to create client to consume the created WCF Service..?What I have tried:I am beginner and I need help...Thank You..!
26 Apr 2016 by CHill60
This article is a walkthrough designed for beginners...Walkthrough: Creating a simple WCF Service in Windows Forms[^]It includes steps on testing it and accessing it
21 Jan 2019 by Member 14010024
I have a windows 10 64 bit and i installed a visual studio 2015 and crystal report ver 13.0.23 for visual studio 2015 and crysatl Report run time 64 bit . but when make a setup package on client computer the program is running but the report when displayed make an error the type initiallizer...
10 May 2020 by Jassom
try this: Install (CRRuntime_32bit_13_0_4.msi) on client machine. It worked for me, and it's good if you setup your App as 32bit.
13 May 2016 by Arthi 12521509
I'am working on WinSock Sockets Programming with C#. I'm basically making a Client/Server application sending an data between client and the server. I'm using winsock control in c#.I get the error when I try sending an data between client and the server. My server listens for connections on...
13 May 2016 by George Jonsson
You can find pretty good examples on MSDN: Socket Code Examples[^]You will find examples for both synchronous and asynchronous servers and clients.Pretty soon you will probably find that you would like to make the server part asynchronous.Note: Instead of using your own variable to...
4 May 2019 by Michael Janulaitis
Provides an introduction to the open source client/server DotNetOpenServer SDK project for Android, iOS, Windows Phone, Windows, Mac and Java Platforms
29 Mar 2022 by salam_verdim_alana_panyatkasi_olana
Hi there, I am writing service consume where my consume service make the get request to given endpoint, but there is a problem, which I can not understand that how can I solve it? following link you can read documentation which I develop right...
24 Feb 2017 by CuriousC#
Hello,I'm writing a remote client/server application in C# Windows.Forms,I have a client that shows the "stream" in pictures of the running server in a picturebox located on the client form.When i click on the image viewed in the picturebox on client side, i want it to click on that...
24 Feb 2017 by CuriousC#
Well i got a solution: the code i used for the mouse click did not work correctly, i wrote something easy to simulate the mouseclick and now it works perfect.Thanks for the effort Philippe Mori.
4 Apr 2021 by Member 15127345
I have a client-server web app using Java and JavaScript. I would like to call a path "delete" from a method deleteBook using queryParam. I've searched the Internet, but I'm not sure how to do this. The called method was supposed to delete a book...
18 Aug 2021 by Member 8677306
I'm working on a C# winforms application that would simulate n-number of client socket connections to an asynchronous socket server. The form would have a NumericUpDown control where the user could select from 1 to 20 clients. And when executed...
18 Aug 2021 by OriginalGriff
Just create a loop, and inside the loop create a separate thread or task for each client. In the thread code, create the socket, connect it, and do whatever you have to with it. This is probably a good starting place as it allows progress...
16 Aug 2021 by Member 8677306
I'm writing an application in C# where I need to communicate with appx 15 TCP/IP based barcode scanners. The scanners are set up as servers. I need a client that will listen and receive data from the servers as barcodes are scanned. There will...
16 Aug 2021 by Greg Utas
I agree with Richard's suggestion. What you're calling a client is, in effect, a server, because it is presumably providing a service, such as updating a database. Even if it sends no application-level response to the scanners, the fact that TCP...
4 Sep 2021 by Eugene Rutsito
I'm developing a server-side project in c#. The project is like so, it has 'Admin', 'Security', and 'Communicator' which are all independent projects (class libraries). The Admin module handles all the client-side requests. If the request comes...
4 Sep 2021 by OriginalGriff
Surely, Admin references Security, which has a report-back mechanism? And Security references Communicator which should report back to it? OOPs principles means that Admin "knows about" Security (because it has to to do it's job) but Security...
25 Apr 2018 by vivek2414
I am trying to write a C++ DLL that would run on VMWare server and would return the client (terminal user) Name and IP Address. I am using WTSQuerySessionInformation to fetch the ClientName & IP Address. Is WTSQuerySessionInformation the right function, or is there a different way to solve...
4 Dec 2022 by Member 14623639
I have searched everywhere but couldn't find as they are all answering to send message to all clients. What I want to achieve is multiple clients request to server to request data from another client and other client sends data to server telling...
15 Jun 2021 by Vinay K M 2021
I have a scenario, where in an external application's client will be sending a soap message to SoapUI tool and the SoapUI tool should send a automated response message(multiple responses) back to the external application. Can this auto response...
25 Feb 2016 by Member 11894977
I have a server with dynamic external IP-address. How to create a connection on the internet ? After that, the client, knowing external IP-address, has to connect.What I have tried:UPnPNAT upnpnat = new UPnPNAT(); Socket s = new Socket(AddressFamily.InterNetwork,...
25 Feb 2016 by ZurdoDev
The client will have to know the address. I suggest you change your dynamic one for a static one. Otherwise, put the ip address in a config file and then update that each time it changes so you don't have to recompile the code every time.
25 Feb 2016 by Jochen Arndt
Besides the solution posted by Ryan you can use a Dynamic DNS - Wikipedia, the free encyclopedia[^] service. Most internet routers and modems provide an option to pass their dynamic IP address to such a service when it has changed.
8 Dec 2015 by Muhammad Azym
I do apologize if the question is weird.I am developing a web framework in django. What I need to do is I want to get data from tables using datetime picker and need to send it to socket server over the network using tcp/ip. I am able to display data on the webpage but on the second page I...
13 Jan 2016 by DeDenker
For non blocking TCP communication look at Gevent module
23 Aug 2019 by Muhammad Afaq Riaz
I am working with sockets. I have written code for python server which will receive data from a c# client and will display it in the console. The data may be an image or a text. Now problem is that how to differentiate between image and text because text must be displayed in the console and...
23 Aug 2019 by Richard MacCutchan
You need to add some extra data to each message that identifies what is being sent - text or image.
18 Jun 2019 by Member 14505231
i have a project that use pdf, client must can read the pdf in database server.. or can i upload just string (the directory of pdf) to database in computer server, then client just read the directory in the database, but how? What I have tried: Sub tampilpdf() connDB() Try...
18 Jun 2019 by Maciej Los
Check this: MySQL :: MySQL Connector/NET Developer Guide :: 5.9.2 Writing a File to the Database[^] MySQL :: MySQL Connector/NET Developer Guide :: 5.9.3 Reading a BLOB from the Database to a File on Disk[^]
29 Apr 2016 by Member 12478311
I created Client(Windows) and Server(Console...and trying to make connection between these two and send message from client to server.The following is the Error:InvalidOperationException was unhandled.An unhandled exception of type 'System.InvalidOperationException' occurred in...
29 Apr 2016 by George Jonsson
There are some good "getting-started" examples on MSDN.Socket Code Examples[^]It is better that you start looking there and kind of forget about the code you have written so far.Especially look in the the Asynchronous Server Socket Example.(This is what Sergey is talking about)The...
10 Sep 2017 by Richard MacCutchan
We told you the answer yesterday. Please do not repost the same question.
10 May 2016 by Member 12478311
I have 2 Windows Forms Applications with one form in each application.now I want to open form1 in application2 from form1 in application1(I am trying with button click...)What I have tried:Created 2 Windows Forms Application
10 May 2016 by Sergey Alexandrovich Kryukov
Don't. Processes are isolated and should remain isolated. It's possible to achieve on the base of Windows messages, but this approach is too Windows-specific, contradicts to more important principles of OS architecture is is generally so bad due to other reasons, so I don't even want to discuss...
25 Feb 2017 by DiamondKid
I am developing a two-player Quiz bee game LAN-Based. The players takes turn one at a time. A player will click a button to pick a question. On the first two turns, sending and receiving of data are working but on the third turn the other player didn't receive the incoming data.Anyone can...
25 Feb 2017 by Graeme_Grant
Apps that appear "locked up" is usually an indication that a long running task is active on the UI thread blocking the UI message pipe. If you are indeed using Sam's code, then the UDP tasks are on a sperate thread. To Debug this, when there is a long pause/"app appears locked" event, hit...
8 Nov 2015 by raypetriut
hello i want to make an application with delphi in server using indy and this application can receive some data (records) from client sides . my questions are : 1 - how can i make an application in server side it can receive some data (records) from several clients using indy please i need...
27 Oct 2021 by User 15041314
As you can see, in my service layer this method send post request like client to the server using Spring Boot WebClient framework, but I have getting a problem, which as you can see my method accept 4 params, which you see and I want to send...
16 Nov 2017 by Member 13496560
My projects works fine using local host loop back 127.0.0.1 on my computer only. but how to use this on two different computers? and how to do the configuration settings for these computers.And how to connect these computers with each other,i means is there necessary to have a router or the...
15 Nov 2017 by David_Wimbley
Quote: ,i means is there necessary to have a router or the ethernet cable? Im not being sarcastic but I can't tell if this is a real question or a question made out of frustration. But in short, computers have to be connected in some way shape or form in order to communicate with each other....
28 Nov 2022 by Member 15680837
I want to connect two different computers one as the client and the other as a server by C# code any one help me? What I have tried: I want to connect two different computers one as the client and the other as a server by C# code any one help me?
28 Nov 2022 by CPallini
I would suggest you starting from Use Sockets to send and receive data over TCP - .NET | Microsoft Learn[^].
21 Jan 2020 by Csabatom
Server starts up, and client connects, it is multithreaded, and the main point is to broadcast the message, that it got fro the server. However, when a client disconnects(gets forcibly closed), it still tries to run the ClientListener method(underlined) SERVER CODE: using System; using...
19 Nov 2019 by RickZeeland
See example here, the client.Close(); must be outside the While loop: TcpListener Class (System.Net.Sockets) | Microsoft Docs[^] With a While loop like this: // Loop to receive all the data sent by the client. while((i = stream.Read(bytes, 0, bytes.Length))!=0) { ...
21 Jan 2020 by Doug- VisualBasic VB.NET
When your client disconnects you should get a disconnect event on your server. Use it to terminate the the thread of the client on the server. Then you will not be trying to access it again until it reconnects. However, I am not sure the client disconnect is causing the error. In your while...
6 Jan 2016 by kubibay
Hi,We want to build a mobile chat application. So we will need an xmpp c# host application.Do you have any suggestions? I know agsxmpp-sdk but it is not free.
6 Jan 2016 by CPallini
Do you mean something like jabberd[^]?
15 May 2018 by Member 13130955
Hi, I want to pass message back and forth on client and server which are on different scenes, how can I do that in Unity?** Following is my Scenario:- I have 5 scenes- 1. BaseScene (2) OfflineScene (3) OnlineScene (4) ClientOnline (5) ServerOnline. All these scenes have button having...
10 Aug 2016 by Aless Alessio
Design your solution and code your classes as loosely-coupled objects. Learn how to use MOQ and Ninject for mocking your Service and injecting it at runtime with Ninject.
27 Apr 2017 by GeorgeZv
I stated learning C language and now I'm trying to get deal with WinSockets. I have to write Server and Client application using Multiplexing and non-blocking sockets (in prespective it will be a chat but now I just want to make it finally work with simple message exchange). What I have tried: ...
27 Apr 2017 by Patrice T
Quote: I also don't understand why I receive a few messages in server and client part (there is a random symbol everytime in client part, don't also understand why). Why? When you don't understand what your code is doing or why it does what it does, the answer is debugger. Use the debugger to...
3 May 2017 by GeorgeZv
Hello everybody, I'm new in C (as in programming) and I'm studying Windows Sockets. I wanna write simple chat between server and 2 clients (perfectly server must send messages for everybody, client only for server) and I stucked with a problem. What I have tried: From **server** part I can't...
7 Apr 2016 by veena nair
I wrote a Python program in python 3.4.3 But it is not showing any output. how can i get outpu please helpWhat I have tried:import socketmysock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)mysock.connect(("www.py4inf.com",80))mysock.send("GET http://www.py4inf.com/code/romeo.txt...
7 Apr 2016 by Richard MacCutchan
13 Jan 2024 by pravin kumar sinha
Python GUI non-blocking with timer events, 'select' API, Blender example
18 Jan 2019 by HobbyProggy
Hi there, to enhance my current Software i wanted to switch the datalogic to a server application that has faster connection to the database and is able to cache data. So far i wrote a working server app and a client that connects to this server. Currently i am experiencing a performance issue...
18 Jan 2019 by Rob Philpott
You've got an interesting mix of different types of async code in there! And I can see unguarded use of collection cross-thread etc. But this: while(!_clientStream.DataAvailable) { } looks like a very tight loop, which is likely to get your CPU fan attempting take off. At the very least slap...
18 Oct 2016 by spellsleeper
I tried to upload a document to a document server with Jersey. But curiously I can't set a header value. If I set the value as query param(server supports it) all works fine. But I wan't set it in the header. Here is my Java Code: Client client =ClientBuilder.newClient() ...
5 Mar 2019 by Member 13995616
This is my code for web-server.cpp file #include #include #include #include #include #include #include #include #include #include #include #include ...
4 Mar 2019 by Rick York
Try adjust the code around the call to bind to something like this : fprintf( stdout, "attempting bind to %08X\n", pi->ai_addr ); int rv = bind( sock, p->ai_addr, p->ai_addrlen ); if( rv != 0 ) { close(sock); auto ev = WSAGetLastError(); // or however else you can...
27 Feb 2020 by Kiran Patel
Hello, i am trying to publish data to Redis as written code below, but don't know why i didn't get data to client side.. As even i am getting data to client when i am Publishing data with same channel-name from CLI or Command window in Redis...
27 Feb 2020 by Richard MacCutchan
catch (Exception ex) {} That is not going to help you. If an exception occurs you are just ignoring it. At the very least you should show the actual details from the caught exception.
14 Apr 2017 by Hitmanlima
I send the image to the server, I noticed that it is receiving the image in several packages, I tried to join the buffers, but it is not working, if I put the image in the picturebox without joining the buffers the image is incomplete My project consists of several clients and a server that...
14 Apr 2017 by Hitmanlima
My solution is: Sending Img Dim netStream As NetworkStream Dim Formatter As IFormatter = New BinaryFormatter() Formatter.Serialize(netStream, img) Receive Img Dim netStream As NetworkStream Dim Formatter As IFormatter = New BinaryFormatter() Dim img As Image =...
3 Sep 2015 by Lalyka
I have this code that will get files on client side and slice the file and send it to server (handler) and there it will append the received slices and append them together and save them in a folder.THIS IS MY QUESTION: what if I want to save the received blobs on server side in a string ? how...
3 Sep 2015 by OriginalGriff
If what you are being sent is binary data, then you can;t directly store it in a string, as a string is a collection of characters - and converting binary data to characters rarely means you can convert them back again (as not all character codes are valid depending on the character set being...
10 Jan 2016 by GopalTiwari
It will give information about Installing and Configuring Apache Kafka & Zookeeper for Windows Operating System
1 Dec 2016 by Chandan_srivastava
I am writing a client server application in C++. These applications talk to each other using TCP sockets. I want to use two application protocols to communicate. One binary and one text based protocol. There are two ways. I can use two connections for each protocol or can use the same connection...
1 Dec 2016 by Jochen Arndt
If you use a single connection for two protocols you would have strictly speaking only one protocol because your client has to decide which kind of data handling has to be used and this decision is defined by the protocol.If the two protocols are not standard ones but defined by you just...
3 Jun 2018 by Bill Colias
I'm designing an embedded web server and want the browser to come up with an initial page upon connection. We've all seen this happen at places like airports, hotels or Starbucks. How can I do the same thing? I can trap for when a DHCP completes, but what should I do then? Should I just send...