Is there a way ( protocol ?) to share & exchange files between pc with Windows os and a mobile phone with Android os over WiFi ?
For an Ad Hoc Android to PC connection (Per the source below):
Connect your computer with virtual hotspot created by Android device.
Install any FTP Server app on Android device. It'll NOT give you IP of device for sure.
In your computer, find IP of Default Gateway of Wi-Fi network of Step 1 (In Windows, you can use ipconfig cmd command). Its the IP of your device.
Use any FTP Client software on computer. Use ftp://IP:Port (Port is generally configurable in FTP server app). Enter username & password configured in FTP Server app. Done!
Then they said "After some testing with different settings I got it to work flawlessly, thank you very much. For anyone else looking to do this: I used Android Wifi Tether to start the network using Softap mode, connected to it with the computer, started an FTP server (some server apps might need you to enable 3G mode, even though 3G data isn't actually used, you can turn data connections off if you're paranoid."
Source
For Internet Based Connections:
You may simply want to transfer the files to a hosted server with push notifications to "pull" down the files to the various devices.
Scope this out: http://www.eckstreme.net/
The coder of that app may be willing to help you get off to a better start, email him.
Here are the steps:
Connect your pc and android device to the same Wifi Network. This can be an ad-hoc network created on the android device or your home/work wifi network.
To create an ad-hoc network on your device go to Settings->More (under wireless networks)->Tethering & portable hotspot and tick the portable wifi hostspot option.
Install a FTP server app like https://play.google.com/store/apps/details?id=com.medhaapps.wififtpserver from android marketplace.
Start the app on the device and connect to the URL provided by the app from PC.
Transfer files to/from device from/to PC
Related
I am programming an Android app which connects to a TCP server running on my computer using sockets. This works perfectly fine as long as both my computer and my smartphone are connected to the Wi-Fi of my router.
I want it to also work when my computer and my phone are not connected to the Wi-Fi. Therefore I configured a Wi-Fi hotspot using hosted network on my computer. My smartphone recognizes the Wi-Fi and is able to connect to it. But now my app can't connect to the server running on my PC although I changed the code to the new IP that I got by using ipconfig on my PC.
I downloaded an app named "Fing" from the Google play store. The app shows all devices in a network. It does show my computer under the right IP address. I don't understand why my app can't connect to the server running on the PC.
On the one hand, I don't think that the problem is in the app's code, because it works on the router's Wi-Fi network. On the other hand, I doesn't seem to be a setup mistake either, because Fing is detecting my PC.
Do you have any ideas what the problem might be, or any other solution for my needs?
I actually wrote the TCP server myself using c#. I configured the Server to listen to all of my computers networkinterfaces usingIPAdress.IPv6Any. I also did configure it as dual mode socket so it can accept ipv4 and ipv6 connections. I will post the code when i am back home. So the TCP server also looks ok to me.
I have no networking background. I would like to apologize if the terms that I used in my question below are incorrect. Your help is appreciated.
1) Recently, I am developing an android app which involves google map api and xampp. I can access database on the phone browser(192.168.x.x:8080/folder/getdetail.php) when my android phone (4.1.2) is connected to my pc and used my pc's internet connection. But after I unplugged the usb from my pc and used wifi, I no longer can access the same link as mentioned above on my phone. May I know what is the problem and what tools or skills that I need to look for?
(2) If the above mentioned problem is solved, I am also looking forward on the way to make xampp to be accessible over the internet. For instance, my pc serves as a server at home and I can connect to the server and retrieve some data from the db when i am elsewhere.
P/S: My pc is using wireless internet connection.
Unfortunately there's too few information on your network and your pc. Let's assume you're using your Windows-PC and Phone on the same Network and you didn't change any web server settings and didn't move the XAMPP folder.
XAMPP is running an apache Server which is listening on TCP Port 80.
First you should check your firewall. Windows is using 3 different Profiles.
if you connect your phone and an additional network is set up with a different profile this could be the reason.
http://www.windows7library.com/blog/wp-content/uploads/2011/06/Network-and-Sharing-Center.jpg
If you want to access your XAMMP from the internet you should forward a TCP port to port 80 on your PCs LAN IP-Address.
http://en.kioskea.net/contents/280-nat-network-address-translation-port-forwarding-and-port-trigg
http: //en.wikipedia.org/wiki/Port_forwarding
But please only do that for testing purpose since outdated webservers/modules/scripts can actually harm your system. Use XAMPP only for development and testing.
My advice if you still want to do it forward some other port >10000 to your local port 80.
To access it you have to add the port to your url like this http: //127.0.0.1:8080/
I am currently developing the android application in which I have to upload a file (any normal document) from my android device to any other PC/laptop. But this should be done only with the use of any common WiFi network. (Use of Internet connection or WiFi-Direct functionality is not allowed.)
So my question is how to share files from android device to PC/laptop by using only common WiFi network ?
I think xender does the same thing for android to android device.
But I have to do it for android device to PC/laptop.
You can use a Socket for it. The PC can be server, and the phone can be client. Then connect them. After that, you can send the thing you want by sending byte[] in android socket.
By the way, if you can use a USB line to connect PC with phone, you can try LocalSocket in android and adb forward in PC.
Situation: on PC installed server, and available address with this site: http://localhost
And installed Connectify Hotspot to share internet via wi-fi.
Also, I have android-device from which I need visit localhost on my PC. Via wi-fi is not principal.
How I can do this? I have read a lot of instructions, but they are for AVD (through 10.0.2.2), that I could do, but not with real device.
I made it.
Disable firewall while you testing connection.
Define your wi-fi IP-address by ipconfig.
On local server you need to create folder with this IP-address and put in this folder site or something, you want to open through wi-fi on mobile.
example: 192.168.77.1/www/index.php
Restart your server. After this you will be able to access to your site in PC-browser by your wi-fi IP-address. If not - restart server another once, or something going wrong :)
Turn on mobile wi-fi and in browser try to access to wi-fi IP-address.
Profit.
localhost on the device refers to the device itself, not to your computer. Get your computers IP address (ifconfig on linux or mac systems) and use this instead of localhost.
I want to write a program ,which will communicate to the available android mobile device via wi-fi .(Note :I do not want to use the USB cable)
That moblile device is having an IP in it by a wi-fi connection with it.The major thing is that i pinged that IP and I am getting connection packets getting back to my pc,means I can communicate with the devices. so can I able to get the details of the device.
details means
1.its name what user sets on it.
2.some address like mac in computers.
3.model name.
4.type of os in it.
etc
I really find this interesting but,no idea how to do but i got something like ARP protocol for getting the mac address but I do not know how to communicate with a phone with this ARP protocol.
Can we communicate by the SSH as it a linux kernel based OS .Kindly give me a way how to get these information.
can any one have some idea ,kindly tell me,it is very important for my project.
Thanks
There is adbWireless application. If you install it on your device, a widget appears that allows you to connect with it over WiFi. In Toast message it shows IP address of Android device.
Then on your PC type:
adb connect 192.168.1.102
(replace it with Android IP address).
And now you have an access to your phone over WiFi (check it with adb devices).
You need rooted phone to use adbWireless.