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
votes1
answer92
viewsHow to make more than one type of request to the Python server?
I separated using a function, but the code does not receive the 'date'. COMPLETE SERVER CODE: import socket import json import sys dicty = { 'the': 'o, a, os, as', 'hello': 'ola', 'hi': 'oi',…
-
0
votes1
answer352
viewsHow to make server threads in Python?
Hello I’m a beginner in Python and I’m creating a simple server but I can’t create independent threads. When the client connects to the server it calls the worker function that waits for a client…
-
0
votes0
answers93
viewssocket_connect() - Error 113 - PHP
I’m trying to make an Arduino receive data according to a structure PHP. Explaining quickly, when the user changes the status, between 0 e 1, the same would send a signal to the Arduino according to…
-
0
votes1
answer1193
viewsHow to send images via socket in Python?
So is the server: import socket from PIL import Image port = 8000 host = '127.0.0.1' s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((host, port)) s.listen(5) while True: conn, addr =…
-
0
votes0
answers52
viewsMistakes in Ruby come because?
Goal Add (Uri, url) with port. # Ajuda por carlos-romero # https://stackoverflow.com # Ajuda por mu-is-too-short # https://stackoverflow.com require 'uri' require 'socket' url = 'file://C://' class…
-
0
votes1
answer211
viewsHow to establish SSL/TSL socket connection with Nodejs
I created a very simple server socket with Nodejs (V8.11.3) and it is working OK apparently. My goal is to keep an open socket connection continuously with an electronic device (Iot). QUESTION: How…
-
0
votes1
answer184
viewsmultiples Thread client, server using socket
Hello I’m doing a job for college and I’m doubtful how to add a new thread to add another client... basically what I want to do is after started the server is possible to send message from more than…
-
0
votes1
answer229
viewsHow to capture packets from a TCP connection using a proxy?
I’m writing a TCP proxy to capture packets sent from my computer to a remote server and vice versa. I connected a fake test server on localhost and Proxy works well, intercepting and directing the…
-
0
votes1
answer43
viewsHow to get information from a TCP server and send to the java client
The idea is this:I have a TCP server that calculates the amount of water in a water tank,when it is 250 liters should warn the client that it needs to refill. But whoever has the information that…
-
0
votes1
answer28
viewsHow to make the correct Ipaddress.Parse conversion
Hello, I’m making a communication with an equipment using socket. I’m using the library System.Net to convert the ip and pass the port as parameter in the IPEndPoint to use in the…
-
0
votes1
answer106
viewsHow to set a timeout for the Python recv() method?
I’m creating a program in Python using socket, and I came across a bug in the program that occurs because the recv does not inform if the connection has been terminated or not. Someone there can…
-
0
votes1
answer242
viewsProblem in angular design
I went to try to install the socket.io-client in my project and ruined my system Is giving the following message: Unhandled Promise rejection Error: Zone.js has Detected that Zoneawarepromise…
-
0
votes2
answers96
viewsSpring’s Hot Swap features "Bindexception: Address already in use: Cannot bind"
I’m working with a thread that keeps running Broadcasts to map network devices, but when I modify my code and Spring performs Hot Swap, I get Exception "Bindexception: Address already in use: Cannot…
-
0
votes0
answers217
viewsHow to make a socket connection using Hamachi in Python?
I’m trying to connect with socket on another network with Hamachi. When creating the server, I am using the local IP and when connecting I am using the Hamachi IP. See my code below: # Código do…
-
0
votes1
answer39
viewsFile list gives errors when going through . Decode()
In the following code for file transfer using Python sockets: Client: lista_arquivos = ['C:\Users\fulano\Imagens\passaro.jpg', 'C:\Users\fulano\Imagens\cachorro.jpg',…
-
0
votes1
answer51
viewsAndroid socket does not come out of the while, why?
After sending the event I have to close the program to send another event through the socket. I realized that it is not closing, gets stuck in the while paps go through the…
-
0
votes1
answer85
viewsIs it possible to use python’s LIB socket to make communications as a websocket?
Hello, sorry if there is any error, I am creating an MMORPG with the engine Construct 2 and it only has a plug-in websockets, however I tried to use the lib websockets from Python, but I don’t think…
-
0
votes1
answer44
viewsProblem with socket - recv - python
Hi! Here’s the thing, I got a customer problem. When I use netcat as a server, the client sends the message "connection received successfully" and then returns the following error: Exception…
-
0
votes0
answers87
viewsPerform telnet using proxy with python
I’m trying to accomplish a telnet at the door SSH 22, using the pysocks, but it seems that the SOCKS not connecting, but if I use the program Open Text Socks Client Dasboard it connects, but I need…
-
0
votes1
answer737
viewsSocket Disconnect Nodejs
Hello I have a socket in which when I run the command socket.disconnect() it return me Disconnect is not a Function, what could it be ? I have tried several ways to disconnect and none solved my…
-
0
votes1
answer101
viewsHow to send a socket after receiving the previous socket result? Flutter Dart
I am performing a socket communication using flutter in a Modbus equipment, I need to send several readings on the equipment, but one overlaps the other before the answer of the previous socket. I…
-
0
votes1
answer217
viewsReceiving numerous data with Python socket
I’m having a problem with my script, I have a server.py and a client py. and my problem is to receive and send large amounts of bytes. I want to transfer large amounts of bytes of files to the…
-
0
votes1
answer57
viewsSend task from server to clients nodejs
I am using socket.io and making a server and client in nodejs. The communication between them is working. Server receives notification when client connects and disconnects. I am now needing to send…
-
0
votes1
answer34
viewsSocket error in C recv(), send() // SERVER [CLOSED]
I am new in c and in the area of networks, went to create a code in c to put into practice the theory, however, after bindar and create the connect socket, any function like recv() or send() returns…
-
0
votes1
answer23
viewsFailed to access server socket via internet python3
Good afternoon, I have a problem, I need to access there my pi Raspberry through a socket but when I test locally the program works perfectly, but when I try to access it through the internet…
-
0
votes1
answer114
viewsHow to convert hexadecimal to decimal received by socket
I need to convert a hexadecimal entry in the client to decimal, but I couldn’t find information on how to do this. Example of socket server: byte[] HEXA = {(byte)0x00, (byte)0x96, (byte)0x07,…
-
0
votes1
answer241
views(python) Socket does not connect to external network
I’m trying to chat at python, however server only connects with the client.py if the client’s machine is connected on the same network. How can I make the two connect to different networks…
-
0
votes0
answers48
viewsSocket.io in React.js. When a socket is sent, can I retrieve the sent object through the socket id?
I am using socket.io on my system so that every time a user registers appear in real time on my screen. For this I am saving the socket in the mongoDB database, but it saves not only the connected…
-
0
votes1
answer64
viewsERROR 10043 - Protocol not configured in system
Hello! I’m trying to create a script that monitors the network, I’m trying to learn so if there’s something wrong I’m sorry. The code I have import socket import struct import binascii s =…
-
0
votes0
answers30
viewsShutdown python socket server by pressing CTRL+C
I have a server program using a python socket that has two threads: the Accept thread, responsible for accepting new connections from clients, and the clientThread thread, responsible for handling…
-
0
votes0
answers38
viewsArray in Sockets
Good afternoon, I am attending ADS EAD and I say that I have a lot of difficulty learning, I have this job to deliver and I do not know how to solve. The teacher said it’s to use this structure and…
-
0
votes0
answers15
viewsHow do I return values in a socket?
I am receiving data from a C client, but when I make the necessary changes, the returned value is not printed. Only when I do a console.log. However, I would like the return to occur after c.write..…
-
0
votes0
answers19
viewsHow I convert a keylogger to exe
Guys, I’ve been trying for a while to convert my program to exe, I’ve used several ways to do this, so far all gave errors. My code works perfectly in python but in exe it always returns an error. I…
-
0
votes0
answers9
viewsJava Cling Port Redirection
Hello, I am trying to do port forwarding on my router automatically. For this, I am using the Cling 2.1.2 in Java. My code: package teste_cling; import java.net.ServerSocket; import java.net.Socket;…
-
0
votes0
answers16
viewsHow to use sockets to upload a . txt file to the server and on the server receive that file and save it to the directory?
I’m three days trying to understand how this works and looking for examples, it turns out that most teach how to send text messages or chats between server and client, besides I’m not using windows…
-
0
votes0
answers8
viewsWeb application request query execution for desktop application
I want to implement a solution in the following scenario: A web application will send a desktop application an sql statement to be executed and return the result to the web application. Example: Web…
-
-1
votes1
answer220
viewsSave user profile photo when reloading to chat system using socket
I developed a Java chat using sockets where you have to choose a profile photo after logging in. My question is: How would I save this photo chosen by the user and reuse it in a future login? In the…
-
-1
votes2
answers979
viewsConvert value to C#object
I am doing an integration where the system uses socket connection, I send and receive messages to reach an end, and the messages comes in this format: aplicacao="Teste" retorno="1" sequencial="191"…
-
-1
votes2
answers70
viewsSocket com Python
Hi, I’d like to ask for help on a project I’m doing. I wonder how I could get a python socket to "lock" a desktop program I made and only release that program for use when the server side allows.…
-
-1
votes1
answer63
viewsAsynchronous Communication
I intend to implement private asynchronous communication (in python) in order to test some cryptographic algorithms. The goal would be to have an Emmiter that sends the encrypted message and have a…
-
-1
votes1
answer290
viewsDoubt about Socket php
I’m starting to study about Sockets, and I took as a basis the code of the following video: https://www.youtube.com/watch?v=qqDdHjJBZVw The question is: Why does it only work when called through cls…
-
-1
votes1
answer225
viewsError in client-server connection via socket
I’m a beginner in c++ and I’m having trouble getting my client code to establish a connection with my server in Python, the server is working, but the client always enter error 4 and does not…
-
-1
votes1
answer438
viewsDistributed Calculator - UDP Client/Server
I am trying to make a distributed calculator using Client and UDP Server, the client sends 3 numbers to the server. The 1st option would be chosen, example (1 - sum, 2 - subtraction, 3 - division)…
-
-1
votes1
answer397
viewsHow do I connect to another network with a socket?
I have created some programs like a multiplayer ping pong game, chat and others, using socket. They all work perfectly and I can connect to other devices that are connected on the same network as…
-
-1
votes1
answer56
viewsbuffered Reader server while(in.read() != -1)
When I am connected by the browser on localhost:80 on the server whose Java code is below, the server reads the request data using class methods BufferedReader. However, the server is displaying the…
-
-1
votes1
answer32
viewsProblems with print in python socket
I’m already hours away trying to solve this error, well... in the python socket I made a program in which the client sends his name and the program picks up the IP and the date and time that he sent…
-
-1
votes2
answers76
viewsEncrypt message through a python socket
I was looking through the internet and found a tutorial that showed how to make a client and server communication through a socket. These are the scripts: Server #!/usr/bin/env python3 import socket…
-
-2
votes1
answer404
viewsPython with socket communication between computers
Someone knows how to connect multiple computers with socket in Python, I’m creating a small test blockchain and I want to distribute the files among all the machines connected through the socket, I…
-
-2
votes1
answer334
viewsHow to connect a socket over the internet
I recently started studying sockets and I know that to create a server I use a port and to connect a client I use the port and the server ip on the local network, but I would like to connect a…
-
-2
votes1
answer116
viewsSocket io cannot find the route
all right? I am instantiating the socket as IO and when using io.on('Connection', Function()) it ends up not falling inside my io.on when accessing the page, it does not return any messages and in…
javascript node.js socket websocket socket.ioasked 5 years, 2 months ago Henrique Noronha Favorette 51