Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I made a server for a research project two days ago (Ubuntu 14.04 LTS, Apache2, PHP). I haven't set a domain name yet, so the webpage is only accessible via ip adress (in this case ipv6,inet 6addr at ppp0).
I asked a friend to try it, everything worked fine on her computer and mobile phone too. Later I asked some friends and colleagues to access the webpage but they were not able to do so. They got the 443 unreachable error message. My first friend was still able to access the webpage her computer and mobile phone. I run through some questions here and on other sites to solve this problem but nothing helped.
I asked the users to check their IP-s on https://www.whatismyip.com/. When using her ethernet and wifi at home, my first friend had ipv6 type IP address, she was able to access the site. The other users had ipv4 type address and they were not able to access my webpage. I asked my first friend to switch to the mobile internet provided by her telephone company. After this she wasn't able to access the site and she had ipv4 type IP address. After she switched back to her wifi she was able to access the page again.
What could be the cause of this strange problem? What can I do to solve it?
If the server has only IPv6 and the user has only IPv4 then they won't be able to communicate. More and more clients have both IPv4 and IPv6 these days, but unfortunately there are also many clients left that only have IPv4.
If you want your server to be reachable by them then you'll need to make it reachable over IPv4 as well as IPv6. There are free services that help you do that (cloudflare comes to mind)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am running an apache web server on my Raspberry Pi that hosts a website. To get the IP address of the server i used ifconfig and looked for the inet address under wlan0. I typed this address into chromium and reached /var/www/html/index.html. I do not want to reach this file, instead i was hoping to configure the server so that the first site i reach is /var/www/test/index.php.
How can i achieve this?
First, you need to change the document root of apache to point to the /var/www/test directory.
For this I advise you to follow this explanation : https://askubuntu.com/a/738527
And then normally you will be able to access your page from other computers using the IP address of your PI.
If you only have one webpage running on the Pi, you need to change the document root of the apache.
A better solution is, to use virtual hosts with apache. Depending on the OS on the Pi there may be different paths for the Apache config files. I only know it for Debian (Raspbian).
Then you have to enable the virtual host (a2ensite <configfile.conf>) and reload or restart Apache.
If you are running a local Nameserver (like PiHole), you have to add the correct DNS entry for this virtual host. Or if you don't have a local DNS you have to edit the /etc/hosts files on all machines you want to have access to this website. (There is also a hosts file on windows (i think it is in \Windows\System32\drivers\etc)
Thats it :-)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have tailscale up and running on the raspberry pi. Its incredibly easy to use and SSH with.
Just having one problem now, the IP address that it assigns me doesn't share the results of localhost:5000 or localhost:8000 with the other computers on my new tailscale local-type network. However, it shares localhost:80 just fine and of course :22 and the VNC port I guess.
Those pretty common ports for development, and I'm not really versed opening/forwarding/closing ports, which is the whole reason I'm using tailscale.
Can someone point me in the right direction as to how to get these ports to work on my other connected machines?
As it turns out, I was lacking a fundamental understanding of networking. There was nothing for me to change with tailscale or zerotier (or ports/nmap, router, ISP etc).
I had to serve my content on 0.0.0.0 instead of localhost.
This helped me out:
What is the difference between 0.0.0.0, 127.0.0.1 and localhost?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have an Apache Web Server installed on Ubuntu 16.04 in a VM, the problem I'm having is that my server doesn't seem to have its own IP address. I tried using hostname -I but only a blank line appears, while ifconfig shows 127.0.0.1 and 10.0.0.2.
The problem I suspect is that it's related to the network settings of my VM since when I imported it to the computer laboratory at school, the commands hostname -I and ifconfig showed an IP address like 192.xxx.x.xx, I tried searching around but I can't find similar problems where the host machine is connected to a router via wireless connection. What can I do?
EDIT:
VM software being used is Oracle VM VirtualBox Manager
Network Settings:
Because "Bridged Adapter" is used the router acts as DHCP server.
There are 2 solutions if you want to access a server located at VM from host without network connected:
Set adapter as Internal network see details
Note: in this case Internet cannot be accessed through this interface.
You would probably like to add another Bridged or NAT adapter to acceesss external network
or NAT details (how to setup)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am working on a project and for that project I need a software which is on my university server. Before I was working in my laboratory. Due to some personal reason I had to leave the country. Before leaving I setup SSH and VNC on my host computer which is a linux machine with Centos distribution. After I left the country I used to access my host computer from my home country using putty and VNC viewer. Yesterday when I tried to SSH onto my host I got this Error: " Software caused connection abort". I asked the system administrator in my university and he told me that SSH is blocked for outside the country. The only solution for you is to be inside the university network first and then access the host using putty and VNC.
Can someone please walk me through how can I do this.
You will probably need to use a VPN that is located within the same country. That way the university servers think you are logging in from within the country.
For example, I am in Brazil, but when I use my US VPN most websites see me as coming from the US.
Hi I think you need to find a host in your university country and connect to that host first. Then login in to your university laboratory via that host.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Hi I just finished setting up my new apache web server from my laptop running windows 7. I created the server using apache, then port forwarded my laptops ip (port 80), and finally got myself a free domain using dot.tk. Ive added a few files and done some basic html stuff, and it is successfully up running and accessible to everyone through the domain. But i have a question. Lets say someone was to download files from the site. Is my local network's bandwidth consumed? If anyone can explain how this works that would be great.
Thanks in advance.
The data will run through all segments connecting the client (your end user) to the host (your hosted web server).
So if they need to get to your house where your laptop is to get to the web server, then your house's network connection's bandwidth will be used.
If you hosted it remotely on some shared server site like Amazon instead, then the bandwidth of remote clients accessing your server never uses your home connection's resources, it only uses the resources between their computer and Amazon.