Linux - NewbieThis 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
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.
I have Apache in my Linux VM on Windows .... While trying to map ip address to fqdn .I don't know which ip address to use in port forwarding (host /guest/localhost) , in /etc/host and a complete process of mapping. My IP address in ifconfog is 10.0.2.15
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679
Rep:
Wikipedia has some fairly good explanations of Network Address Translation and port-forwarding.
Please take a little time to look into LAN, WAN, Internet and other terms with IP version 4 in mind.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679
Rep:
Just please read what NAT means, what port-forwarding is and what DHCP and DNS are. There's no need to remember the numbers and calculations given, unless you want a career in networking, but you need to understand what a LAN is, what a NAT does and why that is important as well as taking in as much as you can about IP addresses in general. If you really annot get to the bottom of it then there are courses to take and people to pay to learn but it really is not that complicated.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
First of all, private address space, i.e. 10.0.0.0/8, have no fqdn associated with them. So, your are missing information that is fundamental to Linux administration, and which is very easy to find online.
To reinforce what 273 has noted, you must learn at the very least: DNS, NAT, DHCP, and private address space. You'll find it's very simple just using google.
i have tried with almost everything from google and youtube. still not clear with things made me post it to this site
Actually it is not a question, not a request and even it is not a problem - from my side. If you have any problem, question, issue please post it including all the related information. Otherwise I can hardly help you because most probably you have already tried what I'm going to tell you.
There may be a slight confusion here maybe. The VM has a network configured by the name/term/phrase of "NAT".
Should you want to access via internet...
You also need to use that term for the router or modem access to wan. What you need to do at router is translate the wan IP and port to the lan side. That is called NAT but really it's PAT as well. Port address. By the way, you also need to consider if you have a dynamic ip address and if your isp blocks ports.
I might be tempted to change the vm to bridged.
Two places of concern on NAT or bridged choice in vm exit. One is router and two is host. Might as well add in client linux. All need to be in line for both IP addresses and port open and translated as well as any firewall based on programs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.