Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1848  / 2 Years ago, fri, april 15, 2022, 1:58:14

I can see my "website" locally but how do I get it to show up online? Does it need a domain name per se or can't I just get DNS somehow to pick up my IP address and put it online or something, I don't know. I've got a domain name registered, if that helps.


More From » networking

 Answers
4

Access your website from outside your computer



If I understand correctly, you have a virtual machine containing an Apache server hosting the default "It works!" page. In order for this to be accessible from the Internet, it must first be accessible from outside the host machine (the host machine is the one running the Virtualbox software).



To do this, open the virtual machine's Settings dialogue, and from the Network tab choose "Bridged adapter".



Choose bridged adapter.



This will give the virtual server an I.P. address on your network which you can discover by running ifconfig from the server - look for the address following inet addr:, it will probably be something similar to e.g. 192.168.1.10. Then, type that I.P. address into the host machine's web browser and you should again see the "It work!" page.



Access your website from the Internet



At this point, all that's necessary to access it from the Internet is to change settings on your home Internet connection's router so that, rather than blocking incoming web traffic, it directs it to your new server. This is called 'port forwarding' and is standard fayre on most routers, just log in to your router's web interface and you will find it. (You may need to keep that I.P. address handy.)



However



It appears from your question your knowledge is really quite basic, and rather than playing with putting it on the Internet, I would advise you to keep things local (just on your home network). One slight misconfiguration on an Internet-facing server can be catastrophic.


[#24352] Saturday, April 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
housecoarmer

Total Points: 434
Total Questions: 116
Total Answers: 120

Location: Albania
Member since Sun, Nov 22, 2020
4 Years ago
;