Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1127  / 3 Years ago, wed, may 26, 2021, 9:12:33

Ubuntu server (natty) is running on my Ubuntu (natty) by VirtualBox OSE, How to only I can access my server NOT every internal IP in my LAN and both can access the internet. now I sharing the Internet by bridge, It's good for access my virtual server. but everyone on my LAN can see too.


More From » networking

 Answers
3

Another possibility is to use NAT networking and forward port 80 to your VM.



That way your server should be able to access everything (internet and LAN), your server will not be visible to your lan. Connections to the port 80 of your real computer will actually connect to port 80 in your virtualised server.



You can check your web server from your host (real computer) pointing a browser to localhost.



You configuration should look like this:
enter image description here



Note that you don't need to fill the IP field.


[#44027] Friday, May 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brellked

Total Points: 63
Total Questions: 107
Total Answers: 104

Location: Morocco
Member since Fri, May 22, 2020
4 Years ago
;