tcp-ip

when firefox 38 sent FIN,ACK after server ack an http get from firefox?

♀尐吖头ヾ 提交于 2019-12-08 03:24:27
问题 see attached wireshark log:(pls click it to make it bigger enough for view): in packet 37 , client sent a http get to server in packet 38 , server response ack in packet 39, after client wait 5 seconds, client sent a [FIN,ACK] client is a Firefox 38 on a win 7 system. my question is: why client sent a FIN,ACK after 5 seconds? It is because after wait 5 seconds, nothing come from server? if my guess true, is there any setting in Firefox to extend this, as server is slow and 5 seconds is short.

Connecting to a 2014 SQLEXPRESS database on an externally hosted computer through TCP/IP

半城伤御伤魂 提交于 2019-12-06 15:41:58
I am working on a system whereby I can update a small database from several locations. I wish to host the database on my home computer and allow connections to be made to the database from two other locations through tcp/ip. I have done the following thus far: Enabled TCP/IP for SQLEXPRESS Allowed port 1433 tcp on my firewall Allowed port 1434 udp on my firewall Enabled SQLEXPRESS server to allow remote connections I was hoping to be able to connect to the database by opening sql management studio on the other pcs and using the following format [ExternalIP]\SQLEXPRESS but as of yet I have been

iOS/Android - TCP/IP over Bluetooth

自作多情 提交于 2019-12-06 13:28:04
问题 I will briefly describe what I am trying to do and any help will be appreciated. I have some devices (I will refer to them as 'Devices') (basically sensors) which are connected to some other devices (I will refer to them as 'ConnectDevices') using Ethernet (TCP/IP). These Devices basically send some data values they are monitoring. Th ConnectDevices have two interfaces: Ethernet + Bluetooth (2.1 + EDR) and they are connected to a router and they all form a LAN. Hence, my question is: is it

Labview programming

允我心安 提交于 2019-12-06 01:28:17
Our project is LIDAR which is based on physics. The total equipment is connected to server which consists of various sensors. Server gives total information about the equipment like temperature, humidity etc. Server and laptop are connected through LAN. Our work is to develop a software using labview which interfaces the equipment with the laptop. To achieve that first we have to connect the server to the laptop. We have tried in so many ways using TCP/IP vi in labview. Both server and client programs are required to do this. In the server program we are using TCP Listen and in the client

How to check who uses certain port in C#?

Deadly 提交于 2019-12-06 00:53:51
How to determine what process/what executable is using, say, port 80 of my localhost? I would like to know, for example if it is Apache Server, etc. Can we get some information from ipProperties.GetActiveTcpListeners() ? I've only seen local endpoint, remote endpoint and state. You can pipe the output of netstat -o and parse it, but that's probably a terrible idea full of headaches and edge cases. Behind the scenes, netstat -o uses the GetTcpTable2 API method from the IPHelper library, which returns a MIB_TCPTABLE2 structure, with each port represented by a MIB_TCPROW2 structure. You'll have

iOS/Android - TCP/IP over Bluetooth

爱⌒轻易说出口 提交于 2019-12-04 20:27:21
I will briefly describe what I am trying to do and any help will be appreciated. I have some devices (I will refer to them as 'Devices') (basically sensors) which are connected to some other devices (I will refer to them as 'ConnectDevices') using Ethernet (TCP/IP). These Devices basically send some data values they are monitoring. Th ConnectDevices have two interfaces: Ethernet + Bluetooth (2.1 + EDR) and they are connected to a router and they all form a LAN. Hence, my question is: is it possible to monitor my Devices (read data) using an iPhone/Android phone? That means I should somehow

TCP server on MATLAB

扶醉桌前 提交于 2019-12-04 18:08:35
I can't TCP from MATLAB to MATLAB Server Code: t = tcpip('192.168.1.14', 8000, 'NetworkRole', 'Server'); set(t, 'InputBufferSize', 900000); fprintf('waiting for client \n'); fopen(t); fprintf('client connected'); MATLAB waiting for client when I use fopen(t) when I'm trying to connect from another PC on the same network I use this Code: tc = tcpip('192.168.1.14', 8000,'NetworkRole','Client'); fopen(tc) on the Client PC return no errors after fopen(tc) 'that's mean the Server is working fine but on the Server PC .. It still waiting for client without detecting the Client and jump to fprintf(

Download the YouTube video file directly to user's computer through browser

主宰稳场 提交于 2019-12-04 15:04:47
<?php $youtubeUrl = "https://www.youtube.com/watch?v=Ko2JcxecV2E"; $content = json_encode ($file = shell_exec("youtube-dl.exe $youtubeUrl ")); $input_string =$content; $regex_pattern = "/Destination:(.*.mp4)/"; $boolean = preg_match($regex_pattern, $input_string, $matches_out); $extracted_string=$matches_out[0]; $file =explode(': ',$extracted_string,2)[1]; // Quick check to verify that the file exists if( !file_exists($file) ) die("File not found"); // Force the download header("Content-Disposition: attachment; filename=\"$file\"" ); header("Content-Length: " . filesize($file)); header(

Django TCP socket communication

蹲街弑〆低调 提交于 2019-12-04 15:02:18
I am new to TCP socket programming. I have a django based server communicating with a microcontroller. Now, I want to implement TCP based socket on the server side in order to communicate with the TCP socket on the microcontroller. Can anyone give me an idea on how to do this ? What libraries should I use on my django server The microprocessor basically opens the socket every 5 seconds and sends a notification to the server. I on the server side should be able to read this and pump data back to the microprocessor using this socket which was opened by the microprocessor. If you are already

Node.js how to handle packet fragmentation with net.Server

别说谁变了你拦得住时间么 提交于 2019-12-04 10:41:20
When a net.Server receives data that exceeds 1500 bytes (default mtu), the 'on data' event is executed with each fragment of the packet. Is there a way to receive the whole packet in a single 'on data' call? Thanks. Try this var sys = require('sys'); var net = require('net');; var socktimeout = 600000; var svrport = your_port; var svr = net.createServer(function(sock) { var mdata = new Buffer(0); //sys.puts('Connected: ' + sock.remoteAddress + ':' + sock.remotePort); sock.setTimeout(socktimeout,function(){ sock.end("timeout"); sock.destroy(); }); sock.on('data', function(data) { if(mdata