Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
my host is running windows 98. It is the one which connects to the cable modem. My client (the one that I want it to be web-server) is running RedHat 9
I've 2 network cards on my host. When I run winipcfg, one network card will give me the ip address given by my isp. And the other network card will give me an 192.168.0.1 ip.
the ip from my client (RH9) has the ip of 192.168.0.8
What I want to know is if your ISP gives you a public IP, because, if it doesnīt I think youīre not going to be able to set a web server on your linux client PC
I think my ISP gives me a dynamic IP, but I heard that there's some DNS service out there that deals with this problem (it'll point to the new IP each time my computer restart).
You have to have a public IP or you wouldn't necessarily be able to connect to the internet. To answer your question, yes, you can server a webserver with an IP of 192.168.x.x as it is possible. What you need to do is if your connecting your Redhat server thru your Win98 box with a connection sharing, you need to somehow tell the outside world when someone requests a webpage to your IP address thru port 80, you have to have your win98 machine forward the request to your server.
Basically in this outline:
HTTP Request on Port 80 > Win98 Machine With Public IP > Redhat Machine running Webserver with a private 192.168.x.x IP.
This is totally possible, but you have to make it so you Win98 machine acts sorta like a router which I'm unsure to do with Windows and not sure if its possible with Win98. If you had a Linux Box, you could do this quite easily with iptables or the such.
I on the other hand host a website with a IP address of 192.168.1.10 on an internal IP behind a router/firewall. So its all possible, you just need to find out if Win98 can handle this.
Search the web for dynamic ip sites. www.no-ip.com is one example.
They provide a client program which sends your dynamic ip address to its DNS service.
However, some ISPs prohibit webservers and might block port 80.
BTW if your RH PC is on the local network i.e 192.168 you should be able to access the web server by just using the IP as the URL.
i.e. http://198.162.0.1 and you can add the windows host name in the /etc/hosts file.
And of course the better setup would be to use the RH PC as the webserver and for sharing the internet and use the Windows pc as the client.
-I used to have a cable internet connection and when I set a FTP server, the only people able to connect to it were the people that also had cable connection. That is because cable connection is like a big LAN where you at home donīt have a public IP. Is like if Iīd have two PCīs one with the internet connection (IP=200.78.xxx.xxx and an extra NIC with IP=192.168.0.1) and the second PC would have IP=192.168.0.2. The second PC would never be visible to the internet unless my first PC is forwarding the traffic to it. Cable companies here, gives you an IP like 10.0.0.55, the gateway is 10.0.0.1 and they have an other server that finally takes you to the internet (200.78.xxx.xxx). Thatīs why all people with cable connection here will have the same public IP (200.78.xxx.xxx).
I use no-ip and I have a router that is forwarding the traffic to some ports to my PC. But I donīt know how the Cable ISPīs server is going to forward the traffic to woranlīs PC.
192.168.*.* is on of the reserved private address spaces and does not exist on the internet. i.e the internet does not contain routes to this network. This means that no-one can send packets to it because they will be dropped.
What you need to do is use the service above which should allow you to tie your dynamic ip to a URL for people to use. You then need to use a port forwarder to allow your Win98 machine to listen on your real IP to port 80, and to relay any incomming TCP connections on this port to your linux box. The best program I've come across for this is called portmapper and can be found here - www.analogx.com
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.