Seems a silly question but, how do I make LAN wifi talk to my computer?
My computer has cable Internet, which reaches it with a modem, which has wifi. It has Debian installed.
When someone with a mobile phone comes here, she may use Internet in my wifi. Very easy. Now I want to communicate the two systems. I have been fighting this "problem" (quotes because it seems it should be something easy) for a few days. My computer has a chosen and known IPv4. But I cannot access it in a browser, neither in my computer itself, nor in a phone using the wifi. I can SSH to my LAN IP, but not view it in the browser. Why? Installing apache for this seems to be using a missile to destroy an ant. To communicate with droids here (rooted androids or not), and other mobile phones, what should I use? A remote server with some comm service? If basic things about mobile phones are missing in what I wrote, it is because I do not know them. Please tell them to me. Searching information in the web is not easy because maaaaaaany different situations are kind of similar, and I find it hard to decide what should be good, and what is bad or unrelated. |
In order to "view something in a browser" the computer must be running a web server, so installing apache or some other web server is, in fact, what you'd need to do.
ssh is one "service" usually on port 22. Web browsers connect to a web "service" on port 80 or (for https) port 443. Each requires its own software. I'm not sure what you mean by "communicate with droids" Please expand on that. |
If the phone is an Android, you can view it from your computer's browser, upload and download files, and the like, with Airdroid; it's in the Play store. You do not need an Airdroid account to use it locally.
There are some file managers that are capable of seeing shared directories on file servers in the Play store. ES File Explorer is one such, if memory serves. |
Quote:
You installed apache but you also need to make sure its running and the firewall allows web traffic i.e port 80 as posted. Most distributions should have a default web page i.e index.html but make sure it exists. |
Before everything, I thank you all for your comments and attention.
(: Below I comment each post until now. @ #2: I have a vague memory of computers having default (or shipped with) things that could serve as basic sites (static HTML, folders to share files, etc.). These vague memories may also be with server distributions (Ubuntu Server 5.10, for example). By "communicate with droids" I meant the computer doing things with the phones, like sharing files or folders (from both). Maybe I should try installing ftp (server? I will search a tutorial for that, should exist) in my Debian, and have a small ftp client apk at hand to everyone here. One important detail is: I want to use these things only using the local network. Or I will have to worry more about the security of my computer on the whole Internet. Using Internet services for these are acceptable, though, if is too hard to do it locally (which I guess it is not). @ #3: Airdroid... seems very nice, and michaelk also thinks this. I did not even know that controling a phone remotely for all they say in the main page you pointed was possible! If installing something is necessary, most people I know would practically be much more fond of the idea if the app is FOSS. The other software you point seems nice too - and its feature is very simplistic, remembers me of ftp, Samba and interaction with simple websites (upload or download files). My experience with smartphones is very small. I still do not have one for daily use, and I just play and do a few things with friends' ones, sometimes. @ #3: as you said, frankbell understood me a better. I am sorry if I was not clear with what I wanted. As I already said, it may be just my lack of "mobile mileage". I did not install Apache yet, but I will do it today. The default Apache settings should be safe for "remote pirates", right? I know some HTML and a bit of PHP, should be fairly easy to play a bit around the (I know I would have to install PHP to use it), although have been many years since I did so. ^o^ |
Small, easy and fast, but...
I just started to solve part of the problem. I installed apache2 (and one more package: apache2-doc). I could make a static page and access it from phone. Now I will search if there is an easy, quick and FOSS to make pc<=>phone file transfers, Debian (as client) is already ready for that. |
check out this link, I think it might help what you are trying to accomplish: https://askubuntu.com/questions/6337...are-for-ubuntu
At first I thought you want something like RAT, :) |
Samba works for file sharing with Android. You can get a GSM Android phone on eBay for 40.00. Tracfone will give you data/phone/text service for 15.00/month, or even less. You just need an unlocked GSM phone with an external SIM card slot and Android 6 or later.
If you want to get into the guts of the phone, you'd use ADB. |
Is apache actually necessary for informal communication over the home network. On any single machine, you can view an html file in a browser without needing a web server; you use the file:// protocol.
Now if you have an ssh server running on your machine, you should be able to log in from another machine and use the same trick to see the local files in your remote browser. No, hold on! You'd have to use the browser on the same machine as the files. But it should be possible. Or am I missing something here? |
Quote:
But if I want to see a web page using a browser on some other machine, there needs to be a web server running on that machine to connect to. For example, here's the response on Firefox from the Windows desktop on my network trying to connect to this desktop, which doesn't have a web server running (or even installed: Code:
Unable to connect I connect to this desktop all the time via ssh using PuTTY... |
Quote:
Wikipedia: File URI scheme I even tried it from a phone that can access the computer site through Apache, with both IP and computer's hostname. Access denied - could Apache do this different? But serving FTP is what I am looking at now. The specific apps a few of you pointed seems to be more than what I will usually need and use - and they can be done by other services already in use. |
Quote:
If you can ssh, you can sftp...no additional server required on the PC. Don't know what's available for the phone, tho. |
Quote:
About sftp... I am trying that right now. Open tabs: https://itsfoss.com/use-ftp-linux-android/ https://f-droid.org/en/packages/org.primftpd/ https://f-droid.org/en/packages/org....g.sendwithftp/ sftp x ftp is not important now. It is simple. The final result I imagine is: leave a webpage to download a few apks, maybe having one or two links too; the computer will have a local only FTP (or sftp, if that is not possible) to upload and download files from a chosen computer directory (id est, I want an FTP root folder completely arbitrary); play with files of both. |
@ #8
@ #8 (I forgot to write this comment, I am sorry!)
Except by the possible samba share, the rest does not seem close to what I am imagining here - as you probably have seen in the other posts. (: |
Samba is OS agnostic. If you haven't used it before, there's a little learning curve. But it does exactly what you want, which is to share files. You just set up the server on the PC, and scan the lan from a file manager on the Android phone. The phone should just find the samba share.
|
All times are GMT -5. The time now is 11:32 PM. |