Questions tagged [networking]

12926 questions
0

votes
0

answer
5

Views

Chat Programm with C# via IP-Address. Connecting two Computers in different Networks

I'm writing a Chat Programm for me and my friend in C# and I don't know how to connect my Computer to a Computer in a different Network. The Code Works fine in my Home Network between two Computers but between two different Networks it doesn't work. I know why it doesn't work, I mean it makes sense,...
Eric de la Fuente
1

votes
1

answer
687

Views

What does netloc mean?

I'm learning to make login function with Flask-login, and I'm facing with this code in my tutorial that I'm following: @app.route('/login', methods = ['GET', 'POST']) def login(): if current_user.is_authenticated: return redirect(url_for('index')) form = LoginForm() if form.validate_on_submit(): use...
Harvest 1018
0

votes
1

answer
13

Views

Java file upload to windows shared folder with authentication

I'm trying to upload some files on a shared folder where I'm granted on with full control, but I see that connection is not working for some authentication reasons. This is the piece of code I've used for some writing tests: String destination = 'serverX/shareFolder/'; String domain = 'myDomain'; St...
Noomak
1

votes
1

answer
72

Views

Can I reach a container by it's hostname from another container running on another node in Kubernetes?

I believe my question is pretty straightforward. I'm doing my prerequisites to install Kubernetes cluster on bare metal. Let's say I have: master - hostname for Docker DB container which is fixed on first node slave - hostname for Docker DB container which is fixed on second node Can I communicate w...
Laimis
1

votes
1

answer
27

Views

Socket does not send data in while loop

I'm trying to do make simple network communication where a client sends a user input string to the server, which server then displays to the console. When I send only one string, it works fine, but as soon as I wrap my user input code and send code in a while loop, the server receives nothing. SERVE...
Alexandre Ringot
1

votes
1

answer
1.3k

Views

Python interface supported link speed

What is the preferred and cross-platform (Ubuntu, Redhat) way to get supported interface link speed? i am familiar with ethtool, but i would like an option not to use an external tool, but only python.
gtfx
1

votes
2

answer
354

Views

Golang TCP dial error: host is down

net.Dial('tcp', '192.168.1.100:3000') The above call give me dial tcp 192.168.1.100:3000: connect: host is down. I can successfully ping the endpoint. I wonder what will be the cause of this error. What will be the possible causes of host is down? Let me provide more details. The endpoint I am dial...
Morty Choi
1

votes
3

answer
170

Views

Python socket module: Recv() data response cut off

Explanation I'm currently trying to control a smart power strip using a python script. To accomplish this, I'm using a TCP connection with the socket module. Around 75% of the time, I get the response/data I was looking for and everything works perfectly. However, around 25% of the time, the respons...
Marco C
1

votes
3

answer
113

Views

Firefox WebRTC signaling DOMException Failed to parse SDP

I am using WebRTC data channels for networking in an HTML5 game. Though WebRTC can be used P2P the topology for this project is centralized client-server. The server is a Node.js process that acts as a WebRTC peer. The clients are browsers that make a 1-1 connection with the server. I am using the s...
kevzettler
1

votes
1

answer
39

Views

Listen to a same port via multiple Docker containers

I have brought up a Kafka messaging service where Kafka broker is setup in a docker and is on port 9092. Host port 9092 is mapped to the container port 9092. Now I am trying to bring up a consumer which listens to host port 9092 to consume messages. I'm trying to setup consumer container after all b...
Darshu Bc
1

votes
3

answer
1.7k

Views

how to restrict number of connections in client server program

I want a server program which should accept only maximum of one connection and it should discard other connections. How can I achieve this?
Thangaraj
1

votes
4

answer
4.9k

Views

BGP vs OSPF and IsIs

Why hasn't BGP completely replaced OSPF and IsIs? What do the other two protocols handle that BGP does not already implement?
Goose3gg
3

votes
2

answer
101

Views

How to detect and manage disk/registry/network activity performed by a loaded DLL?

Assuming my application implements a plugin/extension system which allows the user to dynamically load and execute code from external DLL files, how would I go about managing security in terms of disk, registry and network access (read/write/delete)? To be more specific, I would like to be able to k...
IneedHelp
0

votes
0

answer
6

Views

Network administration monitoring with netpy

i have a exercise about network administration with netpy. Please recommend to me any document or tutorial about it. Thanks all !
Đức Vũ
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

View additional questions