FAQ Database Discussion Community


Where in the TCP/IP stack the actual payload is placed

networking
I am a beginner in this area and reading the about the tcp/ip stack I see that each layer has its own payload field. If we assume that the structure of the stack components is as follows: Aplication Transport Network Data Link Physical Link And we know that each of...

Set hostname for GCE instance - instead of IP address

networking,debian,godaddy,google-compute-engine,google-cloud-dns
I have a new GCE instance(Debian Wheezy), using Google based apps domain like: www.example.com I want to set a hostname for this server I have deployed a PHP webapp(Current URL: {IP}/appname) But, I want to use the hostname instead of IP and call the app URL. Eg. http://{servername}/appname I...

Swift ios viewDidLoad or viewDidAppear

ios,networking,segue,lifecycle
I am new to Swift and im not sure how I should go foward with this. I have a table view that I populate with data from an external API. Then if you press on one item/row in the tableview you will get directed to that items "detail" page. When...

two lines with the same number of address destinnazione in ROUTING TABLE

table,networking,routing,ip
I am studing a particular case in routing table. As the title i have this table for a particular router in a net: destin.IP Mask NextHop Interface 193.14.5.160 255.255.255.0 ---.---.---.--- m0 193.14.5.192 255.255.255.0 ---.---.---.--- m1 111.0.0.0 255.0.0.0 ---.---.---.--- m0 192.16.7.0 255.255.255.0 111.15.17.32 m0 194.17.21.0 255.255.255.0 111.20.18.14 m0 194.17.21.16 255.255.255.0 111.20.18.14...

How will a socket act when the data is sent faster than it can be processed?

sockets,networking,tcp,network-programming,flow-control
I am not quite clear some detail mechanisms of TCP and sockets. One client connects to a server through TCP, and sends data to server. What happens if the speed of sending is far greater than the speed of processing? For example, if the client sends 1MiB per second, but...

Can I filter an Android app by the mobile network operator?

android,networking,filter,operator-keyword,carrier
For example, I want to make a specific app so that it only shows up and can be downloaded by users on the Vodafone network.

Where, in the e1000 linux code, can I zeroize rx/tx network packets?

c,linux,networking,kernel
I'd need to know where can I make zeroization for the received/transmitted network packets in the e1000 linux driver. I need to know this to pass one compliance requirement, but I'm not able to find in the code of the e1000 where to do zeroization of the network packet buffer...

WPF C# OpenFileDialog does not show Network Storage

c#,wpf,winforms,networking,openfiledialog
At the moment i am working on a C# WPF-Project. It uses the Microsoft.Win32.OpenFileDialog and the System.Windows.Forms.FolderBrowserDialog, which both work as expected except for the following problem: They both do not show my Networkdrives! While the default Windows explorer (Win 8.1 btw.) and the OpenFileDialog in an older Winforms-Project do...

Background thread in Windows Phone 8.1 app

c#,multithreading,networking,windows-runtime,windows-phone-8.1
I'm working on a Windows Phone 8.1 shopping application. I have a continously running thread in the app which downloads the users basket and saves it in a local cache to imporve performance. So far what I have is something like this: while(UserLoggedIn) { await Networking.getBasket(); await Task.Delay(5000); } This...

Node JS TCP Proxy: Reuse socket in callback function

node.js,networking,tcp,proxy,event-handling
I'm trying to implement a TCP proxy in Node JS. I only have some experience with Javascript so I met a lot of problems along the way. I've done a lot of searching for this one but had no luck. The problem occurs when browser sends a CONNECT request for...

Powershell script to copy file to network runs manually, but not from Task Scheduler

powershell,networking,scheduled-tasks,copy-item
I am running a script to copy a file from a local to network location. The script works if I call it myself via powershell, but not from Task Scheduler. I have looked at this and many other articles, but I cannot get it to work. Right now I can...

Python Networking

python,networking,client,server
So I have create a socket and am using the function socket.bind() and keep on getting the following error: Only one usage of each socket address (protocol/network address/port) is normally permitted Here is my code: import socket s = socket.socket() host = socket.gethostname() port = 12345 s.bind((host, port)) s.listen(5) while...

Why socklent_t * is used in accept() in socket programming?

c,sockets,networking
In C socket programming the accept() declaration looks like: int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); I can understand the uses of sockfd, struct sockaddr *addr. But why we have to pass the address of the length of the socket, it could have been socklen_t. Because if the accept()...

Can I connect to ad-hoc wifi network on Android while hosting another ad-hoc network?

android,networking,android-wifi,wifi-direct
I need to dynamically construct network of interconnected Android devices. I have seen previous question in topic which says it's impossible: Android Wifi direct multiple connection ad-hoc However, Android documentation says that since Android 4.0 it is possible to make an ad-hoc connection: http://developer.android.com/guide/topics/connectivity/wifip2p.html I would love to check it...

Error 10051 while trying to connect socket

python,linux,sockets,networking
I recently built a socket-server chat in linux. When I try to connect my windows 8.1 main computer (Both under the same subnet), i get an: [Errno 10051]: A socket operation was attempted to an unreachable network Code: import socket import datetime import getpass # Get username import sys import...

Receive UDP Packets on Google Compute Engine

java,networking,udp,port,google-compute-engine
my task is to receive UDP packets on an Google Compute Engine. Given is the port, which is 300 and I already have a simple Java program which can handle these UDP packets. My problem now. Get the UDP packets to my Java program. For that I don't know how...

How to differentiate a QNetworkReply is aborted or not?

c++,qt,networking
I have the following code: connect(&netMgr, SIGNAL(finished(QNetworkReply*)), this, SLOT(loadFinished(QNetworkReply*)), Qt::UniqueConnection); reply = netMgr.get(qheader); How could I tell whether the loadFinished(); slot is triggered by calling reply->abort() or not?...

Two ethernet adapter [closed]

networking,ping,network-interface,network-connection
I have mounted two ethernet adapter on my pc and each of them has connected to a seperate network. The problem is that only one of them is active at a same time. In other verb I can ping only through one of them at the same time and if...

auditing opened/closed ports on Linux

linux,networking,port
Is there an auditing tool to check which and when ports are opened and closed on Linux? My goal is to run my application and check its ports usage. lsof or netstat don't fit because they just tell me which ports are currently opened, and looping on such command won't...

Delay packets using Netem on Virtual Machine

ubuntu,networking,terminal,virtualbox
I'm trying to delay packets using Ubuntu on a virtual machine, but when I type in the terminal: tc qdisc add dev eth0 root netem delay 100ms I get: RTNETLINK answers: Operation not permitted. I'm working as an intern and I got assigned to a clock synchronization project on a...

Barracuda 340 Load Balancer Won't Port Forward

networking,load-balancing
We have Barracuda 340 that we are trying to set up for load balancing across multiple servers, each with multiple applications running. If I set up a service with the specific port we are sending UDP packets to, and one IP per Real Server (with the same port as the...

How do I run a simultaneous scan in nmap?

networking,tcp,nmap
I am trying to run a simultaneous nmap scan to do the following http://i.stack.imgur.com/7skvt.png I have divided what I need to do into 2 parts nmap -sN -p 21-25,80,139,8080 nmap -T 5 -sU -p 53,11 thevictim.com/16 How do I run them as a simultaneous scan? Also, are my above commands...

Unable to receive packet using jpcap in WiFi network

java,networking,winpcap,jpcap
I want to send and receive packets in WiFi network. using the following codes To send packet. int id = Integer.parseInt(text_device.getText().trim()); JpcapCaptor jpcap = JpcapCaptor.openDevice(devices[id], 65535, true, 20); JpcapSender sender = jpcap.getJpcapSenderInstance(); TCPPacket packet = new TCPPacket(210, 210, 0l, 12l, true, true, true, true, true, true, true, true, 1, 2);...

How can i set the port mapping when a Linux host serves as a real router? [closed]

linux,networking,virtualbox,router
Just a little lab. I wanna make a Debian host be a router for other hosts, and all of them are in the virtualbox. I have used the eth0 of router host to connect the internet through NAT, and eth1 to be the gateway of internal network(192.168.1.0/24). And now, the...

virtualbox - connect from one vm to another

networking,virtualbox
In one VM, I have a Win XP machine that has a service listening on 0.0.0.0:10000 I can connect from the Win XP to this service, but I have another VM (CentOS) that I would like to connect. When I try to connect from my CentOS, it says connection refused....

If getaddrinfo fails once it fails forever (even after network is ready)

c,linux,networking,archlinux,getaddrinfo
I am writing a C application which is run as a systemd service on boot (distro: Arch Linux) and which shall connect to a server. Because the application is run on boot it eventually happens that the network connection is not yet established. This naturally leads to a failure of...

How does The Switch Initially Works

networking
I want to ask question about the Ethernet Switches , lets consider a switch with 8 ports only , and I want to set up a local are network of 8 PCs, if I want each PC to communicate with each other, and I plug in the whole PCs with...

Getting two messages from receive when only one is sent

c,sockets,networking
I wrote a server that should wait for messages from a client after opening a connection to it: while(1){ if(recv(mySocket, buffer, 1000, 0) < 1){ continue; } printf("Message received: %s", buffer); } I checked with wireshark which packets were sent to this server, but for every packet sent there...

Remove Static IP & DNS on all Interfaces - Batch

windows,batch-file,networking,reset
I need a Window's batch script that will remove the static IP address (Change to DHCP), Remove the set DNS, and enable all the network interfaces without having to specify the interface name; since some interfaces may be named differently.

Websocket frame, TCP segment: the relationship?

sockets,networking,tcp,websocket
Websocket is high level protocol based on TCP. Websocket has its own frame https://tools.ietf.org/html/rfc6455#section-5.2 TCP also has its own segment: http://en.wikipedia.org/wiki/Transmission_Control_Protocol So, when using Websocket, send data: First, the data is wrapped in Websocket frame, then, the frame is packed in TCP segments, finally, send the TCP segments out. Am...

Getting IP address of Android when connected to Cellular Network

android,networking,ip
Is there any Simple Way to get the IP address Of my phone when connected to internet through mobile data Network. For getting WiFi IP address i am using following simple Technique. WifiManager wm = (WifiManager) getSystemService(WIFI_SERVICE); String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress()); Is there any way similar to above to get...

Css ( tree connectors )

html,css,css3,networking,treeview
i worked in a network site and i have a problem with the tree connectors so here is my css : .ch-item { width: 100%; height: 100%; border-radius: 50%; position: relative; cursor:pointer box-shadow: 0 1px 3px rgba(0,0,0,0.2); } .ch-thumb { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; position: absolute;...

IP needed on Linux bridge between 2 TAP interfaces? [closed]

linux,networking,openvpn,tun
I am trying to setup openvpn on a server so that I have 2 different tap interfaces (tap0 and tap1) and then a bridge connecting those interfaces. The idea is that a client on tap0 will be able to talk to a client on tap1 and vice-versa. There is no...

Android Socket Connection Refused ETIMEDOUT (Connection timed out)

java,android,sockets,networking
I have created a server on my PC (localhost and port is 8080) and am trying to connect to it on my android device. But every time i try it gives me this error: java.net.ConnectException: failed to connect to /10.0.2.2 (port 8080): connect failed: ETIMEDOUT (Connection timed out) I have...

Token ring protocol Efficiency and Cycle time?

networking,formula,concept,network-efficiency
I read Token ring protocol from a book Forouzon. According to book, Let N be the number of stations in the ring, THT the token holding time, Tt be the transmission time of packet, Tp be the propagation time of packet on Channel/ Link. Then Cycle Time = n *...

Find available wifi connections in Android

android,networking,android-wifi
I am trying to create a help wizard to recover from bad network connections in the app. One test case I hope to handle is the case where an end user has WiFi turned off, WiFi is available, and the mobile network is slower than the WiFi network. In this...

Optimizing Ansible Transport\SSH for Unconventional Networks

networking,optimization,ssh,ansible
I'm wondering how to optimise Ansible to work with a network radically different to one where use cases where Accelerate and default might not necessarily be beneficial. In this scenario I'm not dealing with a virtual network, nor am I dealing with servers. I'm dealing with hundreds of embedded, with...

how can I connect to a docker from the outside host machine (mac)

networking,docker
I am new to dockers. I have ran a docker container with mongo running it (using boot2docker) docker run --name some-mongo -p 27017:27017 -d mongo inside the docker: [email protected]:/# mongo MongoDB shell version: 3.0.2 connecting to: test Server has startup warnings: 2015-05-12T08:49:56.130+0000 I CONTROL [initandlisten] 2015-05-12T08:49:56.130+0000 I CONTROL [initandlisten] **...

How to add a name to namespace?

linux,networking,namespaces,ip
As I know, I can use the "clone" to create a process and a namespace, but the namespace created in this way has no name. For example, I create a network namespace with the parameter: CLONE_NEWNS, but in the command "ip netns list", there is no namespace list because the...

Ip address with “http://”

networking,ip
i have a doubt about the ip address. Is it correct to write the "http://" before the ip address? Example http://192.168.1.1 There is any situation that the "http://" prefix must be write? I just have to connect to a device in LAN, but i'm asking in general. If i write...

how can i find internet bandwidth for single request [duplicate]

java,networking
This question already has an answer here: java.net.URL read stream to byte[] 6 answers For Example URL yahoo = new URL("http://www.gmail.com/"); So I need to Find the Total internet usage for this request using java.....

A simple client/server app [closed]

java,networking,client,server
I'm fairly new to Java coding (and to programming in general) and I'm studying a lot to catch up and having been through a lot of fundamentals (the language, OO concepts, Genrics, Concurrency,Collections etc..)and my future goal being Android programming, I'm trying to get started with networking (simple apps, just...

Communicating between a PC and UR5 Universal Robotics Robot Arm using TCP/IP LabVIEW

sockets,networking,tcp,labview,robotics
I have a UR5 Universal Robotics Robot Arm and PC connected via ethernet that I am attempting to have talk to each other via LabVIEW (just send strings back and forth). I have already managed to read communication from the robot to the PC using the TCP Listen VI and...

EOFException: java.io.EOFException is thrown in Java client-server application

java,networking,network-programming
I've programmed the following client-server pair to set up a very simplified version of an IPSec-connection (Cryptography-related). The problem is, that on the second call to readObject(), i.e.: // Receive finished message from server finishedMessage = (BigInteger) inputStream.readObject(); I get a java.io.EOFException. It should be said, that on most runs...

How web server send data to web browser over network?

sockets,networking,webserver
I want to know how web server can reach to client which is behind the router? When i tried connect to ip of my friend i didn't success (we are not in local network), and when web server try to send data over network to him it success. How ?

Client tries to find server in the same LAN

rest,networking
In my scenario I want to create a webservice running on a Raspberry Pi which offers a restful API. Beside a webapp made with AngularJS I would like to know, how I could find such my server in that is in the same LAN? Like inside an Android application for...

when does poll() return POLLERR

c,sockets,networking,tcp,polling
server.c -> always recv client data(use poll() to confirm whether an error occurred) client.c -> always send data to server I exec server.c and client.c ,then i try to kill client.c process. But the POLLERR flag never be set. The man page only say POLLERR Error condition (output only) When...

Can a class call another function in a class without the firstclass needing to know the class that is it

java,class,networking,handler,packets
So I might have worded the question badly so I will try to explain what I mean. So i have a game server that interfaces with unity written in java and I was wandering if there was a better way of handling the received TCP stream data. Then someone suggested...

“Network services system are not compatible with this version .” Debian 8 [closed]

linux,networking,debian
Helllo, I'm using Debian 8 and it runs correctly, but I restart my computer after installing icons and gnome shell extensions and that happened :( any ideas? Translate to English "Network services system are not compatible with this version" Thank you for help ...

salt mine for all network interfaces

networking,salt-stack,collectd
I'm having difficulty configuring collectd.conf using the interface plugin through salt. The collectd.conf expects a list of network interfaces to monitor like: <Plugin interface> Interface "em1" Interface "em2" </Plugin> I've worked out that I need to use a salt mine to pull the grains into the master - which is...

Host Only connection NetBSD to Windows

networking,virtualization,netbsd
I have NetBSD-4.0.1-x68k installed as a guest virtual machine on Windows (using the XM6i 68030 emulator for windows 7). I am trying to setup a host only connection on the NetBSD guest. However, I can't ping the guest from the host unless I run: tcpdump -i ne0 #executed on guest...

how to visualise hadoop interface installed in ubuntu server in a remote windows machine

hadoop,networking,remote-server,ubuntu-server
I have installed hadoop in Ubuntu server ,and I want to visualise the hadoop interface in a windows machine using the browser. the two machines are in the same network. I've tried in the browser : @IP:8088 and @IP:9001 I know i'm missing something, i need your help . thank...

VS2008 Build C++ Project on Network Drive

c++,networking,visual-studio-2008,compiler-errors,virtual-machine
The short of it is, I have VMs for building different scenarios of software. I do not wish to snapshot the code as it is backup elsewhere so I am storing all my code on the host PC and only building/testing in VMs to save space. Unfortunately I am receiving...

A few related questions regarding traceroutes in c:

c,sockets,networking,traceroute
According to Wikipedia, a traceroute program Traceroute, by default, sends a sequence of User Datagram Protocol (UDP) packets addressed to a destination host[...] The time-to-live (TTL) value, also known as hop limit, is used in determining the intermediate routers being traversed towards the destination. Routers decrement packets' TTL value by...

Service dies when Nmap is run

networking,nmap
I am having a weird problem. I have a service running on port 8888 on one of my many servers in a cluster. When I run nmap on my gateway to get all the IPs inside my network, this service miraculously dies. Since nmap does a port scan too, It...

Setting Static IP Address VB.net

vb.net,windows,networking
I am writing a script for setting static ip to computers. it reads a file that has mac addr - ip addr pair. based on the computers mac address it gets its ip address from the file. I have problem setting this up. I have never done any kind of...

How to reduce high network accessing time?

networking,wifi,router,bandwidth,switching
What we have My office network have a new 20mbps dial-up connection. The internet is connected to DLINK 600-L Wifi Router. An LAN port of router is connected to DLINK's gigabyte switch that connects all the PCs in the building. We do have a good traffic in internal network due...

Designing a high performance network logger solution for a busy server

performance,sockets,networking,design,udp
I have a highly busy server that keep send/receive massive amount of data through the network, we currently write all the server logs to the same file system where the server is installed and that is causing us to get insufficient disk space after only 1 hour, that file system...

C# Protobuf .NET Using Preexisting Byte Array

c#,networking,serialization,protobuf-net,objectpool
So I am working with Protobufs in .NET and I am trying to incorporate them with a buffer pool and AsyncSocketEventArgs pool. The buffer pool assigns sections of a huge byte array to the event args. So, the problem, I can't figure out a way to have Protobufs serialize directly...

How to determine the network bandwidth usage for a server call?

networking,network-programming
I would like to determine the network bandwidth usage when I make a call like below. https://example.com/logEvent?clientId=samsung+sm-t320&sessionId=2AA8A8E2050120C6-60000137C0001656&clientOs=4.4.2&clientVersion=33.0.0&appId=com.abc.app&accountId=f5370a7b-6356-4a0b-b139-9b42ad23e09c&issueId=1&code=ArticleDownloadStarted I am open to using some developer tools available as an extension to the browser or other standalone tools or a way of doing this programmatically in Java. Background: I am being told...

Dynamically populating List View from Website XML data Android

java,android,xml,eclipse,networking
In my home screen (Main Activity) I have a List View, named lv. I have a separate method, created in MainActivity.java which returns an List of Strings which derived from parsed XML data. See below: public static List<String> getLocs(){ List<String> sts = new ArrayList<String>(); try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory...

How to set-up dial-up wifi connection using a router?

networking,wifi,router,wireless,broadband
I use a broadband connection that requires dial-up connection to get connected to the internet. Now, I know that, the broadband can be converted into a wireless connection using a wifi router. But, I want to be able to connect using a dial-up even after the wireless routing. I know...

docker networking - Could not discover any bindable network interfaces

linux,osx,networking,docker,boot2docker
I am trying to execute a jar from within a docker container which tries to start a service and detects an IP and port of a remote service and tries to connect to it. But as soon as I do that I get this exception - Exception occured: org.teleal.cling.transport.spi.InitializationException: Could...

How does a machine in LAN communicate with external machine? [closed]

networking,lan
Suppose a host machine A in LAN has address like this 192.168.0.123. It connects to the Internet through a default gateway 192.168.0.1. When A sends data to an external machine B, how does the gateway handle the IP packet? When B's response reaches the gateway, how does the gateway locate...

How to communicate between Docker containers via “hostname”

networking,docker
I plan to split my monolytic server up into many small docker containers but haven't found a good solution for "inter-container communication" yet. This is my target szenario: I know how to link containers together and how to expose ports, but none of this solutions are satisfying to me. Is...

File upload in chunks via http post in java on android

java,android,networking
I am asked to send a file using http post. The file should be sent in chunks of 1 mb. I looked through this code IntentService to upload a file and it looks like I could use it in my case. However, I have to supply the starting byte of...

How to POST a response to Harvard's “Guess my Word” game using JSoup

java,html,http,networking,jsoup
I'm trying to make a bot in order to determine the optimal way to play Harvard's Guess my Word! game. I discovered that there is some sort of post request using chrome's "inspect element" feature when a user submits a guess. I wish to be able to POST the guesses...

How to track memory usage of the networking subsystem in the Linux kernel?

linux,performance,networking,linux-kernel,operating-system
Is there a way to determine how much physical memory is being used by the network subsystem in the Linux kernel at any given point in time? I understand the per-connection memory limits can be specified via sysctl. But is there a tool to peek inside the TCP/IP stack and...

How does netstat determine symbolic hostname?

linux,unix,networking,tcp,netstat
I was trying to understand what the --numeric/-n flag of netstat does? Manual says the following about --numeric/-n --numeric , -n Show numerical addresses instead of trying to determine symbolic host, port or user names. Following is a line of output with "-n" option tcp 0 0 :::8080 :::* LISTEN...

Drop sniffed packet on matching content

c++,c,linux,sockets,networking
I have made a packet sniffer in C using rawsockets that sniffs all outgoing UDP traffic on a specified port. I now want to drop certain outgoing UDP packets that match a certain payload, so that they can be resent with a different payload. A sniffer will no longer be...

Purpose of Pseudo/Colon Header Fields

http,networking,http-headers,protocols,http2
As the title suggests, I'm looking for some information on the purpose of pseudo/colon header fields, i.e. I want to know why we have a second type of header field... Also - I know pseudo/colon header fields are used in http2 in place of the message and status lines (^^^the...

UDP and TCP always use same IP for one client?

python,sockets,networking,tcp,udp
I've made a server (python, twisted) for my online game. Started with TCP, then later added constant updates with UDP (saw a big speed improvement). But now, I need to connect each UDP socket client with each TCP client. I'm doing this by having each client first connect to the...

Internet Explorer 11 default document view mode to Edge

jquery,asp.net,internet-explorer,networking,intranet
I have windows 7 and IE 11 installed in my local machine. I working on ASP.NET, C# web application used bootstrap, Jquery etc. I have created one checkbox dropdown list (ref: http://www.aspsnippets.com/Articles/Multiple-Select-MultiSelect-DropDownList-with-CheckBoxes-in-ASPNet-using-jQuery.aspx). But my local intranet website is showing default document view mode 7 and check box drop down list...

what will be done if the buffer socket full

networking,udp,buffer,protocol-buffers
what will be done if the buffer socket full in an UDP protocol? does it replace the old data with the new one? ot it just drop the new data? In case that it's not related with UDP protocols, and it's specified in the code, how to do this in...

How to detect the presence of mobile devices in an area using WiFi router

networking,wifi,osx-yosemite,packet-sniffers,wificonfiguration
I have a requirement to detect the presence of mobile devices inside an area using my WiFi router,without connecting to them , So I did some research on it and found some interesting things like WiFi sniffing, but for testing purpose I want to use my Mac machine (Yosemite) as...

What's the simplest way to make a local address socket publicly available? [closed]

sockets,http,networking
I have a HTTP enabled device on my local network that listens at let's say 192.168.1.32:9427. What's the simplest way to make public access to that socket?

Web service not accessible on host

web-services,networking,iis-7,vmware-workstation
Folks, I published a web service on iis7 on a remote win on vm ware and I can't acess it on the host os, even though I set up Nat port forwarding on vm ware and opened the corresponding port on the host`s firewall settings. My web service ip on...

how to setup IPs from different subnet on 1 network card, Centos 6.6

linux,networking,ip
one centos 6.6 server, need add 15 Ips to it, my boss gives me 15 Ips from 2 different subnet. server Ip 173.245.7xx.xxx ips 173.245.7xx.xxx/29 23.27.1xxx.xxx/28 this is what I did, all the ips in 173.245.7xx.xxx/29 works fine, all the ips in 23.27.1xxx.xxx/28 I can ping it from other server...

CURL fail to send POST request with filestream

php,file,post,networking,curl
Trying to send filestream with other data to an API , but it return the error: The video provided was null Here is my code: function create_video($files) { $api = "http://api.brightcove.com/services/post"; $local_file_list = $files['file']['tmp_name']; foreach ($local_file_list as $local_file) { try { $fp = fopen($local_file, 'r'); $ch = curl_init(); if (FALSE...

Why do inet_ntoa and inet_ntop “reverse” the bytes?

c,networking,winsock,byte-order
This is a rather basic problem with which, to my surprise, I've had a problem today. It looks to me like inet_pton and inet_ntoa are reversing the bytes of the IP address they're given: DWORD IP; inet_pton(AF_INET, "192.168.0.1", &IP); printf("%08X\n", IP); This will print 0100A8C0. And well, if we break...

Reduce Storage, By Juggling Packets in Network?

networking,tcp,cloud,server,transfer
I want to preface this by saying, I have a feeling that this idea will not work the way I'm imagining, but I'm sure why. Its likely I'm making some sort of false assumption about the way the internet works. Lets say server A has a file of size 1024...

TCP Window Update Scenarios

networking,tcp,webserver
In our application, we are using apache tomcat webserver running in 8081. It receives POST message from Client at 16:42:06.87 IST timeframe. It acknowledges by ACK packet with window size of 62356 bytes after 200ms. After some seconds (3-5 seconds), it also sends similar ACK packet but as a "TCP...

php curl response blank randomly

php,networking,curl
We are implementing api with curl. We send xml request and get xml response. Some cases randomly we did not receive any response. When we co-ordinated with api provider they told there is no request hit on there server in case of blank response. How we will know, its not...

iptables put all forwarding rules in prerouting

linux,security,networking,firewall,iptables
I have a question about security in iptables. Is it safe to give ACCEPT policy to FORWARD chain? I mean, if packet gets there, it has come through PREROUTING table and in PREROUTING you only change destination ip of packet if you "like it". all packets that get in FORWARD...

How can I make a special URL like "http://appname/

networking,nginx,proxy,reverse-proxy
I know some applications run on companies' internal networks with URLS like "https:/statsd/", so I was wondering how to go about doing this. I was thinking maybe I would use a reverse proxy like Nginx to proxy all urls that match a particular regex to the correct server, but I...

TCP Three way handshake - Piggybacking ACKs

networking,tcp,protocols,handshake
I understand that in the three-way handshake, sometimes the receiving end will send a SYNACK packet when establishing a connection (piggybacking), but when would it ever send a SYN and then an ACK packet? For example: ->SYN <-SYN_ACK ->ACK versus: ->SYN <-SYN ->SYN_ACK Thanks!...

How quickly does netstat capture network snapshot?

networking,tcp,netstat
I have a machine where there are a large number of connects and disconnects every second(or even lesser). I need to capture the network snapshot at one instance of time. But I see that netstat takes some time to return the result by then a lot of sockets would get...

What is a regular expression for a WPA-bssid

regex,networking,format,wpa,bssid
is this format ? wpa-bssid 00:1a:2b:3c:4d:5e or wpa-bssid 00:12:26:36:48:58 can I use this regex? ^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$ any help woulb be appreciated...

Is there a way to check if a certain port is open on server?

linux,windows,networking,ping
Just as you'd ping an IP of to a server to check if it is up, can we also check if, on that running server, a port is active/open? this just comes from my head,but can you be more specific in your ping statement? `ping 127.0.0.1:7004` I know this command...

Bridging ethernet traffic between two interfaces (USB-CDC ECM and Ethernet) using an mbed LPC1768

linux,networking,embedded,wireshark,ethernet
I'm working on a project where I have a LPC1768 MBED device. I can connect this device by USB with the computer. The device itself has a working outgoing Ethernet connection which I can read using the MBED library. On the embedded device, internet traffic enters with the USB-CDC ECM...

How do I get an ip address from a domain name in Java?

java,networking,amazon-web-services,dns
How do I get an ip address corresponding to a domain name in Java? Like if I have "domainName.com", how do I get "10.123.97.4"?

Node JS TCP Proxy: Set up HTTP Tunnel using Node JS

node.js,networking,tcp,proxy,http-tunneling
I'm trying to implement a TCP proxy in Node JS. I only have some experience with Javascript so I met a lot of problems along the way. I've done a lot of searching for this one but had no luck. I want to implement a two-hop TCP connection for HTTPS...

already defined class C++

c++,visual-studio,networking,sfml
I don't understand one think. I have a header file called "network.h", and there are declaration of the class with functions. In "network.cpp" file I've these functions. When want include "network.h" in main.cpp and compile my project (Microsoft Visual Studio 2007) I got this message: network.obj : error LNK2005: "class...

Android 127.0.0.1 (loopback) connection: Works on WiFi, fails with 3G/4G

android,networking,mobile-webkit,loopback,3g-network
My application embeds a local http server that can be accessed through the loopback device at URL: http://127.0.0.1:8080/ It works fine with WiFi enabled, it also works fine with no external network (no WiFi, no 3G) but it fails when WiFi is disabled and 3G enabled. Connecting through adb shell...

How can I update Android SDK without internet using updated SDK of other computer?

android,networking,download,sdk,offline
Websites, Blog or Videos with working files like Lynda Tutorials I don't have enough cash to enrol

How to use Espresso Idling Resource for network calls

android,networking,android-espresso,idle-processing
Im trying to use Espresso to test my UI. When i login into my application, i do a call to Parse API (network call) to verify the username and password. If all is well the user gets directed to a new activity. I want to test this, but i cant...

Timing packets on a traffic server

python,unix,networking,network-programming,server
I have a proxy traffic server which is an extra hop on a network and is handling large quantity's of traffic. I would like to calculate the cost in seconds of how long it takes for the proxy server to handle the incoming request, process them and forward it on....

InputStream in.read() behaving differently than expected

java,sockets,networking,inputstream
I am trying to transfer a text file to another server using TCP and it is behaving differently than expected. The code sending the data is: System.out.println("sending file name..."); String outputFileNameWithDelimiter = outputFileName + "\r\n"; //These 4 lines send the fileName with the delimiter byte[] fileNameData = outputFileNameWithDelimiter.getBytes("US-ASCII"); outToCompression.write(fileNameData, 0,...

server listens on 127.0.0.1, do I need firewall?

security,networking,localhost,firewall
I run a "private" service on my computer, which I do not want to be accessible from other computers. I configured it to only listen on 127.0.0.1. Do I still need a restrictive firewall? For example, is it possible to receive a packet on eth1, which would somehow have 127.0.0.1...

how TCP segments can be misrouted

networking,tcp,ip,tcp-ip
I am just wondering, how the TCP segments can be mis-routed, isn't the original source and the ultimate destination in the IP header never get touched!