LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2018, 06:51 PM   #1
dedec0
Member
 
Registered: May 2007
Posts: 952

Rep: Reputation: 31
Unhappy 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.
 
Old 10-04-2018, 07:06 PM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,830

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
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.
 
1 members found this post helpful.
Old 10-04-2018, 08:46 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,463
Blog Entries: 25

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
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.
 
1 members found this post helpful.
Old 10-04-2018, 09:56 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,047

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
Quote:
Now I want to communicate the two systems
Define communicate. What are you trying to accomplish? Do you want to run commands on the server from your phone? Do you want to transfer files? frankbell has posted a couple of good apps.

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.
 
1 members found this post helpful.
Old 10-04-2018, 11:52 PM   #5
dedec0
Member
 
Registered: May 2007
Posts: 952

Original Poster
Rep: Reputation: 31
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^

Last edited by dedec0; 10-04-2018 at 11:56 PM.
 
Old 10-05-2018, 01:46 AM   #6
dedec0
Member
 
Registered: May 2007
Posts: 952

Original Poster
Rep: Reputation: 31
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.
 
Old 10-05-2018, 04:58 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,642

Rep: Reputation: 277Reputation: 277Reputation: 277
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,
 
Old 10-05-2018, 10:31 AM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
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.
 
Old 10-05-2018, 10:42 AM   #9
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,419
Blog Entries: 9

Rep: Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899
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?

Last edited by hazel; 10-05-2018 at 10:52 AM. Reason: Correction
 
Old 10-05-2018, 03:48 PM   #10
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,830

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Quote:
Originally Posted by hazel View Post
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?
You are correct. You don't need a web server to view a local html file in a browser. The SciTE editor even has a command that says "open this in the browser" when editing an html file.

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

Firefox canít establish a connection to the server at webclone.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computerís network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
(I actually also get that locally, because http://webclone attempts to connect on port 80, and there's nothing there)

I connect to this desktop all the time via ssh using PuTTY...
 
Old 10-05-2018, 04:51 PM   #11
dedec0
Member
 
Registered: May 2007
Posts: 952

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by hazel View Post
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?
Indeed. It seems to be only for local files:

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.
 
Old 10-05-2018, 05:10 PM   #12
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,830

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Quote:
Originally Posted by dedec0 View Post
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.
Thought you said you could ssh from the phone to the desktop, yes?
If you can ssh, you can sftp...no additional server required on the PC. Don't know what's available for the phone, tho.
 
Old 10-05-2018, 05:41 PM   #13
dedec0
Member
 
Registered: May 2007
Posts: 952

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by scasey View Post
Thought you said you could ssh from the phone to the desktop, yes?
If you can ssh, you can sftp...no additional server required on the PC. Don't know what's available for the phone, tho.
I said I can ssh from the computer to itself. So (I guess) I can ssh from phones to the computer, as long as they have an user+password for that. If that if possible, of course scp would be possible... but typing scp queries would be hard on mobiles - I guess.

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.
 
Old 10-05-2018, 05:43 PM   #14
dedec0
Member
 
Registered: May 2007
Posts: 952

Original Poster
Rep: Reputation: 31
@ #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.

(:
 
Old 10-05-2018, 08:45 PM   #15
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make torrent use wifi when connected to LAN & WIFI priyankgupta1984 Linux - Newbie 3 08-25-2014 04:25 PM
LXer: Make Your Computer Talk with Festival Linux LXer Syndicated Linux News 0 03-15-2013 09:00 AM
[SOLVED] Silly Question -> Site or my Computer jv2112 LQ Suggestions & Feedback 3 04-28-2011 06:54 PM
Rather silly question about Lilo, just to make sure Sabinou Mandriva 2 01-07-2008 05:33 AM
Simple, silly wifi question oobnuker Linux - Wireless Networking 8 09-01-2005 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration