LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2003, 06:38 PM   #1
woranl
Member
 
Registered: Apr 2003
Location: Toronto
Distribution: Fedora Core
Posts: 119

Rep: Reputation: 15
Question 192.168.0.# and webserver. Is it possible?


My home has several computers, I'm connecting to the internet via this ip address 192.168.0.8 (Internet sharing)

This ip can't be seem over the web.

Is it possible to make a web-server if I'm connecting to the internet this way?
 
Old 05-05-2003, 06:51 PM   #2
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
Are you using a router? proxy server?, if server, what OS?
 
Old 05-05-2003, 07:01 PM   #3
woranl
Member
 
Registered: Apr 2003
Location: Toronto
Distribution: Fedora Core
Posts: 119

Original Poster
Rep: Reputation: 15
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
 
Old 05-05-2003, 08:16 PM   #4
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
Iīm not sure, but I think that with a cable internet connection you donīt have a public ip. The only public ip is your ISP serverīs.

What do you get when you type in MSDOS?:

ipconfig
 
Old 05-05-2003, 08:23 PM   #5
woranl
Member
 
Registered: Apr 2003
Location: Toronto
Distribution: Fedora Core
Posts: 119

Original Poster
Rep: Reputation: 15
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

I want to make a web-server from my client.
 
Old 05-05-2003, 08:35 PM   #6
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
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
 
Old 05-05-2003, 09:22 PM   #7
woranl
Member
 
Registered: Apr 2003
Location: Toronto
Distribution: Fedora Core
Posts: 119

Original Poster
Rep: Reputation: 15
What do you mean by public IP?

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).
 
Old 05-05-2003, 09:30 PM   #8
Maerd
LQ Newbie
 
Registered: May 2003
Location: Vancouver, BC
Distribution: Rad Hat 8.0 & Mandrake 9.1
Posts: 7

Rep: Reputation: 0
the answer

Look here for answer http://support.easydns.com/service/dns.php3
 
Old 05-05-2003, 09:36 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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.
 
Old 05-05-2003, 09:42 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,901

Rep: Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985Reputation: 5985
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.
 
Old 05-05-2003, 09:59 PM   #11
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
Trickykid:

What I was trying to explain is:

-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.
 
Old 05-06-2003, 04:23 PM   #12
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
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

Hope this helps

Pete
 
Old 05-06-2003, 07:20 PM   #13
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
I still have one doubt:

Does the cable connection gives you a public IP to your PC?
 
Old 05-07-2003, 05:46 PM   #14
woranl
Member
 
Registered: Apr 2003
Location: Toronto
Distribution: Fedora Core
Posts: 119

Original Poster
Rep: Reputation: 15
Thx guys... before I thought it's not possible to make web server on client... now at least I know where to start looking

BTW, as angelrod said.. if I make a webserver using cable... only cable user can see it.... It is true??

I live in Canada, Toronto ... using Rogers Highspeed internet.
 
Old 06-02-2003, 08:16 AM   #15
hornet
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
winroute pro does routing and port forwarding. availble from http://www.kerio.com/kerio.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is someone on my network?! ::ffff:192.168.0.10:ssh ::ffff:192.168.0.:38201 ESTABLISHE ming0 Linux - Security 4 04-12-2005 01:04 AM
192.168.2.1 network with 192.168.0.1? Micro420 Linux - Networking 2 02-27-2005 06:59 AM
Iptables is converting -s 192.168.1.0/8 into 192.0.0.0/8 why !? qwijibow Linux - Security 2 01-26-2005 09:57 AM
what is the meaning of this 192.168/16 ? kublador Linux - Networking 2 09-02-2004 06:51 AM
192.168.0.0/25 ? Firew Linux - Networking 1 04-12-2001 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration