Most voted "socket" questions
A network socket (socket) is an endpoint of a communication flow between processes over a computer network. This tag is different from websocket.
Learn more…352 questions
Sort by count of
-
0
votes0
answers126
viewssocket in c error sending numbers from client pro server tcp
my first time here, I need a light , I have a server written in c that is a calculator and this on a machine, the client q runs on another machine takes the two numbers and the operator q the user…
-
0
votes2
answers195
viewsDelphi Seattle Problems with Sockets
[Delphi Seattle] I have a Unit that has uses in Sockets (from a source that was in Delphi XE2), uses does not recognize.. does anyone know how to proceed? Obs: Ai without these uses I have more…
-
0
votes0
answers220
viewsjava.lang.Runtimeexception: Unable to start Activity Componentinfo{}: java.lang.Nullpointerexception by checking my input
I’m new to android development and am passing a swing chat for android. The idea is to use a server socket that makes the connection. This is the third attempt to make it work... I received the…
-
0
votes0
answers119
viewsSending data to a UDP client
I would like to know if there is any way I can send data to a udp client in nodejs through a browser. I have a form with any 2 fields, I need to take this data placed in the form and send it to the…
-
0
votes0
answers135
viewsJava charset - How to read correctly from System.in?
I am creating an application to exchange messages between computers using Sockets, through cmd or terminal (I want it to run on linux and windows, console application). But I’m having trouble…
-
0
votes1
answer46
viewsNodejs: page not found
I was making my application, but when I update the page the browser returns me that the page is not available. I’ll post my code so you can tell me if there’s something wrong JS var http =…
-
0
votes1
answer129
viewsPython UDP Broadcast
In python 3.7, when I send a broadcast (via UDP), you need to specify the port. Is there any way I don’t need to do this? Example: socket.sendto(b, ('<broadcast>', 15000)); #Nesse eu…
-
0
votes1
answer2375
viewsSocket/Threads (Client/Server) Java
I have a very cruel doubt. I did a lot of research and found nothing similar to solve my case. What I need is this: Customer side sends card number and purchase value The server side receives this…
-
0
votes0
answers47
viewsAbout packages via Reflection x Manually
Well, the title may not have been very explanatory, but I hope to improve on the content of the topic. I made a library in C# in which to date, manually writes packages, as in the example below:…
-
0
votes0
answers293
viewsHow to implement a python socket code without using while true?
I’m doing a chat in Phyton that has the Guis implemented with Tkinter, according to the errors I had and by what I researched about the Text module of Tkinter (module where the messages will be…
-
0
votes1
answer583
viewsHow to run a php socket
This script below is a php socket to receive data from a tk102 vehicular tracker. The problem is that I think it has to run in a specific folder on the server and I don’t know how to do it, and…
-
0
votes1
answer88
viewsSocket C++ Read Error
I am developing a program in C++ using Socket, the problem is that when the client sends some information to me I do not receive. In fact the program hangs. #include <iostream> #include…
-
0
votes1
answer1081
viewsProblem with file transfer via java socket
I am trying to make a client/server program that accepts more than one client and that client sends files to the server. The transfer was working properly, however when I put a while so that when…
-
0
votes0
answers243
viewsClient can connect to server but crasha when will receive data
Here’s the part of the code that misses: private void buttonAbrirConexão_Click(object sender, EventArgs e) { try { socketOfServer = new Socket(AddressFamily.InterNetwork, SocketType.Stream,…
-
0
votes1
answer114
viewsTransferring image via socket, image turns black
My server sends a command to the client and the client sends a Printscreen to the server using this code: Image printScreen = new Bitmap(monitorWidth, monitorHeight); Graphics graphics =…
-
0
votes0
answers122
viewsAndroid - Create a Socket in Singleton
Good night, I’m developing an android game where to play online have to connect to the server. At first I was trying to create sockets in an Activity where the game will occur, but the app was…
-
0
votes1
answer678
viewsHow to convert a string to an integer in a socket program?
Here is an excerpt from the code: def CriarServer(self): Host = self.Txt1.get() Port = self.Txt2.get() sockobj = socket(AF_INET, SOCK_STREAM) #Erro sockobj.bind((Host, Port)) sockobj.listen(5) while…
-
0
votes0
answers177
viewsHow to create a socket in wildfly?
I need to create something that reads everything that comes to a specific door and handles that information. An Ubuntu server is used with Wildfly 10 running. The information trafficked is from the…
-
0
votes1
answer84
viewsReceiving Data from a Streaming
I’m having a little problem, and I’d like your help. Recently I had a doubt and I started researching about but found nothing, I noticed that the video streaming services uses a server "Wowza" and…
-
0
votes0
answers46
viewsUpdate information received from Arduin
I have made an application that interacts with a robotic head with Arduino and I would like to know how to automatically receive all the data from the robot without having to trigger the sending of…
-
0
votes1
answer36
viewsI cannot display the value received from the server
I am working on a project written in Java with a Client structure - Server. My client consists of Swing Graphical Interfaces and the server working with multi-threads. But I’m at a point where I…
-
0
votes2
answers3232
viewsClient-server connection via socket
I need to make a connection via socket as follows: My Android app has a "Confirm" button - when you click the button it has to send a message to the server and after that the server has to return a…
-
0
votes1
answer138
viewsProblem with PHP and Html5 Sockets
I have a problem, I have a page called server.php and another client.php, the client code is as follows: <script src="scripts/jQuery/jquery-3.2.1.min.js"></script> <script> var…
-
0
votes0
answers354
viewsSocket with JSON in java
Good night to you all. I have a problem, in case I have a software that runs on port 3333 on a particular computer, and in it has an api, only I need to recover it through another computer and get…
-
0
votes1
answer2840
viewsSending files through sockets - Python
I’m studying sockets, using Python, and tried to make a script to send (Server) and receive (Client) files through sockets. However the script does not work as expected, the final file (received by…
-
0
votes0
answers586
viewsSocket error only on Android 7
This problem occurs only on Android 7! In other versions the operation is perfect. And performing the tests on an S8 with the intelligent network exchange, by the reports of a friend, is also…
-
0
votes1
answer167
viewsError with socket
I have a system that uses php web socket for chat communication and real-time notification. It works, but usually gives spikes and the server time in time drops the service. I’m going to post my…
-
0
votes1
answer36
viewsConnection only works with manually set values
I have a Socket class that is working normally this way: class Socket(): __ffChatSocket = "" __meuTelefone = "" __WhatsappAPI = "" __dest = () def __init__(self, telefone, WhatsappAPI): ip =…
-
0
votes1
answer64
viewsSocket Whitelist IP accepted connection C#
I am trying to make a Socket system (Server -> <- Client), however I want to make an ip Whitelist that can be accepted in the client connection to the server, but I do not know how, short I…
-
0
votes1
answer80
viewsSocket Hex with checksum
I’m developing a communication socket between a tracker and the server. The socket is working perfectly. My problem is with communication when it comes to checking the checksum. The device sends a…
-
0
votes0
answers730
viewsChat between two different computers
I’m new to this socket thing and I’m having trouble connecting two computers that are on the same network. When I run the client and the server on the same machine, it works... but when I do it on…
-
0
votes0
answers85
viewsSocket connections
I’m trying to do a project where I transfer a file. I’m having trouble accepting the client’s connection. As I am trying to do in different packages the Talya class starts the server connection on…
-
0
votes1
answer136
viewsClose PHP socket with telnet
I’m trying to close one socket if you type "exit" through the telnet but the variable $msg is always empty inside the if <?php $host = '127.0.0.1'; $port = 10000; $socket = socket_create(AF_INET,…
-
0
votes0
answers209
viewsHow to terminate socket within an infinite loop?
Hello, I created a server-client project using a socket that listens on the port and sends the element of a "Queue" until the queue has no more elements. However, when I close the client…
-
0
votes0
answers125
viewsSending byte[] socket data
I’ve had a problem for a few days that I can’t fix. I have a socket connection and I am testing signature on messages, I have an object Mensagem that contain String mensagem, String assinatura and…
-
0
votes0
answers448
viewsError in Connection establishment: net::ERR_CONNECTION_TIMED_OUT
I am trying to apply a connection with websockets, but when running, gives the following error: Websocket Connection to 'Ws://127.0.0.1:8080/' failed: Error in Connection establishment:…
-
0
votes1
answer68
viewsWorking with C socket received data
I have a script that receives data via socket done in C, and I’m having difficulty working with this data. Data received from customer: "Imei:123123,23123,tracker,0.0......". I need to receive this…
-
0
votes1
answer150
viewsHow to put socket in read mode until you receive other java data
I created the server part and the client part. If the message exchange is just an input and an output works perfectly, the problem is to maintain a communication without closing the socket. In case…
-
0
votes1
answer130
viewsInfinite wait per server response using python sockets
I am trying to send a message to a server API in order to get a response. I am using the following code: import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_address =…
-
0
votes2
answers47
viewsSocket does not receive or send message to the server
I am implementing a Java multi thread server that receives messages from clients and broadcasts them to others. But I’m having problems. The server only receives messages sent to users when the…
-
0
votes1
answer22
viewsProgram for when a structure statement occurs at different locations
Follow the source code... #define _WIN32_WINNT 0x0501 #include <stdio.h> #include <ws2tcpip.h> #include <winsock.h> #include <windows.h> WSADATA data; struct addrinfo tips,…
-
0
votes1
answer36
viewsSending a Java Socket message
Hello I am "trying" to make a server socket until there I got but I am not able to make the communication between the servers. But the weirdest thing is the following check out the print below But…
-
0
votes1
answer174
viewsConnection undoing while running php socket script
I am setting up a socket server in php, a simple chat. When I send a message or close a page, the following error appears: "Warning: socket_recv() Unable to read from socket[10053] An established…
-
0
votes1
answer81
viewsProblems with C socket
I have 3 functions responsible for creating a socket, sending data and receiving data. Function sock_create creates a new socket by returning an int of that socket, Function sock_send sends a header…
-
0
votes0
answers214
viewsSocket Bluetooth Windows - Can’t connect to device:(10049)
I am having socket error problems with code 10049 when I try to connect a bluetooth SSP device, serial port service, in Delphi Tokyo 10.2 in Windows environment using a Tbluetoothsocket class. Error…
-
0
votes0
answers385
viewsChat with multiple customers using Threads and Sockets
The code here posted represents a small chat between client and server. As I said, I’m not familiar with threads. The teacher told us, from this code, to create a multi-client chat, where clients…
-
0
votes2
answers378
viewsSocket between 2 devices
I would like to send data between different machines, between two computers, between a computer and a Android for example. I did the example internally, on the same computer, but when I separate…
-
0
votes1
answer225
viewsReturn HD size and free space to client-server
I would like to return to the customer the information of HD size beyond the available space. Client code import socket, pickle HOST = 'localhost' PORT = 9991 udp = socket.socket(socket.AF_INET,…
-
0
votes1
answer285
viewsCommunication Problems Delphi Client Csharp Server Socket
I need to implement a communication via socket with server on Delphi and a Client in csharp. I created an example and the same does the communication but for some reason the server in Delphi when…
-
0
votes0
answers57
viewsErrors using Vert. X
C:\Unky\Web\BloodStrikeServer-master>java -cp classpath/commons.jar;classpath/fl ex-com.jar;classpath/flex-cor.jar;classpath/junit.jar;classpath/link.jar;classpa…