All Questions

Tagged with
Filter by
Sorted by
Tagged with
61 votes
23 answers
352k views

Getting the screen resolution using PHP

I need to find the screen resolution of a users screen who visits my website?
Elitmiar's user avatar
  • 35.9k
50 votes
3 answers
18k views

Why does React have a server on its own?

First of all, I know the question is badly formulated. I can't think of any thing to describe the situation as I'm a beginner. So when on cmd we type npx create-react-app myapp, this sets up the react ...
Eye Patch's user avatar
  • 921
41 votes
4 answers
20k views

Share types between client and server

I'm working on a project with a Node.js, Express.js & TypeScript backend (REST API) and a React, Redux & TypeScript frontend. In the backend I have created some types for example: models/...
Steven Soekha's user avatar
26 votes
4 answers
29k views

How to increase message size in grpc using python

I am using grpc for message passing and am testing a simple server and client. When my message size goes over the limit, I get this error. grpc._channel._Rendezvous: <_Rendezvous of RPC that ...
Dumbo's user avatar
  • 1,088
18 votes
7 answers
48k views

Android Studio: Client not ready yet

While launching an app, I am getting a message " Client not ready yet". Also, my device is showing" Waiting for debugger to attach ", followed by "Unfortunately, android app has stopped working". I ...
Aashi's user avatar
  • 181
16 votes
3 answers
14k views

Server Side Implementation of requestAnimationFrame() in NodeJS

I have some questions regarding the wildly used requestAnimationFrame() functions. Recently I came across some implementation in multiplayer games who used it on the client instead of the server side. ...
HansMusterWhatElse's user avatar
12 votes
2 answers
20k views

How to use websockets in asp.net core

im trying to develop a game where i store a scoreboard in a text file which is stored on server (currently on localhost). I am using http get and post calls in order to communicate with the server and ...
Josh's user avatar
  • 165
12 votes
1 answer
4k views

HazelcastInstance vs HazelcastClient

I am novice in hazelcast and I have a few questions. As I understand hazelcast comes with two entities HazelcastInstance(as I understand it is server) and HazelcastClient. These entities even packed ...
gstackoverflow's user avatar
11 votes
2 answers
5k views

Android Push Notifications Without using Firebase Cloud Messaging or any other similar service

I am developing an android chat application for learning purposes that uses a server- client architecture. I wrote the server side myself in Java (because I am trying to learn) and the client side is ...
Evyatar Saias's user avatar
10 votes
2 answers
3k views

How client gets updates from server without frequent ajax request?

In my project, there are features like private chat and message notification. Message notification let as know if there are any new unread messages. For achieving that , the idea that came into my ...
Sachin's user avatar
  • 2,677
10 votes
3 answers
14k views

Heroku: How to deploy a node app with client and server running on different ports?

I have a nodejs API as server and React/Redux app as client located in one git project: https://github.com/lafisrap/fcc_nightlife.git I want to deploy it on Heroku using the heroku cli. The ...
Michael's user avatar
  • 6,963
10 votes
2 answers
13k views

Does reading from a socket wait or get EOF?

I'm implementing a simple connection between a client and a server in C. In client side, I'm in a loop, reading from a file; every time BUFFER_SIZE bytes and sending it to the server side (didn't ...
Paz's user avatar
  • 1,031
10 votes
2 answers
17k views

Server Client Application with .NET and Xamarin

I searched around the internet a lot of hours but I couldn't find anything that matches my case. I simply want to implement a Server/Client App with TCP or UDP where my Android App (Xamarin) acts as ...
Canox's user avatar
  • 567
9 votes
4 answers
2k views

Safari does not run callback function on refresh/onbeforeunload on server side (calls client side code)

I am trying to send some requests to the database when the window is unloaded (i.e. when you refresh the page). For some reason, only on Safari, the client side code gets executed, but the request to ...
petranaya's user avatar
  • 769
9 votes
0 answers
1k views

Golang TLS server and client, avoiding high memory usage on client on reconnect

According to the examples here and here here I setup a server and a client that uses TLS with custom certificates. Analyzing the memory usage over times with pprof shows that the number of allocs ...
Snaky's user avatar
  • 111
8 votes
2 answers
10k views

How to connect to remote server using Elasticsearch Node Client Java

I am trying to connect to my server using Elasticsearch Java NodeBuilder Client. However I do not see any option to specify my server address and port (like we can do in Transport Client, using ...
Arnav Sengupta's user avatar
8 votes
2 answers
14k views

How to close netcat connection after receive a server response?

I need to sendo a lot of messages via netcat or something similar. The problem is that when I run echo "something" | netcat ip port the connection continues opened after I received the response. ...
Lucas Peixoto's user avatar
7 votes
2 answers
40k views

How to send a message from client to server in python

I'm reading two programs in Python 2.7.10 with client and server. How can I modify these programs in order to send a message from client to server? server.py: #!/usr/bin/python # This is ...
Stamatis Papadopoulos's user avatar
7 votes
2 answers
780 views

How to send response after reading request from browser with Socket ? (I'm using SwiftSocket)

I am new to this networking in iOS so doesn't know all the concepts so well and I'm making an app which allows to show data on browser which is on device, For that I'm creating a socket-port and using ...
Nayan Dave's user avatar
  • 1,662
7 votes
2 answers
5k views

Java Socket connecting to a public ip-address

I need to make a server and client that connects to the server. Problem: "the server works. the client can only connect to localhost, it cannot connect to a server on the internet. I want the client ...
GabeTheApe's user avatar
6 votes
1 answer
27k views

Mounting Linux FS in Windows 10 using SSHFS

I don't exactly remember how my friend synched his changes in VS Code with remote machine(Gitlab). He commits, adds, changes the code in VS Code and it automatically applied to remote machine. The ...
Mark Ezberg's user avatar
6 votes
1 answer
16k views

How to get client certificates in Go HTTPS server

I'm trying to understand how to get client's certificates in Go web server. Here is a server code: package main import ( "log" "net/http" "net/http/httputil" ) func defaultHandler(w ...
Valentin's user avatar
  • 1,554
6 votes
3 answers
243 views

Is there any good algorithm for detecting the clients which stopped sending heartbeats to server?

Suppose that millions of clients are sending heartbeats to one server within a fixed interval, so server judges that the client stopped sending heartbeats for a time larger than the interval is failed....
rainer rainer's user avatar
6 votes
1 answer
3k views

basic HTTP authentication on subsequent requests

The image below depicts basic HTTP authentication. The client requests /family resource and it is asked to identify itself. It does and now it can access the /family. The client then also asks for /...
sanjihan's user avatar
  • 5,880
6 votes
2 answers
19k views

How to see whether a website is client side rendered or server side rendered?

So, SSR means that the server sends a fully packed html, css and js file while CSR only sends the empty html and again client fetches the js to populate the data on the page. I want to visualize this....
user avatar
6 votes
3 answers
9k views

Need to transfer multiple files from client to server

I'm recently working on a project in which I'm basically making a dropbox clone. The server and client are working fine but I'm having a slight issue. I'm able to transfer a single file from the ...
Fahad Cheema's user avatar
6 votes
4 answers
13k views

Client - client communication without server?

I am new to socket programming and I need to clarify some things. Do you need a server between two client communication? Let me explain what I mean: Example 1: Client1: Server, I want to talk with ...
rootpanthera's user avatar
  • 2,741
6 votes
1 answer
413 views

SSL data read and write transfer rate managing efficiently in Server

How to control data write and read efficiently? OR What are the possible reason for decreasing read/write speed? Is there any mistake in my code? Currently it is very slow. I am using below code: ...
TamiL's user avatar
  • 2,766
5 votes
2 answers
7k views

Does OpenSSL allow multiple SSL_CTX per process, one SSL_CTX used for server sessions and the other SSL_CTX for client sessions?

I have a Linux process that needs to act as an SSL server (accept and service connections from other clients) but also needs to - in the same process - initiate client sessions with other SSL servers. ...
perplexed's user avatar
  • 432
5 votes
2 answers
10k views

Why json and not txt [closed]

For a educational purposes Why should the client request a jason or xml file from the server ? What is the advantage in these files (json and xlm) and what is the difference between these files and ...
kuvw's user avatar
  • 81
5 votes
2 answers
19k views

specifying source IP-address for socket.connect() in python sockets

how do we set the source IP-address when we do __socket.connect((host, port)) on a machine that have a several ethernet interfaces?
meta_warrior's user avatar
5 votes
3 answers
12k views

Difference between UDP Server / UDP Client

I'm trying to work with the UDP protocol, and I don't understand the difference between a UDP Server and a UDP Client. Don't they do the same thing ?
Marius DV's user avatar
  • 163
5 votes
1 answer
2k views

Why does Tmux have a server? Whats the benefit?

Im fairly new to Tmux but from what I've read, its using a client-server connection. Why is that neccessary? Is that only for managing sessions? Why does it communicate through a socket rather than ...
Warren B's user avatar
5 votes
3 answers
640 views

How to cancel a function call if it takes too long to respond in C?

Is there a way to call a function, and then cancel or skip over the call if it takes too long to respond? I'm simulating an ftp connection, and I'm receiving a response from a server using this ...
Matt123's user avatar
  • 586
5 votes
2 answers
8k views

TCP Server not receiving anything after initial connection. Python

So, I've been experimenting with Python's socket module and I've created a simple TCP client/server setup. Everything's running on the same system (Win7x64), on the ip 192.168.1.3 Here's the client (...
Awn's user avatar
  • 849
5 votes
3 answers
565 views

How to make an iframe accessible by multiple users?

I want to make it possible that multiple users can view the same website (a specific URL that all agree on) and all events of the users will be shared so that everyone has the same state. So that you ...
user avatar
5 votes
1 answer
573 views

How to shut down nicely when using in-process Java RMI registry

Case I make use of an in-process* Java RMI registry in my server process. I bind 1 object in the registry. My client process connects and looks up the binding and remote objects are passed around. ...
jgreen81's user avatar
  • 747
5 votes
1 answer
3k views

Async() methods in WCF test client

I wrote a simple WCF service and when I debug the project I get a WCF client window in which each service method has an async() version (for example, for the method ConnectMessages() from the service ...
user207809's user avatar
4 votes
1 answer
1k views

Rust echo server and client using futures blocks itself forever

I used this code for the server, and modified this tutorial for the client code. When a client connects to the server, it blocks itself forever. Server: extern crate futures; extern crate futures_io;...
simbiont666's user avatar
4 votes
1 answer
5k views

Is it possible to use a Client-Server-Architecture and a Microservice Architecture?

I try to implement and document a Software Project, where I have a mobile App for the Frontend and different Microservices to save new users an so on. So to structure all the architecture: Is it ...
softwareUser's user avatar
4 votes
1 answer
72k views

Exception in thread "main" java.net.ConnectException: Connection refused: connect Socket Programming Java

I recently learn about Socket Programming between client and server. So I thought of doing an exercise of connecting both client and server. However, I have encountered this error message when I try ...
Silver Archer's user avatar
4 votes
2 answers
77k views

Disable cmd and PowerShell on Windows Server 2012 for clients

I'm using Windows Server 2012, and I want to disable the cmd and the PowerShell for the clients. I've searched in the Group Policies but i didn't find where I can do this. Please can somebody help me?
krusty's user avatar
  • 103
4 votes
1 answer
10k views

Netty send message to Server without for loop

I was using the following code to send messages from the Client to the Server: Client class: public class Client { String host = "localhost"; int port = 14930; private final ClientHandler ...
Broadwell's user avatar
  • 1,363
4 votes
1 answer
718 views

Udp server too slow?

So im doing an MMO, i was progressing alot, 6 months progrramming this thing. The problem is that i was testing offline my game, today i have the brilliant idea to port foward my server and make it ...
centenond's user avatar
  • 1,170
4 votes
1 answer
7k views

How to implement SSE (Server Sent Events) server and client in Python?

I need to implement both an SSE server and client in Python to be able to send to the clients events anytime i want after the client subscribed to it. Specifically i have an API made with Flask in the ...
Matteo Bellin's user avatar
4 votes
1 answer
15k views

How can I remote access into a WinCE client computer from a Windows 2000 system?

I am currently running a server with Windows 2000 and running client computers off the same switch/network which are running Windows CE. I was wondering if there was a way for me to remote access into ...
Manny's user avatar
  • 71
4 votes
1 answer
3k views

Node.js: Client Disconnects from Server even with allowHalfOpen set to True

I am trying to make a simple Node.js script which creates a server if the assigned port is not used, or connects to the server if the port is being used. I am using a recursive approach to this (using ...
jean28's user avatar
  • 102
4 votes
2 answers
518 views

How to connect to windows server 2012 from windows 8.1

I am completely new to this challenge. The scenario is : I have create two virtual machines on Microsoft Azure. First VM is Windows Server 2012 R2 and second VM is Windows 8.1 I have configured a ...
Saurabh Deshpande's user avatar
4 votes
1 answer
871 views

Find server ip address on local network

I wrote a simple server-client software that runs on a local network /24 (255.255.255.0)and I don't know how to find the ip address when it changes. The ip address of the server is not static. I can'...
butexa's user avatar
  • 253
4 votes
0 answers
1k views

App and server backend -> versioning necessary?

I have built a mobile app for Android and iOS (hybrid app). Now I'm asking myself what's a good practice for managing version conflicts between client (app) and server. If I change certain api ...
The_Unknown's user avatar
  • 1,008

1
2 3 4 5
45