Questions tagged [networking]

1

votes
1

answer
252

Views

Creating a network using R [closed]

I need to create an instance of a node using R, but I also need some attributes of the node to exist: how many connections/links the node has (i.e. how many neighbors does it have) what these connections are (for example if the node is 1 and is connected to node 2, it needs to be an attribute) need...
LoneWolf
1

votes
2

answer
2.2k

Views

which physical interface tun/tap device attached to

I have a little problem understanding how the tun/tap device actually works, here is it from the wiki How does Virtual network device actually work ? Virtual network device can be viewed as a simple Point-to-Point or Ethernet device, which instead of receiving packets from a physical media, receiv...
hgbtester
1

votes
1

answer
4k

Views

The QEMU-KVM guest OS does not respect MTU setting

I have 3 QEMU-KVM VM running on Ubuntu host. Each VM has one virt-io nic and connected by a br0 bridge in host OS. Every NIC's MTU is configured to 1500. This platform runs a message queue based application: one VM as producer, one VM as message queue server and last VM as consumer. My problem is:...
Houcheng
-1

votes
1

answer
49

Views

Stale host addresses in Chrome

I'm tracking down a problem with our web application whereby a CNAME record swap of our site's domain is not picked up by Chrome for a long time, far exceeding the 300 second TTL of the DNS record. The remote address reported in Chrome inspector network tab for all XHR requests to our server is stal...
elSnape
0

votes
0

answer
2

Views

How to make widget with network requests work on battery saving mode without whitelist?

I have app ( with a lot of network requests) And a widget with refresh button. Only the first time the widget installed and clicking refresh button the widget make requests. I set the time to refresh the widget automatically to 0. But when the user on saving mode, it seems the network not get out...
L.A
1

votes
2

answer
1.1k

Views

Network call not happening from a thread in a broadcast receiver

Im a beginnner of android and im trying to build an app that recognizes a missed call and sends the number to be stored in a remote mysql database. The app is able to recognize missed calls but the network calls are not happening. I am not able to run this app in the emulator and so im using a devic...
bukke hari prasad
0

votes
0

answer
4

Views

Are public IP addresses always static / private IP addresses only dynamic?

I am new to networking. This sounds like a basic question but I have not been able to find a clear answer. Servers and Modems have public IP addresses from what I know. I also have found out that Servers and Modems IP addresses are static. Personal Computers and Smart Phones connected to Wifi on a p...
jordan_amanda
0

votes
0

answer
4

Views

How do I Share internet access to 2 different subnet

I have a PC with a 4g Sim card modem with DHCP enabled to subnet 192.168.1.1 255.255.0.0 And I have another subnet connecting to another DHCP server 172.20.1.1 255.255.0.0 I want my 172.20.x.x devices to be able access internet. Can I do this with software alone and configuration alone? I'm no net...
Jonathan L
1

votes
1

answer
449

Views

Is it mandatory for EC2 instance in AWS VPC to have IP addresses starting with 10.0.0.0?

My networking knowledge is somewhat poor. I have created one VPC in AWS for which I have given CIRD block as "21.0.0.0/16". I have re-created network ACLs, security groups and subnets according one more VPC we have. All these settings in new and old VPC are exactly the same. Then I created bastion...
Shekhar
0

votes
1

answer
6

Views

how to unmap a network driver when a user logs out of my vb6.0 project software?

this Code will map my PC to a Network drive within the LAN that my PC is connected to. now what i want is to undo the mapping that this code does. can you provide any sample code/suggestion? Dim WshNetwork As Object Set WshNetwork = CreateObject("WScript.Network") WshNetwork.MapNetworkDrive "Y:", "\...
Jannelyn
4

votes
0

answer
67

Views

Vagrant + Docker provider, struggling with static IP

​ I'm struggling with static IP assignment for Docker provider. ​ config.vm.define "dockeragent" do |dockeragent| dockeragent.vm.provider "docker" do |d| d.build_dir = "../installers/docker/" end dockeragent.vm.network :private_network, ip: "172.16.1.3" end ​ I want my container named dockerag...
jesusgn90
1

votes
0

answer
9

Views

Redirect broadcast traffic to unicast with Python

Can anyone give me an example of a python script that: 1. Listens for broadcast traffic on eht0 2. Resends that traffic to unicast address on eth1. Code so far: #Listner: UDP_IP = "127.0.0.1" UDP_PORT = 49410 def listner(UDP_IP, UDP_PORT): sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)...
andy
1

votes
1

answer
383

Views

Perform request using specific network interface

Is it possible to perform GET/POST request in NodeJS using specific network interface? I.e. with CURL I can invoke two POST calls like: curl -X POST --interface wlan0 http://192.168.1.5/resource curl -X POST --interface wlan1 http://192.168.1.5/resource // ^^^^^ Both IP address...
hsz
1

votes
3

answer
4.5k

Views

How can I modify multicast TCP/IP packets' TTL?

I'm supporting a 3rd party app that sends multicast packets with a TTL of 1. We cannot modify the app, but need a higher TTL to route the packets to another customer's network. Is there a network appliance or windows (server 2003) app that will let me modify this? Is there a better approach for c...
Daniel
0

votes
0

answer
6

Views

Is there a way to run a Mininet command while Mininet is executing another command?

I have created a simple network emulation in Mininet. h1 ---------------- h2 (without a switch or anything in between) I am running an iperf server on h2 and an iperf client on h1. Then I am perfoming the measurment from h1 to h2 in some interval repeated. But in the same time I want to run a pi...
Sero Daniel
0

votes
0

answer
6

Views

When and why headersSent is true?

I recently read koa.js source code, and found there are some conditional judgement on headersSent which is node.js api.So I want to know why we need to do this judgement?
guohang ma
0

votes
0

answer
5

Views

Unsure how to go about calculating the fraction of bandwidth wasted in this problem

Consider the data transfer between the FTP server and the FTP client using TCP. Suppose the FTP server passes a file of size 16 MiB to the TCP layer, which is going to segment the file into multiple segments and each segment is being carried by an IP datagram of maximum size 1500 bytes (including he...
Chub Check
-1

votes
1

answer
19

Views

is there a cleaner way of passing variadic data?

How to pass variadic data from one function to another in cleaner way then this ? Demonstation code: void * variadic_data = nullptr; void send_1(){ if(sendto(...)){ variadic_data = static_cast(new int(123)); // from here } } void send_2(){ if(sendto(...)){ variadic_data = static_cast(new std::string...
Kazz
0

votes
0

answer
2

Views

Can we specify service name and transport protocol in a URL?

A URL has its own syntax. In a URL, we can specify either hostname or IP address. In a URL, we can specify port number, an can we alternatively specify service name? Can we specify transport protocol in URL? A service name may correspond to two transport protocols. For example, in /etc/services ht...
Tim
1

votes
1

answer
99

Views

python: using networkX on biological networks for directional edges

As the title says, I'm using networkX to represent some cell networks in Python. The network is at the bottom of this post since it's a large image. The reason I'm doing this is because some of theres nodes are considered "input" and some will be considered "output", and I need to be able to calcula...
witcheR
1

votes
1

answer
24

Views

How to use mobile data service while WiFi is connected?

I am developing a test app that must be able to choose either WiFi or Mobile for data service. The following code shows both WiFi and Mobile networks are connected, but bindProcessToNetwork() fails on Mobile network. public class MyActivity extends AppCompatActivity { private ConnectivityManager mCo...
gvm346
1

votes
1

answer
326

Views

Grouping iGraph Vertices in a weighted network by color/subgroup in R

I am struggling to group my network by the subgroups. I currently have the following network: Current Network Which I have assigned the subgroups. I would like to plot all of the subgroups clustered together. To get a graph that looks like this: Goal Most algorithms seems to cluster based on weigh...
PonyMath
1

votes
2

answer
438

Views

restart systemd service if network connection is down

I have this unit file running as a systemd service. It basically launches a Nodejs Express application running on a Raspberry Pi on local network. The application runs fine but if for some reason the router or network gets down and back up again, the app stops listening and I have to restart the sys...
Giovanni Bauermeister
0

votes
0

answer
5

Views

Use another connection source on virtual machine

Can I make my virtual machine use another connection source like a wifi or modem , while I use my normal adsl line on my pc. I looked up google and found that I cant use 2 separated connections in one pc, but what about a virtual machine. So like my pc uses adsl and virtual machine use another conne...
vacronation
2

votes
2

answer
23

Views

Java Socket fails to connect to “0.0.0.0” with NoRouteToHostException instead of ConnectionRefused

Problem When opening a socket to IP: 0.0.0.0 and Port: 37845 (just a random closed port) with java's socket class , the socket connect fails with a java.net.NoRouteToHostException on Machine 1 Exception in thread "main" java.net.NoRouteToHostException: No route to host (Host unreachable) at java.net...
Mino_e
0

votes
0

answer
4

Views

Hosts private IP addresses changed after modifying systems timezone, date and time

Hope everybody feels good. I searched online but I think it might be hard to find an answer. Here's my problem: Last Friday I wanted to do a test on my remote hosts, I changed the timezone, date and time to the next DST date/time scheduled. After a couple of minutes, when trying to reconnect to the...
0

votes
0

answer
6

Views

Subnet problem in VPC creation via cloudformation

I am a noob in networking. I am creating VPC via cloudformation. In that, I have to add 4 subnets. When I run that template it is giving me this error. Template error: Fn::Select cannot select nonexistent value at index 3 But, when I try to create with 3 subnets it gets created. My Template sample:...
ImPurshu
1

votes
2

answer
2.2k

Views

How to terminate a socket accept blocking

I developed a server with C code. I used the accept() function to keep my server listening on a giving socket. My server is launched in a thread. Now in other thread and for some condition I want to stop the accept() blocking and then close the related socket. How I can do that? Could shutdown() do...
MOHAMED
1

votes
1

answer
666

Views

Why in chord p2p system, the finger table don't store all the information about the other nodes?

I am learning chord system. But I have a question about its querying algorithm. Why the finger table in chord only store the information of successor(n+2^{i-1}) but not all the other nodes in the ring? Like in this picture, If I want to search key 7 at node 1. If node 1 stores all the address of nod...
deathlee
1

votes
1

answer
445

Views

Copy files to a network path using python script

I am trying to copy files from hard disk to a network path drive using python script. MY script is simple however it doesnt work since it seems that I need to add credentials in order to perftorm such action. import glob, os import shutil myPath = "E://data//" dst = "C://Users//user//networkPath//...
Jose Ramon
1

votes
1

answer
3.1k

Views

Python socket error no 35

I have a strange problem. Trying to write a network app in python. Currently I am using osx and I have troubles with sockets. My code works fine on debian, but when I try to use recv(buff_size) on a connected tcp socket I get this error: socket.error: [Errno 35] Resource temporarily unavailable
fulaphex
1

votes
1

answer
164

Views

What's a compact way of casting a struct into a byte slice in Go?

When writing network code we often find ourselves populating structs from byte slices to access the data in form of an object. Let's take this struct type PACKETHEAD struct { Type uint16 Size uint16 Hash uint32 } and a byte slice that has been somehow populated with data data := make([]byte, 1024) M...
I .
0

votes
0

answer
3

Views

Meta tags not being acknowledged on Apex domain

I have added the required meta tags for sharing rich content to social networks, to my site (https://matterbase.io). The meta tags can be tested on IFramely When I share the url with a www subdomain, both the Twitter Card Validator and LinkedIn Post Inspector works. They are detecting the right meta...
Herm
0

votes
1

answer
73

Views

Android URL wont connect after service is running for a longer period

I'm not sure how to even put a good title to this question. I have the following class in my Android app: class Translator { public Translator() { } public String bingTranslate(String text) throws IOException { String response; String textEncoded= URLEncoder.encode(text, "utf-8"); String url = "http...
Emil Borconi
1

votes
1

answer
222

Views

Wrong size of IPv4 packets in DPDK

I have these packets saved in pcap file (shown in wireshark) Iam parsing these packets using DPDK and for some reason i cannot use mbufs. To parse them iam using struct ipv4_hdr and struct ether_hdr as following: eth_hdr = (struct ether_hdr *) pckt; ip_hdr = (struct ipv4_hdr *)((unsigned char *) pck...
Filip Kočica
1

votes
2

answer
1.5k

Views

Flutter - Default image to Image.network when it fails

Is there any way you can control exceptions launched by Image.network() so you can provide it a default AssetImage ?
Jesús Martín
1

votes
2

answer
152

Views

Does DDS communication works between 2 computers in different networks?

I am quite new to DDS. I am using ROS2 which is built on DDS. I want to run a ROS2 based publisher and subscribe to a RTI Connext based Simulink model both located on different PC's. I want communication between 2 different PC's. Questions : Should both PC's be located in the same network. Should mu...
Vishal Rawat
1

votes
1

answer
71

Views

cluster walktrap returns three communities, but when plotting they are all on top of each other, with no visible clustering

I've been following documentation tutorials and even lecture tutorials step by step. But for some reason the output of my plot is like this: The output doesn't make any sense to me. There clearly is no structure, or communities in this current plot, as you can see that the bigger circles are all ove...
Anton Heikinheimo
1

votes
1

answer
55

Views

Why specify same port in sin_port in both server and client?

I am learning Socket-programming in C++. I understand that the socket must bind to the server address and in the client side, there is an internal bind() when connect() is called. The server listens on the port specified in sin_port of the struct sockaddr_in. But when I specify the same port to sin_...
jay
1

votes
1

answer
84

Views

bad_weak_ptr with boost smart pointer

I develop a desktop chat with boost asio and beast (for browser support). I use this architecture : But, when building, I have an issue : bad_weak_ptr, I don't know what is wrong :s Here a link to the source https://onlinegdb.com/BkFhDGHe4 Update1 : I remove run() function into constructor and move...
Vana

View additional questions