Questions tagged [networking]

12912 questions
1

votes
1

answer
264

Views

My socket program doesn't print the output

Just getting started with socket programming, I have created the below code and expecting to print some byte data, but it isn't doing that. import socket def create_socket(): s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohl(3)) while True: rdata, address = s.recvfrom(65535) print(rd...
Vignesh SP
1

votes
0

answer
264

Views

Unity UNET - multiplayer + singleplayer programming approach issue

I recently started working on a project that was developed with single-player play in mind for around 3 months. To add multiplayer functionality (simple 1v1 server-client connection) I chose Unet, following mostly Unity tutorials and examples. I was able to change the single player scripts to multip...
Walik
1

votes
0

answer
46

Views

Sending text information in a p2p network

I have been attempting to create a simple peer to peer network for quite some time. I stumbled upon a javascript example found here that I have been working from. When I run the example found in the repository, the peers never make a connection. I am beginning to wonder if there are problems with t...
Devin Haslam
0

votes
0

answer
14

Views

How to Debug 'ip link add vrf-blue type vrf table 10' RTNETLINK answers: Operation not supported

I am trying to enable vrf in Linux kernel 4.9.135 version and have enabled IP_MULTIPLE_TABLES, NET_L3_MASTER_DEV and NET_VRF in kernel and build the kernel. bash-4.3# zgrep 'CONFIG_NET_VRF' /proc/config.gz CONFIG_NET_VRF=m bash-4.3# zgrep 'IP_MULTIPLE_TABLES' /proc/config.gz CONFIG_IP_MULTIPLE_TABL...
Uma Shankar
1

votes
1

answer
796

Views

Golang SSH to Cisco Wireless Controller and Run Commands

I am trying to SSH to a Cisco wireless controller through Go, using Go's golang.org/x/crypto/ssh library, to programmatically configure access points. The problem I'm running into is correctly parsing the controller CLI in Go. For example, this is the typical SSH login to the controller: $ ssh (Cis...
mwalto7
1

votes
0

answer
32

Views

Android Activity - Design on Server / Render on Client

We have a Windows Mobile application which is being migrated to Android. It has a large-ish number of forms (around 150). Given the complexity of the rewrite ahead of us, I am looking for as many shortcuts as I can find :) One of the options we are considering is as follows: Move all the .NET code...
Timothy Muir
1

votes
1

answer
301

Views

How to map multiple share drives upto 22 at a time using powershell?

I have about 9000 DFS share drives in my environment. Unfortunately since there is no easy way to find out the size of each share drive with powershell i am trying to map 22 at a time and save the dump the results to csv file So i am trying something like this $csv=Import-Csv 'path' $csv.Name foreac...
scriptnoobie
1

votes
0

answer
29

Views

Docker compose: How to invoke command in one container from another?

I understand docker compose creates a network of containers. Now, is there a way to provide a program implemented in a container_B and invoke it from within container A? Consider this example: version: '3.2' services: container_A: image: 'alpine:latest' links: - container_B container_B: image: 'pyt...
user3139868
1

votes
0

answer
49

Views

R : Topological sort of decomposed network graph parts

I am interested in creating a data frame from topological sort of various parts of decomposed network graph. My program can produce this for individual parts of the decomposed network and I get a data frame which shows nodes in proper sequence. g
Ashish
1

votes
1

answer
82

Views

What does Kryonet send over each couple seconds?

I noticed Kryonet sending/receiving an object I did not register to each connected member about every 5 seconds. It's probably just a couple byte and even for a couple thousand players would not up the server load much more then 1 kB/s but I need to know. Why is this? How large is this? Can I stop i...
Madmenyo
1

votes
0

answer
11

Views

How to introduce network as a trusted source?

In another post, I mentioned the problem of breakpoints not to be hit when debugging in VS2017. I mentioned that the breakpoints get hollow with an exclamation mark with the message: The breakpoint will not currently be hit. No symbols have been loaded for this document. After some trial & effort, I...
hamidi
1

votes
0

answer
41

Views

OSX Write permissions for files on external usb drive always change to read only, when another user changes the file

maybe this is not a real programming question, but I hope you can help. I really got an annoying behaviour here. I already read OS X El Capitan – File Sharing Restrictions But the answer is not making me happy XD We got the following setup: - iMac A (El Captain) with an external HDD (TimeMachine s...
Urkusk Shrakz
1

votes
1

answer
71

Views

Network channel Python

Hi guys I'm working on a network project as I'm a beginner i hope you can help me: I'd like to retrieve the channel my network is on using python like netsurveyor is giving a graph showing the channel our network is using I'd like to know how in python I can get the same infos. I've linked a screns...
Ait Zaid
1

votes
1

answer
65

Views

Closing TCP Server gracefully on Linux system

After the creation the server socket we get the parent FD. Once the parent FD is used to accept the client(s) connections it will create further child FD(s). So when calling the close() what is the best practice: Call the close() on all the client FDs, then call the close() on the parent FD. Call t...
PhiberOptixz
1

votes
1

answer
323

Views

“installing” Kaitai Struct Python

I need help with installing Kaitai Struct on my Laptop. I installed python-kaitaistruct and compiled the network files. But i get an import error: Traceback (most recent call last): File 'test2.py', line 1, in from ethernet_frame import * File '/home/bene/python/ethernet_frame.py', line 15, in fro...
Benedict Schlüter
1

votes
1

answer
43

Views

docker overlay for local development and remote containers

I am looking to improve our development cycle, using multiple docker containers, used by multiple dev teams Currently each dev team is responsible of few services, that are dependant on other teams services. Meaning all dev teams need to run all containers locally What i'm trying to figure out is h...
gCoh
1

votes
1

answer
1.3k

Views

Use cellular data while connected to Wi-Fi with no internet

I'm creating an Android app that connects to another device via WiFi that sends and receives data through a socket connection. I want to be able to use my cellular data to do other things (such as browsing) while staying connected to this device. On an iOS device, changing the network settings to S...
Nino Gonzales
1

votes
2

answer
280

Views

First fragment in view pager not showing because of rest api delay

I have a navigation drawer activity, with one fragment having a view pager and tabs. All 4 fragments are fetching data from a server. My problem is that the view pager is loading the first 2 fragments therefore my first fragment doesn't show a content at first because of the delay of the rest api. S...
Karl Ghosn
1

votes
0

answer
82

Views

iOS caches the proxy credentials

I will keep it short and simple. I have a proxy server which requires authentication. Now my problem is when i make a HTTP request, i get authentication challenge, i provide my credentials now iOS never asks for that again. Does the OS stores this cache somewhere, looks like it. If Yes where ?? How...
user2606782
1

votes
1

answer
501

Views

postgresql - django.db.utils.OperationalError: could not connect to server: Connection refused

Is the server running on host 'host_name' (XX.XX.XX.XX) and accepting TCP/IP connections on port 5432? typical error message while trying to set up db server. But I just cannot fix it. my django db settings: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'db_name', '...
doniyor
1

votes
1

answer
526

Views

Raspberry Pi Python - Multicasting UDP using Socket not working on local network

My current setup is this: 1 x computer 1 x GS308v2 ethernet HUB 7 x raspberry pi's The pi's are given static ip's ranging from 192.168.1.2 to 192.168.1.9. The dhcpcd.conf file is as follows: The python script for sender: #!/usr/bin/python import socket import struct import sys import IN import subpr...
Mohsin Anees
1

votes
0

answer
316

Views

iOS Is it possible to detect wifi network connection(without internet connection) via Reachability

How to detect a scenario when user is connected to a wifi network without active internet connection? It is possible to detect wifi connection with internet connection. I downloaded sample from here. https://github.com/xamarin/ios-samples/tree/master/ReachabilitySample Its coded in Xamarin but I a...
kostik
1

votes
0

answer
168

Views

url parsing in Python

I have been trying to experiment with a code for an http client that makes almost no use of urllib except for urllib.parse. I want this program to act like cURL where you would be able to retrieve a url by a command such as: curl -g https://www.google.com or curl -v https://www.google.com I am how...
O.A.
1

votes
1

answer
968

Views

Linux to Android Bluetooth Tethering (PAN)

I'm having a bluetooth enabled [embedded] Linux device and would like to share it's internal Network (NOT connected to the internet) via Bluetooth to Android devices (tried Android 6.x and now 7.1.2 - Lineage OS [rooted]). The setup already works well with Linux or Windows Clients. I read through to...
Stefan W.
0

votes
0

answer
3

Views

How to disable persistent bridge interfaces in ubuntu 18.04

I see a bunch of bridge interfaces that come up on my ubuntu 18.04 machine. They look like br-00a87e65d75d. I can use brctl delbr to delete them, but they comeback after a reboot. I am not able to figure out what's causing them. Can someone point at what to look at? /etc/network/* has nothing in it...
suppandi g
1

votes
1

answer
67

Views

Why is my network stream downloading 0 bytes?

I'm currently working on a project that involves me taking a picture with my laptop camera on a given command. I'm using my webcam as a security camera right now due to the fact that I have not gotten the time to buy a real one yet so my laptop will have to do. The project is structured like this: I...
TheHappyGuy
1

votes
0

answer
340

Views

How to scan local LAN network?

I have created a program in C# which scan all PCs in LAN network, and then print out list of IP and computer name of it. This code here I covered in YouTube of someone. But when I try to scan, it always return an error: Additional information: An exception occurred during a Ping request. I try to t...
Sae
1

votes
0

answer
73

Views

Reconstructing video bytes at unity client

I am trying to send a video file from the server to the client in unity with the help of message (1440 bytes at max I can send). Depending on the message from the unity client I am rendering the texture and after encoding I am sending video bytes to the unity client. Then from unity client, I am sto...
MSD Paul
1

votes
1

answer
386

Views

I can't access docker from outside the container [duplicate]

This question already has an answer here: Configure Flask dev server to be visible across the network 8 answers Are a WSGI server and HTTP server required to serve a Flask app? 2 answers I have to 'dockerize' a service I'm writing (a small Flask app). This is what I wrote: FROM python:3 RUN apt-ge...
gardenhead
1

votes
0

answer
71

Views

EC2 - Huge latency in saving streaming data to local file

I've written some python code to receive streaming tick trading data from an API (TWS API of Interactive Brokers using IB Gateway) and append data to file in the local machine. On a daily basis, the amount of data is roughly no more than 1GB. In addition, the 1GB of steaming data per day is composed...
Elrond
1

votes
0

answer
60

Views

eigenvalue clustering igraph

When using the cluster_leading_eigen function in R iGraph package I'm not able to merge the communities into two communities. The following gives a warning: karate
L. Hansen
1

votes
0

answer
40

Views

Auto discorver node.js server on local network via app

I'm building an app to stream audio between multiple clients with a node js server as relay, like a voice chat room, where one is the group creator and others can join. But the server is going to sit on a network where the ip is not static. What is the best way to make the android/ios app locate the...
Lasse
1

votes
0

answer
38

Views

tcp-dump filter not capturing certificates

I need to capture TLS certificates. I defined a capture filter but it is not working. I use Wireshark (the syntax is same as tcp-dump). I tried this capture filter: tcp port 443 and tcp[tcp[12]/16*4]=22 and (tcp[tcp[12]/16*4+5]=11) The part tcp[tcp[12]/16*4]=22 is to identify the type is handshake....
anonymous
1

votes
0

answer
67

Views

Is it possible to exclude service access within the same Docker network?

I am using the nginx-proxy image (https://github.com/jwilder/nginx-proxy) to automatically configure nginx proxy in front of my services. The corresponding nginx-proxy container is running in the nginx-proxy network: docker network create nginx-proxy docker run -d -p 80:80 --network nginx-proxy -v /...
John Somen
1

votes
0

answer
332

Views

HTTP response content is truncated when request is sent over WiFi

We're getting some HTTP responses with status 200 but with incomplete content (cut off at a different position in each request). I wonder if there's something wrong with that network or if this kind of response errors must be expected and dealt by our application, i.e. if HTTP clients must check if...
Ferran Maylinch
1

votes
0

answer
308

Views

How to parse pcap file for TLS handshake traffic

I have a TLS handshake traffic. I need to parse it to extract some parameters. For example, I want to extract the version. The TLS hello looks like: | | | | Handshake Layer | | - ---+----+----+----+----+----+----+------+----+----------+--------+-----------+----------+ | 1 | | | | |...
anonymous
1

votes
2

answer
143

Views

Docker Slave Connect to Docker Gitlab | Docker DNS

So I have a bit of a docker network problem that I cannot get to work. I have a compose file for all of my systems. gitlab, sonar, nexus, jenkins live inside this compose file. Containers: prod-gitlab, prod-jenkins, prod-sonar, prod-nexus I have my jenkins slave set up to use the Docker Plugin so s...
GSUgambit
1

votes
1

answer
58

Views

How to see which network map you are connected to?

I have a three node set up using the cordapp example. The three nodes are sitting on seperate machines. I am trying to connect the three up, but cannot find a suitable test that will prove all three nodes are connected. Issue one The main issue is that i am unable to prove that the partyA node is c...
Ramboo19
1

votes
0

answer
243

Views

Docker swarm overlay network between subnets

I'm trying to set up a Docker swarm cluster with CoreOS. I have 3 hosts with static IPs in a subnet for the managers, and 5 hosts with DHCP in a subnet for the workers. There is a manually configured static route that allows me to talk to the manager subnet. IPs are changed. [email protected] $ ping 10....
Nate Mara
1

votes
0

answer
74

Views

Freeradius check specific software version before accepting

is it somehow possible that the freeradius checks the database of the antivirus programm before accepting the client? My system is running with a mix of MAC-addresses and certificates, but it should be advanced to trust the clients only if they have up-to-date databases on certain programms. My firs...
averagejoe

View additional questions