When I connect my s2 to my router via wifi, the router log gets spammed with this:
Code:
11/08/2011 19:11:20 sending ACK to 192.168.2.101
11/08/2011 19:10:51 sending ACK to 192.168.2.101
11/08/2011 19:10:22 sending ACK to 192.168.2.101
11/08/2011 19:09:53 sending ACK to 192.168.2.101
11/08/2011 19:09:23 sending ACK to 192.168.2.101
11/08/2011 19:08:54 sending ACK to 192.168.2.101
So every ~30s that happens? What is it? And is it right? I am on checkrom 2.0 and speedmod k2-16.
Why not googling anything about it before making a new thread?
quoting wikipedia
"Normally when a client attempts to start a TCP connection to a server, the client and server exchange a series of messages which normally runs like this:
The client requests a connection by sending a SYN (synchronize) message to the server.
The server acknowledges this request by sending SYN-ACK back to the client.
The client responds with an ACK, and the connection is established.
This is called the TCP three-way handshake, and is the foundation for every connection established using the TCP protocol."
tho that 30 seconds between might be weird, maybe its one of the crappy security options of the router, to protect form SYN flood.
Id say its rather ok,but im no expert in the matter, maybe weak signal so your s2 is reconnecting all the time, or your s2 is trying to do a SYN flood (which is a type of DoS attack ).
Thanks! The signal is very good! Only thing I observe is a high battery drain of the phone when connected to wifi (2% more per hour).
i belive that might be the case, as its sending stuff all the time, try maybe disabling flood protections on the router? or googling for " sending ACK" i belive some people noticed that on belkin machines or something, glad i could help
So, with my notebook as wifi client this does not happen. I also did a hard reset on phone, but the same thing, even with stock firmware
hmm... im running out of ideas tbh xD is your phone connecting to anything when those ack fly? your setting dissable wifi when screen off or not? does this happen when connected to charger only? actually i never seen my logs, maybe its normal
No nothing special it just happens all the time! Wifi is on all the time, policy is not set to screen off!
I don't know, perhaps I have to live with it !
my point is that if the phone is plugged to power then it doesnt go to deep sleep state anyways, so it doesnt matter, but if it does that ack sending when with screen off and not powered then it might be stopping it from deep sleep, wich is bad for the percentages check with cpu spy if it goes to deep sleep when not connected to power, if yes then something is wrong. Maybe also ask someone who knows your rom, i run stock rooted.
Edit: what about an app thats programmed to update crap very often via wifi only?
Related
Hi there,
i'm very noob to pdas in general, i have this herm100 that my friend sold me when i needed to get internet access (i combined my budget for phone and internet in one).
Well, after a while of hard work, i was able to get data working on my Linux PC (EeePC 701). The connection was closing automatically when not in use, this behavior is useful when not used as modem (to keep battery).
I created a script that "connects" my pc to the phone (it setups the interface's ip, etc...), when connected, it then pings the phone (10.0.0.1) and pings my host on the internet by IP (this tests that i have access to the internet). It makes other tests too to make sure dns is working and that my webserver on that host is still working too...
I make the pings to the host by ip every 15 seconds (or less when it fails). With this and minimal internet usage, the connection will drop on the phone 2 to 5 times a day.
When i say that the connection drops, i mean that ping to the phone works, but ping to the internet fails, times out. Most the time, the internet sharing prog on wm6 says it's still connected. Many times, if i try to access the web from the phone it will fail (wait forever, rarely will also freeze). So when the internet is dropped, one time out of 4 i have to reset the device (i found that shutting down for a while gives even better results).
I just recently got a super promo for my data package with my isp and my limit got increased a lot... I tried downloading torrents. Downloading torrents will cause the phone to drop connection _at_least_ every 5 minutes!!! The device is also pretty hot (like i wouldnt like to have that heat in my jeans pocket but doesnt hurt when touching). I have setup my torrent application to limit download and upload speed so that overall no more than 15 KB/sec is used and this increases stability a lot, but it will still fail within 10-20 minutes.
I wonder if the hardware could be responsible, but i'm clearly sure that the OS is the one most responsible (it fails to detect the network is down and fails to at least try to bring it back). Maybe an os upgrade or hard reset would help. But if i have to go that far i might just try to install linux on it instead (openmoko probably,unless you suggest anything else?)
I was wondering if you guys could help stabilize my connection a bit?
Thanks!
Simon
SOLVED - But I'm not sure how, I was redesgning the app so that I could put it up here for other leo owners to test and gave it one last go to take a screenshot of the error to show people what I was looking for and viola it starts working (I never changed the TCP code) sorry anyone who finds this who has the same issue but it just randomly started working!!
Hi fellow devs,
After a massive googling session I have not been able to find an answer to the following issue:
I am writing a TCP client/server app with my PC as the server and the client being my HD2.
I am writing the app in VB.net using the .net compact framework 3.5 and the windows mobile 6 sdk.
I just cannot get the following code on the client side to work over wifi:
Code:
Dim ParsedIPAddress As IPAddress = IPAddress.Parse("192.168.1.10")
Dim client As New TcpClient()
client.Connect(ParsedIPAddress, 7209)
I get the following exception:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Click to expand...
Click to collapse
If I connect the phone via active sync it will work and I can send and recieve data ok so it appears there is no issue with the code itself.
While connected via active sync - if I turn off the server side app I get the following exception:
No connection could be made because the target machine actively refused it
Click to expand...
Click to collapse
However the exception message remains as the original if I do the above but using wifi so it just is not able to establish a link at all (or not even trying) using wifi??
-----------------
I have tried:
1. Ensuring that windows firewall on the server is off and not getting in the way of anything
2. Ensured that my mobile has got an active wifi connection and can see the machine (wifi remote control apps such as GRemotePro work ok)
3. Turned off all other types of data connection (GPRS,3G) to make sure my mobile has only one route out
------------------
Is there anyone out there who has successfully got TCP to work with the .net compact framework and if so how???
Should I be using another class rather than TCPClient maybe the underlying Sockets class?
Any help would be greatly appreciated.
Cheers,
Prime.
P.S. I don't mind if people only have a solution in C# I'm happy to do any translation etc...
Socket class also fails
Ok so I've tried the socket class now as well and that fails in exactly the same way over wifi, ensured that I can ping my device and ping my pc from the device so clearly the underlying hardware is working just not for the TCPClient or Socket... Any ideas anyone?
Have you enabled port forwarding for the relevant port and IP address in your wireless router?
That's the only thing that springs to mind for me.
Thanks for the reply but...
Hey John,
Thanks for trying to help although unfortunately this does not bear any consquence in this particular situation, you only need to do port forwarding if Network Address Translation is going on between you and the end point. In this case the endpoint (IP + Port) is on the internal LAN with no address translation in between. It appears the the internal WIFI adapter is not being accessed correctly from the application i.e. this is an internal issue on the phone not an issue with the network in general as I can run the same code via active sync and it works also I can convert the project to a standard windows pc app and run the same code from a pc and it works. Oh and of course every other damn (this is really wierd) wifi app I've got works so something with the .net cf and wifi maybe??
Cheers,
Tony.
A development...
Ok so I have dug out my old Orbit II just to see if this was device related and low and behold it is ARGGGHHH!!! The app works just fine on the Orbit II over wifi.
Does anyone know of any policies, security or otherwise, that would stop the HD2 (leo) from being able to use wifi from the .net cf?
<<--delete-->>
Generic reasons for communication failures
Hi
This is a pretty generic problem, I'm afraid you can't give an exact idea of where is the problem so I can't give also an exact solution.
Usually a communication problem is due to one of this three
1) The server does not listen or does not receive
2) There is a problem with the network
3) The client does not make the call
Type 1 should be checked trying to connect to the server with a PC or a laptop. You should be able to make the client run in a PC.
Usually when a (web) server has a (web) tcp service stopped, when you try to connect to it it rejects the connection (this is what that of "the target machine refused it" sounds to me). Start then the (web) service on the server. Change (web) for your application.
My advice is that you should have something in the server side where you could run a wireshark sniffer. Then you would see all the traffic coming from the PDA and see if your client is sending packets.
Type 2 are the ones that can be checked with a ping. Maybe there is a firewall somewhere dropping the packets.
Type 3 may be due to several things
a wrong code (I don't know, there is a lot of time since I made programs)
you're trying to connect to a dns name that can't be resolved. Try with IP address.
You have a wrong network configuration. The server should be in the same network but client is not able to get the server's (or the router's) MAC with the ARP protocol. So it doesn't make the call.
I hope it helps.
Regards
So I just bought my first brand new smartphone ever. My last 'smartphone' was pre-Blackberry, pre-iPhone, and bought used.
Now I've got the International variant of the Galaxy Nexus (because AT&T is being a whiny, monopolistic, non-competitive ***** and trying to release a version of it that isn't pentaband-HSPA+).
I'm currently on a phone plan that has *no data*. And that's fine. It saves me money. I may switch later, but until then, I'd like to stick to using Wi-Fi connections.
I'm under the vague understanding that a VPN will further secure my connection if I do use Wi-Fi. The Wi-Fi owner won't see what sites I'm accessing, etc, because all connections will be going directly to my VPN provider (home PC). Everything even might be additionally encrypted.
Is this correct?
Also, I've been trying to set up a VPN service on my Windows 7 machine at home. I've managed to use logcat to determine that *at first* my login name was incorrect. (Apparently the format is actually PCNAME\USERNAME; PASSWORD, rather than just USERNAME; PASSWORD.) Since discovering this, I no longer see MS-CHAP Authentication Failed errors showing up in the log. I've also confirmed that I'm getting through my router's firewall by turning the port off and on on various connection attempts, and when the port is NOT forwarded I get very simple 'Connection Refused' errors in the log.
However, with the port open and the username and password finally correct, I get something approaching the following:
---
Tunnel Established
Session Established
Using PPPoX
Using interface ppp0
Connect: ppp0 <--->
LCP terminated by peer (K|HM-0^@<M-Mt^@^^@^@^@)
Remote server hung up
---
(I can't escape the carets in that line, so each 'superscript' is actually a caret.)
I'm guessing it's the termination line there, but I don't know what it means.
Does anyone have any ideas?
This morning I was confronted with something weird. My phone all of a sudden could not connect to a remote VPS server via POP3. It would just say No Connection.
The same phone however could connect to everything else, including other services on the same remote server. And, it could connect to other servers using POP3. If I switched to WiFi, it then connected just fine.
Drove me nuts trying to figure out what the issue.
Obvious things were checked, firewall, pop3 server etc... to no avail...
So finally, I figured that Verizon was having some weird 4G problem related to port 110.. I had the POP3 server, listen on a secondary port... Still nada...
While looking at the POP3 Server configs, I saw that they now had support for ipv6, but that by default it didn't listen to them. So I changed the configuration and bang.... the phone connected...
It was apparently trying to connect to ipv6 since the time I found it was failing.
Wonder if anyone has run into this.... Looking at the logs, my phone is the ONLY device connecting via ipv6, everything else is using ipv4.
Well this turned out to be pretty simple.
IF you publish an AAAA record for a host, and you are using Verizon 4G, it will use the AAAA entry for the host in liu of the AA record.
In my case, this had surprising results that once I figured it out made sense, but at the time caused a lot of confusion as to what was the trigger for the action that was taking place.
krelvinaz said:
Well this turned out to be pretty simple.
IF you publish an AAAA record for a host, and you are using Verizon 4G, it will use the AAAA entry for the host in liu of the AA record.
In my case, this had surprising results that once I figured it out made sense, but at the time caused a lot of confusion as to what was the trigger for the action that was taking place.
Click to expand...
Click to collapse
Yes.. you learned the hard way that LTE was rolled out with native IPv6 (and preferred stack too). Pretty smart to setup a new network using IPv6 and save us the headaches of upgrading later after the fact...
by looking at iptables log, i can see hundreds of ICMP connections to my wifi router every time i connect my android phone on the wifi.
always at a random port.
:16662
:43999
:52484
:32994
:5737 (lowest)
etc
what is that?
Edit:
i'm now blocking everyting on AFWALL and seeing what it logs.
it logs the above connections as coming from:
AppID: -11
App name: (Kernel) - Linux kernel
any ideas what this is about?