My android phone (galaxy s5) and Windows 7 computer are both connected on the same network wirelessly via a router.
I would like to send a text message to the phone and the user would just click 'OK' or similar and the message would go away until the next one is sent from the software application I'm writing in visual basic .net.
Thing is, I can't use SMS or something similar because there will be no internet/cellular connections. Only the two devices connected on the same local network.
I have tried to use msg(net send) shell command to send a message to my phone's ip address but I returned "Error 1722 getting session names", net view also doesn't show the device so it seems it not picking it up on the network. In the DHCP list of the router I can see the device listed though.
Not sure if i need to enable/open something on the device or maybe install an app to intercept the messages?
Anyone have any ideas?
Thank you
EDIT: arp -a command does list the ip phone's IP address
Maybe not 100% what you are looking for ...but give it a try ?
https://play.google.com/store/apps/details?id=com.aob.android.ipmsg
This app has this function: https://play.google.com/store/apps/details?id=com.androidlost&hl=en
Related
I am having a sh*t of a day with my Exec experience.
Not only have I lost sound, but I can only connect AS4 once with device and sync, and thereafter, it showing as not connected. And never connects.
I unistalled everything, included all PC Protection. Reinstalled AS4 it works. Reinstalled McAfee stuff, no USB connection.
When I first put Getting Started disc in my machine, it at first was looking for Office 2003 parts, saying they were missing etc.. so I kept cancelling until I got to the normal Getting Started Disc install menu.
I have Outlook 2003.
Any ideas, help, I am going insane.
Check that it's getting an IP address. It looks to your PC and asks for a DHCP address - so check your network connections and see if it's appearing.
If mcAffee has the firewall software included in it, it will be blocking the XDA Exec from making a connection because with ActiveSync 4 and WM5.0 it makes a network connection. You'll have to work out what IP Range the computer tried to assign to the XDA and then allow that to have permission to access your PC with-in McAffee....I could be way off but it seems like the most likely problem.
mjames_84 said:
If mcAffee has the firewall software included in it, it will be blocking the XDA Exec from making a connection because with ActiveSync 4 and WM5.0 it makes a network connection. You'll have to work out what IP Range the computer tried to assign to the XDA and then allow that to have permission to access your PC with-in McAffee....I could be way off but it seems like the most likely problem.
Click to expand...
Click to collapse
that's sounds logical, how would I find the ip address
well I'm not entirely certain on that one
*checks something*
Yep that works
open a command window (Start>Run>cmd) and enter
ipconfig /all
this will bring all all the information regarding your computers IP addresses in my instance it assigned 169.254.2.2 for Windows mobile-based device
I'm guessing that's the one you want, but the IP address assigned for your computer may be different. Then all you need to do is go into the trusted zones section of the MacAffee firewall config and allow that IP Address/Address range whichever it gives the option for...hope that helps
mjames_84 said:
well I'm not entirely certain on that one
*checks something*
Yep that works
open a command window (Start>Run>cmd) and enter
ipconfig /all
this will bring all all the information regarding your computers IP addresses in my instance it assigned 169.254.2.2 for Windows mobile-based device
I'm guessing that's the one you want, but the IP address assigned for your computer may be different. Then all you need to do is go into the trusted zones section of the MacAffee firewall config and allow that IP Address/Address range whichever it gives the option for...hope that helps
Click to expand...
Click to collapse
But, if his Exec using a DHCP client, doesn't it change the IP, or have the potential to?
True but on multiple connects of my XDA it has always assigned the same IP address, whilst it is DHCP it is probably programmed to always assign the same IP, much like with my router/PC set up my router is acting as a DHCP server but I have it set to always give my PC the same IP address. At the very least I imagine the IP address will always be assigned in the range of 169.254.2.xxx so if it does start assigning random IPs if necessary that whole range could be allowed
hi, my dear friends
I am a freshman to XDA dev, I am using ms vs2003 to develop an application on XDA II.
The application is about dispatching a job to a driver's XDA, the senario likes the following: (1) The dispatch server sends a job to driver's XDA thru GPRS. (2) The driver then view the job on the XDA application and Accept it.
The question is how to send a job from the server side to an XDA application, what need I to do with the server programs and what need I to do with the XDA applications? Do we need some develop toolkit from the SP?
Thanks in advance, your suggestion and help are very appreciated!!!
If your network gives you an ip that others can see from outside then you just need to write a small server on your xda using sockets to accept the messages over gprs. Unfortunately, most phone networks do not do this. I think the easiest thing for you would be to make it sms based.
Otherwise you could make a page on your (pc) server and have your xda check it at regular intervals to see if any new jobs are there. The down side of this is the cost of all that checking.
Thanks ORD for you help.
Re: If your network gives you an ip that others can see from outside then you just need to write a small server on your xda using sockets to accept the messages over gprs. Hi ORD, do you mean the Public IP for each XDA phone? Do you know if the SP O2 in British provides this kind of service?
Thanks again!
I don't know what you mean public address? The phone network will have a server address and your phone will get assigned a client address. I can't tell about o2 as I only have tried vodafone in Australia. I think that most IP's given are only useful from within the private network of the provider. I am no expert with the internet, but I think if the ip starts with 10.XXX.XXX.XXX its no good. Perhaps if you post the first half of your IP some of the other network wizez here can tell you if its accessible from outside.
Even if your ip is good, it probably would not be static so I think its not worth the effort. Still... if you go that way, the implementation of sockets on ppc works 100%. In fact I have cut and pasted code straight from ppc apps to desktop apps and had no problems!
Why not just have your phones connect as clients to a small custom coded server on your pc periodically. You could streamline the transmition to only transfer as few bytes as possible each time. The only time a large transfer would be needed is when a job is accepted and the details are needed. my network charges by the kilobyte and when i transfer in only the tens of bytes it dose not even register it on my bill (i don't know how big the handshake is).
Thanks, ORD, yes, we can check the server every XX seconds, the only thing I am worrying about is if I have more than 1 thousand XDA units to connect and check the server, if the server can afford to this load?
This sound like a real world problem you have (like taxis?). If you want the best solutuion (ie sending jobs to xda's) start checking the service providers. 1000 units is a lot. I think there must be a carrier out there willing to provide
usefull addresses. Also try connecting two devices from within the same network. If all your devices are within the same private network they may be able to communicate. You PC server could be connected to the internet via a gprs card and send out jobs to all the xda's within service provided by the same carrier. I have been wanting to try this for a while but I do not have two gprs connections with the same provider.
I have a couple of small apps that may help you test this if you have multiple gprs connections with the same provider.
The following is a ppc program to attempt to connect to another one of itself over a network using sockets:
http://odeean.veritel.com.au/serv/testSocketServer.exe
the next program is for the PC so you can show that the program at least works in the direction of ppc to pc via gprs then internet:
http://odeean.veritel.com.au/serv/ORDsocketUserPC.exe
Do the following:
-Turn on your internet connection and gprs
-On your pc run the ORDsocketUserPC.exe
-to simplify things just turn off any firewalls etc (my app dose nothing bad, but sometimes even if you open a port, firewalls cause it to fail)
-On you xda run testSocketServer.exe
-On the pc server function side enter the desired port details. Because you are first testing if it works at all change the ip to 0 as this causes it to listen for all incoming ip's in my app.
-On the pc server side press listen
-On the xda set the port on the client side to the same as on your pc. Enter the pc's ip (ie from your connection status).
-On the xda press connect
-Now the xda should attempt to connect. It says waiting to read when connected at first
-Now on the pc it should say blocking-listening with some code.
-Two way data transfer is now possible. The desktop version is self explanitory. The ppc version has a lack of screen space so to elliminate some buttons I replaced the get button with ..... make data edit box clear, press send, this generates a dialog with the read data so far.
-This is only a very raw app some things malfunction but I get reliable two way communication. If something goes wrong just close the program and start again.
If all that works you are ready to test the ppc to ppc connection. Make sure you get gprs on each from the same provider run the testSocketServer.exe on both xda's at once. One with server side only and one with client side only. In the client enter the ip of the server (my app dose not find this for you - you may need some third party program for this), make sure the server ip was set to 0 before you press listen.
Please post to tell if it works within the same network as I am very interested. If it dose your problem is solved, otherwise I see no way to help because of the volume of units to communicate to.
Thanks ORD, it is too complicated for me, frankly. Can I push an email to the XDA then let the driver knows that he has a job? He can click an button to request the job. The question is how to push an email to the XDA unit.
Sorry, I can't help with emails.
Its a pitty you could not try it. If anyone else cares to try gprs device to device communication with both ends within the same phone network I am still interested in the result. I just do not want to get yet another sim. vodafone sales people in Australia do not seem to understand their own network and I have wasted enough money buying products from them that do not do what they claim.
Sending of string message over O2
Hi ORD!
Im interested in this and I am using a VPN approach to get both of the devices talking!
I am using your programs but I also wish to view the source code on how u coded this, as when I click connect I recieve an error stating the socket is not writable??? I think it doesnt even start the 3G/GPRS service on the XDA? Could you send me the code?
If it does start GPRS in the background i do apologise!!! But Im uncertain that this is the case!
Thanks!
AJ.
possible solution
All pockets pcs are using private internet addresses, i.e. they can access other external sites, but no one can directly access them as no external connections are allowed to access them without the XDAs initiating the connection.
So all of your 1000 xdas initiate the connection and connect to a central server (on server use asyncrhonous sockets for scaleability).server should be able to handle this easily.
when a job is ready for dispatch the server simply sends it to the appropriate XDA(possible because that XDA initiated the connection, so the phone operator will allow it through their firewall).
No polling needed on the XDA, just the need to monitor the connection and keep it open to the server.
XDA to XDA commmunication. Easy. The server acts as an intermediary.
Imagine XDA1 (vodaphone) wants to talk to XDA2(02) and both are on different networks. They cannot talk directly to each other.
XDA1 sends it message to the server already connected. The server (with a connection already set up) forwards it on to XDA2.
XDA2 replies back to the server, which then forwards it to XDA1.
The server acts as a gateway between the two networks and is able to do so because it is XDA1 and XDA2 initiateed the connection to the server.
For a more technical explanation of how private IP address are assigned by phone operators read up on NAT (Network Address Translation).
This solution would also work if both XDA1 and XDA2 had public IP addresses. All logic can be kept on the server and there is no need for XDA1 to find XDA2s public IP address, which with a 1000 XDAs could become messy very quickly.
cheers
Steve Jubb
I posted a response to this thread that ended up in its own thread.
Please read this: http://forum.xda-developers.com/viewtopic.php?t=55255
Ok peeps i downloaded the remotedesktop.cab from one of the threads in the forum. I installed it but i cannot connect to my pc. Here are the fields and what i put in them.
computer - i put my ip address
user name - i put my admin acc name not the pc name. Is that correct?
password - well yeah....
domain - i leave this one empty, cause i don't use one.
Now, when i click connect...the following appears.
connection status ok
Cannot connect. Likely
reasons are:
1. Specified computer name
or ip does not exist.
2. A network error occurred
while establishing the connection.
Does aynone know what the problem might be???
I use win xp pro sp2
I got a router.
In the field i put the ip thats shown when i visit one fo the "what is my ip" sites LOL.
I am making this reply through my remote desktop connection...
Computer IP addr. is the Actual IP address of you Desktop computer...
UserAcctount info: use the Administrator's user name and password
Domain not needed if not on a enterprise network!
Make sure on your Desktop computer under system setting.....
You allow remote connection to the computer.
If you are on your computer when you connect to it with your X1. The screen will "logout the user out" and show it is being remotely access!
hth,
Stuart
Could someone point me to a remotedesktop cab that is sure to work on the Xperia?
There's a lot of them...
Here is the link to post. There is a reply I made with an attached cab..
http://forum.xda-developers.com/showthread.php?t=457047
I have beeen using this with my xperia without any problems.. I have access:
Xp-sp2-3
Vista 64bit sp1
Server 2000 sp2
server 2003 sp1
Stuart
The above post was assuming your are accessing through your local net!!
If you are accessing through the INTERNET is a bit different!!
The Ip Address Will be the One that is display through Whatismyip!!
But you will also have to make an Entry into the "pinhole" list in your router. This pinhole entry will be pointing to your PC your are trying to access!!
So when you access your INTERNET IP address(router) it will direct this traffic toward your PC!!
Stuart
scl_electronics said:
The above post was assuming your are accessing through your local net!!
If you are accessing through the INTERNET is a bit different!!
The Ip Address Will be the One that is display through Whatismyip!!
But you will also have to make an Entry into the "pinhole" list in your router. This pinhole entry will be pointing to your PC your are trying to access!!
So when you access your INTERNET IP address(router) it will direct this traffic toward your PC!!
Stuart
Click to expand...
Click to collapse
please elaborate...
and something else...
I don't have a tab named "remote" when i click on system. I'm using a custom xp pro and the guy who did it apparently deleted all remote functions Is there a download or something to fix that.
orelsi said:
please elaborate...
and something else...
I don't have a tab named "remote" when i click on system. I'm using a custom xp pro and the guy who did it apparently deleted all remote functions Is there a download or something to fix that.
Click to expand...
Click to collapse
Well on the local network side, your ip address should be 192.168.xxx.xxx. So access directly through your wifi network, You will need the Local address of the computer.
______________
Then on the Internet side. the router/gateway acts like a smart traffic cop! It directs the traffic from your PC destine for the Internet. Also it redirect response traffic from the Internet to the specific Computer that has made a request on the Internet!!
But remote access is different. You on your X1 is Initiating contact through the Internet to a computer that is behind the Router/Gateway. So for this traffic to be directed to the right computer, a Pinhole is created. A pinhole is essentially a direct route through the router for the Internet traffic to be directed to the correct PC!!
Well on a custom XP install it is hard to tell if just the services were turned off. Or they were actually removed!! In this case it sound like one of the Remote access service like GoToMyPC would be easier. Unless you want to re-install a FULL version of XP Pro!!
All is not loss yet! Also check on MS knowledge-base support site. do a search for this exact problem. There might be a download for the remote access service!!
Good Luck,
Stuart
can anybody tell me how to setup remote desktop from HTC to my PC (I am using Windows 7)
Step by step please guys
http://www.youtube.com/watch?v=iCs4GQma7IQ
With that guide I made it work, good luck.
I did exactly everything in this guide and even set a corresponding exception in the Windows firewall (also tried with Windows firewall off) - but the mobile remote desktop program always tells me there was an internal error... But what the heck could that be?
Dont bother the remote dt program is ****e, im currently using vnc which is a bit better, but rather lacking also.
Is it me or did that video not mention setting up your windows machine to allow connections.
Make sure remote desktop is enabled on your PC and make sure it is allowing connections from computers running any version of Remote desktop(2nd option) third option works between windows 7 machines but wouldn't allow my phone to connect.
Your error sounds like it is being caused by something on the phone end though so i dont know if that will help.
Those with remote desktop working can you get it to go landscape? Mine works fine except i can't get landscape mode. Also anyone know of a app that can send wake up requests to a machine? I have this on my laptop so i can wake my pc over the internet and then log in. Anything similar out there for win mobile?
allowing a connection through windows firewall alone is not helping, if you have other system securtiy programs that also has a firewall. or maybe your router has a firewall too. you should try and forward the right port (3389) in the software of your router.
I opened port 3389 on the router, I activated the correct remote desktop option on the PC (Vista), the IP is right (wrong IP adress throws a different error, so the program gets that far)...
I guess you have Windows 7 Home version
Have you tried using 16 bit high colour option? Mine said it couldn't connect when i turned it down to 256 colours.
Edit: Windows 7 x64 btw
OK on my windows7 x64 ive turned on remote desktop and set it to allow connections (2nd option) and i still cant connect, what do i type in user/pass on the hd2
-ive setup the portforwarding on my bethere box
-tryed both color modes on hd2
does it have to be over wifi or can it be over 3g?
Your user name and password for windows.
You MUST have a password set up on your windows account to be able to use remote desktop. If you don't have a password set up remote desktop and other network related access will not work. I.e using the phone to access shared windows folders.
bzdemes said:
Your user name and password for windows.
You MUST have a password set up on your windows account to be able to use remote desktop. If you don't have a password set up remote desktop and other network related access will not work. I.e using the phone to access shared windows folders.
Click to expand...
Click to collapse
ok ive added a password to my pc but still wont work, i think i tmay be something todo with this steps
2. Open a web browser, and type 192.168.1.1 to access your router. If you don't know the default username and password (usually admin/password), Google for it.
3. Enter port forwarding. Add a new entry using your local IP address, and the start/end port of 3389.
Click to expand...
Click to collapse
my router is a THOMSON TG585v7 and to log into it i need to type http://192.168.1.254 so i did and the only thing like port forwarding i can find is the Toolbox\Game & Application Sharing menu and in their i can type the ports but cant type the local IP address as their no where to add it, ive added a pic that might help you help me
If you are accessing the machine via your wifi(i.e your own network) you should be able to do it without any port forwarding.
So punch in your machines local IP and your username and password. That should work(make sure it is using your WiFi and not still connecting via 3G). If you wanted to be able to do it via 3G/wifi(external network) then you will need to get port forwarding working.
Edit: Port forwarding guide for you. I think this is roughly the same version of router you have just different branding.
http://www.portforward.com/english/...mson-Alcatel/SpeedTouch585/Remote_Desktop.htm
bzdemes said:
If you are accessing the machine via your wifi(i.e your own network) you should be able to do it without any port forwarding.
So punch in your machines local IP and your username and password. That should work(make sure it is using your WiFi and not still connecting via 3G). If you wanted to be able to do it via 3G/wifi(external network) then you will need to get port forwarding working.
Edit: Port forwarding guide for you. I think this is roughly the same version of router you have just different branding.
http://www.portforward.com/english/...mson-Alcatel/SpeedTouch585/Remote_Desktop.htm
Click to expand...
Click to collapse
so in the last part of the setup i need to manually define it as the local ip, still not working if that's what i should do
The last step is applying the forwarding to your PC. So you should be able to pick your PCs name in the drop down box.
Have you tried just doing it over your local wireless network(forget about port forwarding for a minute.) Enter the local IP(could also just try entering the name of the PC though im not sure if that works) of your PC as the computer then your user name and password.
Good afternoon,
I am trying to find a out if it is possible to access addresses on my home network so that I can scan or print on devices via my HTC Evo. My phone detects and accesses my network for normal day-to-day activities, but when I open a browser on my phone and type an address into the address field, I get the "address can not be found" page. Even when I do a long press on the power button and disable the data network to the phone, and try to access the wi-fi network alone, I still get the "address can not be found" page.
If anyone has any thoughts or suggestions for this, I sure would appreciate it!
Thank you,
Fred
My phone detects and accesses my network for normal day-to-day activities, but when I open a browser on my phone and type an address into the address field, I get the "address can not be found" page.
Click to expand...
Click to collapse
are you certain you're on YOUR network? what are "day-to-day" activities? are you certain you're trying to access a device on your network that has an http server in it?