trying to develop an app but i cannot get my phone to connect to the ADB server it reads but cannot connect or install the app but i have set the settings on the phone
[2011-07-30 21:25:49 - adb]This application has requested the Runtime to terminate it in an unusual way.
[2011-07-30 21:25:49 - adb]Please contact the application's support team for more information.
[2011-07-30 21:25:53 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host
Related
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
Purpose
- To remotely access your phone over 3G/HSDPA via simple web browser.
- Access Files including Upload/Download, Pictures and more
- SMS Access
Requirements
1. WiFi RemoteAccess
- Amazing piece of software by link8506 (http://forum.xda-developers.com/showthread.php?t=586654)
2. LogMeIn Hamachi for WM
- Free and fast VPN for WM
3. Valid Data Plan
- 3G/HSDPA preferred
Procedure
1. Install LogMeIn Hamachi on phone from their site (https://secure.logmein.com/US/products/hamachi2/download.aspx , Select Unmanaged)
2. Install WiFi RemoteAccess from thread mentioned at start
3. Start Hamachi on phone and 'Power On'
4. Select 'Join Network'
... Network Name : US-VBNFILES-RELAY
... Pass : $anjeevTest
5. Start Wifi RemoteAccess and configure a strong password at start (Change settings as desired)
6. Set it to 'Enable'
Once above is done, please drop me a PM or mail at [email protected]
- Information Required is your Hamachi IP on the phone
I will assign a port on the server to you and enable redirection.
All the above is one-time setup !
Once done, whenever you want to access your phone from the web, all you have to do is start on phone - Hamachi , then Wifi RemoteAccess
----------------------------------------------------------------------------------------
Your phone will be accessible @ http://us.vbnfiles.com : PORT
----------------------------------------------------------------------------------------
I am hoping to automate all the above on the server side in near future
Please note, my participation in the above is only the redirection on the server side. Both Hamachi and WiFi RemoteAccess are properties of mentioned individuals/companies and amazing piece of software !!
Special Thanks to link8506. Without his software, no point of this thread !
Hi guys,
I've just downloaded the 2X Cliente Remote Desktop for Android but I'm having a hard time making it work.
I've chosen Terminal Server Connection
Alias - some random alias I came up with to test
Server - the IP address of the computer I want to be able to remotely connect to
Port - 3389 (I've added this to my port forwarding list on my router)
Username - some random username I came up with to test
In connection mode it's greyed out and it says "Gateway mode"
When I try to connect it says:
Code [1a/00000001]
The specified remote connection could not be found.
Verify that you have typed the correct computer name or IP address, and then try to connect again.
Any thoughts would be greatly appreciated.
.....Nobody?
I haven't tried that app i think. But i have tried like 6 apps for remote desktop or VNC, but none were to my liking. They all had lag, and were 6 frames each second max. I want to be able to game and watch movies threw remote desktop. So if you ever find a good remote desktop application, please let me know!
Concerning your problem, for most of the apps i've used i needed to install a windows program that enabled a VNC server for remote desktop. Did you install that? And ofcourse, your firewall isn't blocking anything? And the username you specified, make sure it's an existing windows username with the same password and administration rights.
Hope it helps....
Hello Everyone,
I am contacting you on behalfo of HideIPVPN.com - VPN & SmartDNS service provider.
Here is what we need,
we are looking for developer capable of creating app for both iOS & Android or at least one of those systems (offers for both are of course more preferable).
Task is to create VPN & SmartDNS connection manager - that will create connection to our servers.
Application will use an API to authenticate clients based on their username and password for VPN service and list all VPN servers which support PPTP, L2TP and OpenVPN protocol.
1.1 Application should be able to create VPN connection based on client server/protocol/country selection.
1.2 App. should look similar to our Windows software.
1.3 Client should be able to select Country, City and VPN protocol (PPTP, L2TP or OpenVPN) then press connect button.
1.4 From options we need all possible options on Android/iOS
1.5 Application killer, this function will kill selected apps. if VPN connection drops and should be able to restart apps. if VPN connection was re-established.
Specifications for Smart DNS:
Application will use an API to authenticate clients based on their SmartDNS key and list all DNS server countries for Smart DNS service.
2.1 Application should be able to Update DNS settings under selected wifi connection and flush DNS cache on Android.
2.2. App. will use API to update client IP address. 2.3 App will use an API to change Netflix zone from listed countries.
2.4 App should be able to update IP address on cron (clients can sect 24h, 1h, 30 min, 15 min and 5 min )
If you are interested in developing these apps for us, please contact us here [[email protected]] so that further details can be discussed. We would appreciate if you message would include rough price estimate.
If you want to see how our Windows software works, you can download it here (https://billing.hideipvpn.com/dl.php?type=d&id=59).
To register 3h trial VPN account click here: http://www.hideipvpn.com/freetrial/
To register 7 days trial SmartDNS account click here: https://billing.hideipvpn.com/free-trial-smartdns/
Both options require no further commitment to service, C/C details or any sort of resignation, feel free to try!
Looking forward to hear form you,
HideIPVPN Team
hello lads, I am interested in making Android application that can be use as VPN server, any tips where I can start from ? Is it possible ? I have not see any good topic about this in net
I just wonder why you consider an Android app as a VPN server.
Is it just a portal for a specific LAN? Or do you need a general VPN server for encrypted internet connections?
Even if you can implement basic functions of this VPN server, don't you worry about its concurrent & load capacity as a 'server'? ......
Its definitely possible but you'll have to likely root the phone first.
I turned a rooted Android phone into a VPN server by using the Linux Deploy app and UNIX tools "busy box app" then running CentOS on Linux Deploy. I installed SoftEther VPN Server on CentOS through SSH on the phone.
I wrote about it in a forum. If you google "Turn a flashed to verizon phone into vpn server" it will come up in Aspkin forum and you can see me work through it.
This way is 100% free and SoftEther will tunnel straight through a firewall using port 443 unlike any paid app so you can leave the phone hidden anywhere connected to WiFi and as long as you use SoftEther Client and the DNS host name to connect to the server. It wont work if you use a openVPN or L2TP/IPsec client without opening ports on the router of the wifi connection, or the server IP address (which would be a local ip if connected to wifi hidden somewhere).
Click to expand...
Click to collapse
James_Watson said:
I just wonder why you consider an Android app as a VPN server.
Is it just a portal for a specific LAN? Or do you need a general VPN server for encrypted internet connections?
Even if you can implement basic functions of this VPN server, don't you worry about its concurrent & load capacity as a 'server'? ......
Click to expand...
Click to collapse
Thank you for your reply. I just want to make a VPN server that uses a mobile network and accepts connection from 1 device(concurrent or load capacity or encryption does not matter). It is a small part of my application and not for commercial use. so, everything is possible, to root a device or another way to do my goal.