All,
Here is my frustrating problem that I'm out of ideas how to troubleshoot. I have a code to upload a post to a .php script. It's a standard multi-form post request done with a URLSession and dataTask(with: request) method.
I got the following error at home, then I moved to a different home and get the same problem:
error=Optional(Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x60800045eff0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=http://www.somedomain.com/upload.php, NSErrorFailingURLKey=http://www.somedomain.com/upload.php, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4, NSLocalizedDescription=The network connection was lost.})
However, I went out of town on business and it worked fine from the hotel. Then I tried it at another location and it worked fine there too.
SO
My old home and new home: doesn't work
Hotel two states away, and
near my office: works fine
ALSO, old home used cable modem/router combo and new home uses a different device (DSL modem/router combo), so I don't think old home and new home have anything in common.
I've got traceroutes and a wireshark capture file for connections at my new home, hotel, and near my office.
When the problem happens, there is a tcp stream that transfers lots of data, but always gets RST packets from the server before it can finish.
I realize that this appears to be a tcp/ip networking problem more than it is a Swift/Xcode problem, but I'm not sure where exactly the problem lies.
Any troubleshooting ideas?
Related
I've created my own private torrent file, and I'm testing it on another PC with it's own completely separate internet connection, but it gets stuck on status 'connecting to peers' and nothing downloads.
Here's what I did in creating my private torrent file,
Enabled 'bt.enable_tracker' and reset BitTorrent.
Check port and checked that it's open.
Created new torrent and inserted the following trackers,
http://External-IP:Port-Number/announce
http://localhost:Port-Number/announce
(of course replacing 'External-IP' and 'Port-Number' with my own).
Ticked 'Start seeding' and created torrent file.
Torrent file is now present on host PC.
Opened torrent file on second PC, but this is where it gets stuck on status 'connecting to peers'. For http://External-IP:Port-Number/announce - the status is HTTP Error 401. For http://localhost:Port-Number/announce, the status is invalid info hash and/or peer id. Where should i get the username and password from for the embedded bittorrent tracker?
I've also tried connecting via a third PC on the same LAN, but it gets stuck with the same status.
All other torrents, public and private site trackers download and seed just fine.
Any ideas where I am going wrong please?
Thank you
First off, there a similar question with the same issue here, but there is no answer, so I rewrote the question once again in more detail.
I am connected to an SMSC, and I noticed that there are a lot of messages are not delivered to us, we asked the SMSC to check the routing and it was fine, but SMSC noticed that there are too many connections established from your side to his side, although, we have one single connection only.
I was using NowSMS SMPP Client application to handle the connectivity, then, the SMSC asked me to change the application although I was thinking that NowSMS had no issues as I am using it 7 years ago, however, I asked NowSMS's team to investigate by opening a support ticket.
Later, I had to change NowSMS and install Kannel on a new Linux machine, after getting connected over Kannel to the SMSC, we got the same issue once again, and when I read all Kannel's logs, I found "System error (104): Connection reset by peer" which makes me, logically, to open a new connection with the SMSC. Accordingly, I suggested to have a live TCP trace from both sides at the same time, and I found the below packet in Wireshark trace file:
As you see, this is a RST/ACK from SMSC to me without requesting RST or anything from my side, and when I asked them why do you send RST/ACK or why do you RST the connection, I didn't get any useful answere, but they told me to read more about the RST/ACK and RST and I have no idea about networking, but when I read, I found that I had no control on RST connection as there was no requests from my side to the SMSC asking for the same. They always guid me to this post and what I see that it doesn't belong to me.
NOW: I just need to know what should I do or what should I ask whom about? As, I asked the Data Center's team about the same, and they confirmed that the VPN between me and the SMSC works normally without any exceptions. I believe, that there is no issue in application layer, but I cannot recognize the root of the issue.
P.S. Kannel's log file, and both TCP Trace file are here
Ask them to activate the Enquire link packet in order to drop inactive connections. It's clearly a problem from their side.
I am a student and today for a lab, we were asked to install and use Wireshark. The installation went well, I installed the correct version, installed WinPcap, and the program started without any issues.
I was connected to the University's Wifi and as part of our lab we had to visit http://www.cas.mcmaster.ca/~rzheng/course/CAS4C03W17/Labs/INTRO-wireshark-file1.html and answer questions about the data captured in Wireshark.
Problem is, I am not getting any get or post requests, filtering by http.request.method == "GET" shows nothing, and http.request.method == "POST" shows nothing as well. Filtering by http shows the 200 OK and 304 Not Modified (if I refresh).
I was the only one in my lab who had this problem, and my instructor wasn't able to figure it out. He saved and sent me his output which has Get and Post requests so I can continue my work.
Did anyone have this problem before or have any idea on how to solve it? I can upload the saved outputs if you think it would help. Thanks!
Capture sample looks like it's filtered, since it contains only packets sent to your PC IP address. What is missing:
There is not a single outgoing packet, despite they are obviously on the net. E.g. there are "TCP acknowledge" packets received by PC in capture file, but packets sent by PC, which are acknowledged by them, aren't shown.
Not a single incoming broadcast/multicast packet. This situation is possible, but not very likely.
So there is some trouble with sniffer setup on your site. Possible explanations:
accidentally configured capture filter (don't mix with display filter)
Some interfering software is installed. Example of the same complaint
Method to determine if issue is gone: apply !(ip.dst == YOUR_IP_ADDR) display filter and check if packets output isn't empty on visiting any web page. Possible plan of troubleshooting:
check capture filter
check different network card (e.g. non-wireless connection)
check wireshark operability in pure environment (e.g. liveUSB)
try removing suspected interfering software
For the past few days, YouTube links that worked before such as this have been giving me this error message:
Your connection is not private
Attackers might be trying to steal your information from
www.youtube.googleapis.com (for example, passwords, messages, or
credit cards).
www.youtube.googleapis.com normally uses
encryption to protect your information. When Chrome tried to connect
to www.youtube.googleapis.com this time, the website sent back unusual
and incorrect credentials. Either an attacker is trying to pretend to
be www.youtube.googleapis.com, or a Wi-Fi sign-in screen has
interrupted the connection. Your information is still secure because
Chrome stopped the connection before any data was exchanged.
You cannot visit www.youtube.googleapis.com right now because the
website uses HSTS. Network errors and attacks are usually temporary,
so this page will probably work later.
NET::ERR_CERT_COMMON_NAME_INVALID
Are other people seeing a network attack message with the link above, or is it just an issue with my local router? It occurs not only in Chrome but Firefox and Explorer (on two laptops that I tested) What should I do?
I have a fms 3 server runing a video chat room application. It goes well except everyday it will die once or twice. After restarting the fms server, everything goes working again.
I really need to know the reason why fms server can die.
I checked its log, i saw many
"Server rejected an invalid flow."
Any hint will be greatest welcome.
This error can be caused by making an attempt to make a P2P connection to the server's peer ID. Connections to the server need to use
http://forums.adobe.com/thread/845685
i believe the problem is that you are attempting to make a P2P connection to the server's peer ID; that is, something like
var ns:NetStream = new NetStream(netConnection, netConnection.farID);
ns.play(...);
under the covers, this will open a new RTMFP flow to the server that will appear to the server as a new incoming client, but the initial handshake will be incorrect (the first/only command message is "play" instead of "connect"). i see this on Cirrus all the time.
it's possible that FMS doesn't account properly when rejecting these flows (leaving the connection count higher than it should be), or perhaps it leaves the flow open waiting for a "connect" message that will never come, so the connection count is legitimately higher than you think it is.
in any case, make sure you're not opening a P2P stream to the server's peer ID.
However, this error may not actually be related to the crashes. Additionally, are you even sure FMS is crashing and not just your application? If it's just your application, review your application logs (instead of the core FMS logs) and if you don't have anything useful add more logging to your application.