Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I'm running a nginx server on Linux Mint 20.2 Cinnamin. When I use Localhost it shows my webpage but when I connect to it through another computer it says it can't connect. Pls Help.
Hello, I'm running a nginx server on Linux Mint 20.2 Cinnamin. When I use Localhost it shows my webpage but when I connect to it through another computer it says it can't connect. Pls Help.
Please don't use text-speak; read the LQ Rules.
And although we know you're using nginx on Mint 20...we know nothing else. No web browser, other computer details, network details, what you're putting in on the other side, etc. What are you typing in on the other computer to try to access the web page? How are you accessing it on the local computer? Firewalls? SELinux? We need more details.
Hey, 1. Im not using text to speach, just in a hurry. 2. on the other end I'm using chrome os to acsses it with all firewalls down.
And The Linux pc is a Lenovo flex 3
Hey, 1. Im not using text to speach, just in a hurry.
Not text to speech...text-speak. It's "Please" not 'pls'. Read the LQ Rules.
Quote:
2. on the other end I'm using chrome os to acsses it with all firewalls down. And The Linux pc is a Lenovo flex 3
Ok, so now we know it's Chrome...again, what browser? What are you typing in on that browser to try to access your server? What are you typing in on the local host to access it?
Again, without any sort of relevant information we can't even guess. We don't even know what (if any) messages you're getting on whatever browser you're trying to use.
The questioner needs: the Google keywords. What are they?
No, the questioner needs to provide the details. Anything as vague as "not working" has no chance of being answered.
Quote:
/r/linux4noobs would have worked infinitely better.
So why are you here, then?
Quote:
I didn't click on "View Post", to read the missing #2 & #4, sorry.
Perhaps if you did, you'd know what was going on, and the missing details. And as you've been told before, if you can't contribute to a thread, don't post. Saying they need Google keywords and saying post elsewhere doesn't help the OP or answer any questions. And admitting you don't have the facts or know what's been asked isn't good either.
Possibly the IP address is the problem, but that's a blind guess. Do you know ping?
I haven't made the effort to learn to get Mint text-to-speech working, so it's difficult for me to reply, especially without seeing any further info. I'm guessing the UNdisplayed posts are scaring the n00b away, so let's *wait* to see if the questioner ever comes back to LQ.
Quote:
...in a hurry...
They seem to only want the **instant** answers that Google provides. Best wishes. Bye.
Can anyone *else* help the questioner use Google? I'll take a guess at the Google:
Code:
nginx localhost works but other computers can't access
Did you bother to actually read any of those? They all indicate one or both of the things the OP has been asked about, and what jefro mentioned. And we can't help with either, since the OP hasn't provided any details.
Not hard to find, since it's in the posting signature of many here, along with having been given to you several times in the past.
Quote:
But I don't know how to teach /r/linux4noobs to fix the UNdisplayed posts. Maybe someone else can.
Perhaps, but since you're not making sense with that statement, we don't know.
Quote:
Possibly the IP address is the problem, but that's a blind guess. Do you know ping?
...and we're back to you asking the same kinds of questions the OP has been asked several times.
Quote:
I haven't made the effort to learn to get Mint text-to-speech working, so it's difficult for me to reply, especially without seeing any further info. I'm guessing the UNdisplayed posts are scaring the n00b away, so let's *wait* to see if the questioner ever comes back to LQ.
If the OP is scared of/unable to answer basic questions, there isn't much anyone can help them with. However, you still don't provide answers, do you?? Again, grow up with this passive-aggressive junk. Either contribute or don't. Don't keep telling people to use Google.
Quote:
They seem to only want the **instant** answers that Google provides. Best wishes. Bye.
And since they don't provide details, they won't get them there, either.
So is this what you need? I am using it as a http server so i connect through http. here is my nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
So is this what you need? I am using it as a http server so i connect through http.
No, it isn't, although it doesn't hurt. Again:
What are you typing in to the remote browser to try to access your machine??? As in, "http:// <WHAT???>"
What are you typing in to your local machine that DOES work?? "http://localhost"? "http://machine-name"? http://<IP address>"??
What browser are you using on Chrome OS?
What network are these machines connected to? Same network? Different? Internet? Work to home?
What message(s)/error(s) are you getting on the browser??? 404? 500? 503?? Anything????
Can you ping the IP address of your nginx machine from the Chrome OS system??
Can you access any OTHER network services (SSH, FTP, etc.) from the Chrome system.
If you're typing in "http://localhost" on Chrome, that's not going to work, neither is machine-name, unless you have it set up somewhere in a hosts file or local DNS somewhere. Again, these simple questions will let us try to help you. Again, there are a LOT of moving parts here, so looking for something simplistic on Google will pull up thousands of different things...all addressing different problems.
Please answer the simple questions asked several times now.
@GUru1: maybe my situation is same as low-info OP. Did *I* provide sufficient details?
:genuflect:
Added: ooops, tcpdump looks same on successful localhost https://termbin.com/m29k
so maybe I'm lost off in 'left-field' here...
(at least my debugging might be partly useful to someone someday)
p.s.: @NginxUser: can you collect the same:
sudo tcpdump -nnvv ip host <the IP of remote machine>
You can also try, from remote machine: telnet <NginxServer> 80 and enter: GET /
Does that *not* connect? (But does if done on localhost)
EDIT added AFTER #14 (since OP hasn't been back):
It was actually working, just no prompt!
Yup, I totally "fell off of left-field".
I disassembled my car engine, only to discover I hadn't heard it was running ok! Learned a lot tho.
"When the impossible is happening, it isn't". Again.
Last edited by GentleThotSeaMonkey; 09-05-2021 at 08:19 PM.
@GUru1: maybe my situation is same as low-info OP. Did *I* provide sufficient details?
No idea who you're talking to, but if you have the same issue, you need to answer the same questions. If you're able to connect to localhost and pull up a web page, you know it's listening and working.
tcpdumps, wireshark, etc., are tools to use *AFTER* you do basic diagnostics and troubleshooting. Ping the machine; try a different service; describe the network. A machine on the same network/VLAN has a totally different set of issues than one that has to be NAT'ed at both ends, runs over the Internet, through firewalls, etc. As of yet, we don't know what they're seeing in the browser; for all we know, it's a 404 message because the web page is misspelled. Or they're keying the machine name in with no hosts entry. Could be incredibly simple or not...but unless you start with BASICS and go forward, it's 1000 times more difficult to diagnose.
Would you like to take your car to the mechanic and have them pull the engine out to 'diagnose' a noise, or would you want them to start it and just look and listen? Plug in the ODB scanner and read codes? Start simple, go from there.
Quote:
Added: ooops, tcpdump looks same on successful localhost https://termbin.com/m29k
so maybe I'm lost off in 'left-field' here... (at least my debugging might be partly useful to someone someday)
p.s.: @NginxUser: can you collect the same: sudo tcpdump -nnvv ip host <the IP of remote machine>
You can also try, from remote machine: telnet <NginxServer> 80 Does that *not* connect? (But does if done on localhost)
Again, a simple ping is all that's needed to verify basic connectivity. You don't need tcpdump to do that. Ping the box.
1. http://<Ip Address>
2. http://localhost and http://ip-address
3. Chrome
4. Different and Internet
5. (Chrome error) ERR_ADDRESS_UNREACHABLE
6. How do I (I don't have Linux enabled and I can't)
7. And I don't have a server I can Connect to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.