Click here to Skip to main content
15,895,084 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 Score

Client-server 

12 Feb 2016 by lakhdarr
Different ways to export a grid contents to different file formats csv, excel, pdf using ASP MVC
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...
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
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...
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...
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...
13 Jan 2024 by pravin kumar sinha
Python GUI non-blocking with timer events, 'select' API, Blender example
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...
6 Jan 2016 by CPallini
Do you mean something like jabberd[^]?
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...
19 Oct 2016 by Brady Kelly
I can't think of many at all, except that a WCF service is more complex, and thus risky, and you have to manage your own hosting, where IIS is designed to host, and has years more in the field than WCF.My client wanted to use WCF as a web service for his users, people on laptops, to perform...
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...
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.
7 Feb 2017 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.
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...
10 Sep 2017 by Richard MacCutchan
We told you the answer yesterday. Please do not repost the same question.
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...
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...
6 Apr 2016 by Zahid Khan Kakar
Deploy your Windows Application in Online Mode
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...
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...
2 Dec 2015 by Sergey Alexandrovich Kryukov
You are not designing working infrastructure, you are designing handcuffs. Who would be interested to help you? And your co-workers, first of all, should be interested in company work. First things to do for you is to review the design of the business and company policies, but this would be...
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...
13 Jan 2016 by DeDenker
For non blocking TCP communication look at Gevent module
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.
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
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...
8 May 2016 by Garth J Lancaster
I hate the way you havnt commented your code, and you've jumbled up your input and output scanners & streams etc of your code for your client and server - makes it real hard to follow !Are you in effect asking about this code p.println("test.txt"); p.flush(); ...
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...
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...
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() ...
21 Jan 2020 by Shobuj.Akash
Currently I'm building a project where I can send Massage to specific connected clients. But when ever I send data it goes to all of the connected client.I've reviewed this code but still confuse how to implement the solution :( .Server Code While True Dim incoming As TcpClient =...
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...
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...
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.
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...
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...
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 =...
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: ...
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...
19 May 2017 by Member 13188172
I have made a client server application using network stream for sending and receiving messages but whenever i send a message using a client the server sends the message back to that client, but i want to send that message further to some other client. i.e. what is happening: Client a ------>...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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. ...
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[^]
1 Jul 2019 by dj4400
Hi, I am building a little UDP server client app. in c++ In all the examples on the net that i saw, the server is 1st of all receives from the client and then sends and the client 1st of all sends to the server and then receives from it. I want the server to 1st of all send and the client to...
1 Jul 2019 by Gerry Schmitz
The usual protocol is that the "master" sends first, and the slaves respond. A slave never sends without being asked; it waits for a send request. When the master starts, it polls available addresses (typically a subset within 1-31; 1-255; etc), with "address 0" for a general broadcast to all...
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.
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
7 Mar 2022 by boabaloo
I can successfully connect to the server using this CMD command: java TCPAsk time.nist.gov 13 My code is supposed to print the date and time but nothing is being returned, all I get is a few lines of empty space. I cant attach an image...
7 Mar 2022 by Richard MacCutchan
I just tried this and the response was as follows: 59645 22-03-07 19:52:59 57 0 0 711.4 UTC(NIST) * Note, you do not need to send any data to the server, just receive from it.
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.
28 Nov 2022 by CPallini
I would suggest you starting from Use Sockets to send and receive data over TCP - .NET | Microsoft Learn[^].
26 Jan 2016 by Chris Copeland
A managed library to launch and/or connect to the Tor network for SOCKS5 communications, and for middle-man proxy hosting.
24 Sep 2018 by David Maw
A working example of a Windows client and server using TLS over TCP.
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
13 Mar 2016 by Maxim Komlev
Experiment of Video Transcoding and Streaming on the fly to all major internet browsers (just to video tag) without Flash or Silverlight
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.
13 Nov 2017 by Habibur Rony
This article mainly focusses on the basic configuration and setup Vue.js with Dot NET Core. There are basic discussions of Web-pack, Grunt or Gulp, Type-Script, Babel, Axios and Web-pack Task Runner. There are short descriptions of Package Installer like NPM, Bower and Yarn.
6 Apr 2018 by CyberMakarov007
SQL table dependency with entity framework in WPF
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...
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...
19 Oct 2016 by Harpreet05Kaur
HI,Please refer to the following link, It will tell:1. Difference between them.2. Situations when to use wcf and when to use web api.Both technologies are from MS and are meant for different situations as per requirement : c# - Whats the difference between WCF Web API and ASP.NET...
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....
10 Jan 2016 by GopalTiwari
It will give information about Installing and Configuring Apache Kafka & Zookeeper for Windows Operating System
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...
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...
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..!