Questions tagged [client-server]

DO NOT USE ALONE. The client-server model is a centralized model, in which a server performs a specialized service (such as HTTP, SMTP, etc.) for multiple clients on request. Use for issues regarding client server communication. Use with a appropriate language tag(eg: [python]).

The client-server centralized model is a model in which servers perform services for many clients, who request them, typically over a network. The client-server model contrasts with the peer-to-peer model.

Typically, a client-server interaction will work as such:

  1. The client connects to the server and issues a request. The request is formatted to any one of a number of protocols, depending on the server type.
  2. The server receives the request, and begins processing it. While this happens, the client is made to wait.
  3. The server sends the client a response which typically contains both a status (whether or not there was an error) and content (which is whatever the client asked for originally).
  4. The client or the server can either terminate the connection, or keep it alive for further requests.

Writing in a client-server domain presents a number of challenges:

  • Many, many clients may be requesting services at any given time. This issue is commonly faced by websites, and is typically solved with multiple layers of load-balancing and caching. Wikipedia's architecture is an example of this (albeit an unusually complex example).
  • Networks can easily become unreliable, and sessions can be terminated at any time.
  • Security can be an issue, due to security compromises like a Man In The Middle attack. Cryptography algorithms (like SSL) are widely deployed in various networking areas to combat this.
6508 questions
1
vote
2 answers

What is the best way to bind element? 'all attributes separately' or 'the entire component'

In client-server technology, what is the best way to bind element between 'binding all attributes separately' and 'the entire component' (or another way) ? For example in JSF : -
Jean-Charles
  • 1,690
  • 17
  • 28
1
vote
3 answers

java client server serialization problem

hi i am working on a client server programme with containing some special functions like sending private message, show online list etc. so i know i must use serialization and first i managed it but after a while a screwed up :) nowadays i spending…
quartaela
  • 2,579
  • 16
  • 63
  • 99
1
vote
1 answer

client can not connect from another ip

I wrote a simple client-server application. It works very well on my computer. but when my friend tries to connect my server he can't. I create the server on my computer with port 23. Here is the part of creating the server: public Server(int…
quartaela
  • 2,579
  • 16
  • 63
  • 99
1
vote
1 answer

accessing wcf client identity on service

After couples of WCF tutorials, I could develop a WCF client/Server application, both service and client applications are Windows Forms Application. I can call service using each client by specifying UserName and password. My WCF service…
TJP
  • 85
  • 1
  • 12
1
vote
1 answer

Client-server implementaion using tornado_http2 api

I am trying to implement a client-server using tornado_http2 api in python but server never receive messages from the client. I have checked that server is well started with this comm and and I had this result: (mmsx-TPjM8MGB-py3.9) xx@ITLP071: 7…
Le E
  • 11
  • 1
1
vote
1 answer

How to make a HTTP request from server to client using grpc in golang

Problem Statement I have a client (which dials to the server) and server (that listens for incoming requests) written in golang and with the RPC calls defined. I am trying to initiate an HTTP request on the server side which would in turn execute…
1
vote
1 answer

HTTP client acting as a pseudo-server

Let's say I am going to deploy a server application that's likely to be placed behind a NAT/firewall and I don't want to ask users to tweak their NAT port mapping. In other words, connections to the server are impossible, but my app is a server…
mojuba
  • 11,842
  • 9
  • 51
  • 72
1
vote
0 answers

UDP direct client - to - client communication

Using UDP, is it possible to have client-to-client communication? I am using the python socket library in the code below. I can send messages over the UDP sockets I create, but I cannot receive messages that are sent to the IP address I have…
1
vote
0 answers

Is there a way to get the client and server IDs in socket programming using Python?

I am working on implementation of a secure communication protocol between a client C and a server S using Python. For the purpose of making the communication secure (i.e. the messages transferred between C and S are confidential, authenticated and…
Ankush Soni
  • 145
  • 10
1
vote
0 answers

Best practises for remotely self-destructing docker containers & volumes?

We have selections of docker containers that run as a client on a host remotely. This then communicates with a single server that has a front-end and is in charge of multiple of these clusters. We'd like to implement the ability to remotely tell a…
1
vote
0 answers

How to organize a client-server application on .NET (not on the .NET Framework)?

In .NET (meaning .NET Core and .NET), compared to the .NET Framework, this approach has been changed, and, apparently, significantly. In the .NET Framework, a client-server application was organized like this: For the server: [ServiceContract] …
Edward
  • 23
  • 3
1
vote
1 answer

Should badly formed body in POST, PUT, PATCH request to unknown resource return 400 or 404?

When making a POST, PUT, PATCH request with badly formed body (e.g. wrong types, missing required fields) to an unknown endpoint, should that return 404 or 400? Example: There exists an endpoint /resource/:resourceId. There exists a resource with…
1
vote
1 answer

Connection reset by peer Socket programming

I receive an error on client-side code about connection reset by peer when I call the function send from client --> server. I looked it on the internet, but I don't understand it thoroughly, can someone explain what triggers this error and why? This…
Rabi
  • 15
  • 1
  • 3
1
vote
0 answers

Why doesn't the Python socket receive packets?

My program doesn't receive any packets (on UDP, Windows 10), but when I sniff the data on Wireshark I can see that the data is indeed sent. I know that it doesn't have anything to do with my local network because when I switch to a hotspot it still…
Roey_MR
  • 23
  • 5
1
vote
7 answers

get IP addresses of computer available on a network? -java

I am making a file sharing application which would look for computers which are running the application on the same network. So I would like my application to discover computers and their IP address. Is this task achievable using Java? thanks
Tushar Chutani
  • 1,522
  • 5
  • 27
  • 57
1 2 3
99
100