Python module which simplifies the task of writing network servers.
Questions tagged [socketserver]
385 questions
0
votes
0 answers
python threads referencing the same class at different memory addresses
Im not quite sure what to classify this problem as, but as far as i can tell the connhandler thread should be able to write to the dictionary stored in the queuemanager class that is defined in hostmain, however when i print it out from the terminal…

kadytoast
- 33
- 4
0
votes
1 answer
Server socket doesn't respond properly in android
In my project server socket doesn't respond properly in android. I don't know what's wrong in that? My server side code is stuck in serversocket.accept().
In manifest file i have given internet and foreground service permission.
I am beginner and I…
0
votes
1 answer
Java Socket Server -- redirecting to Web Application (web service)
I have the following requirement:
I need to create a socket server that listens fro incoming requests. The socket clients are written in C. The clients send JSON data.
The client input needs to be redirected to different sources. for example there…

alex
- 705
- 9
- 21
0
votes
1 answer
How to restart a TCP socketserver?
I have written a code for handling multiple requests at a time but my server freezes randomly after a while, is there any way to check and restart the server if there is no activity.
class MyTCPHandler(socketserver.BaseRequestHandler):
def…

Naman Bansal
- 13
- 3
0
votes
1 answer
Creating multiple tcp socket handlers from one class in Python
Is it possible in Python3 to create a TCP Socket handler class that can have multiple unique instances?
I have 2 threaded TCP Socket servers that are providing unique information to the connected client. I am trying to make it so that 'node 1'…

Nile Ellis
- 13
- 7
0
votes
1 answer
Python 3.6.8: infinite looping forked thread causes no stderr logging on systemd due to default buffering
My python daemon is run through systemd, with stderr logging on a file.
A simplified version of the systemd service file is…

Tukler
- 51
- 4
0
votes
1 answer
Server Socket Java and XMLHttpRequest javaScript NOT receiving a response
I am trying to send an HTTP request from JS using XMLHttpRequest and receive it in Java server using socket.
I am able to send the request, but the issue with the response is that I am not getting…

Dev Ques
- 9
- 1
0
votes
1 answer
BaseHTTPServer still writing although client lost network connection
I've implemented a server which accepts requests and after some process the client connects to my server.
The server continuously sends data to client, but if the client lose the network connection (e.g. on my mobile I've disabled the internet…

bummm26
- 159
- 3
- 17
0
votes
0 answers
Sending a string between 2 computers on different networks with python
I have been trying to figure this out for a few days and I just cannot get it to work. I simply want to send a string from one computer to another one which are on 2 different networks using python. I have tried:
using python socket to connect to an…

Tanuj KS
- 155
- 2
- 14
0
votes
1 answer
python socket not connecting to web server
I'm trying use the python socket module to connect to an ngrok server. If I put the ngrok into my browser it connects properly so the problem is somewhere with my client code. Here is the server code:
#server.py
import socketserver
class…

Tanuj KS
- 155
- 2
- 14
0
votes
2 answers
python socket connecting to ngrok server
So I'm a bit new to python servers and I have made a simple program that sends a message to a server. It works when I set the host as 192.168.x.x but I have tried to use ngrok so that way I can access the server if I'm on another network. Howver I…

Tanuj KS
- 155
- 2
- 14
0
votes
1 answer
Java (Server)Socket multi room
I am trying to find a way to create a multiroom Socket. So users can chat in different rooms or privately with other users. Is there a way to do this with the java.net.Socket and/or java.net.ServerSocket?
What is the best way to do this? Do I need…

Tygo
- 196
- 3
- 29
0
votes
1 answer
How to fix cur error: could not resolve host error
I'm learning networks (socket lib in python) and have a problem. When I make a request to this app answer on this request is an error: "Could not resolve host: POST"
Here is my code
import socket
sock = socket.socket()
…

Паша Мороз
- 138
- 9
0
votes
1 answer
How to stop looping in client -socket server interaction
i'm still trying to study on socket server and client programming. So i did this coding based on the tutorial i received. I managed to create thread for multi client interaction. However, i could not stop the loop in the in the client handler that…
0
votes
1 answer
"socket.error: [Errno 48] Address already in use" in Python
I am following this tutorial on sockets, and I was doing fine until the teacher ran the program again in the text editor at 34 minutes 44 seconds. On my end, I received an error message saying, socket.error: [Errno 48] Address already in use. I am…
user12951955