Computing.Net > Forums > Networking > web server behind a router

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

web server behind a router

Reply to Message Icon

Name: daffy
Date: November 16, 2008 at 04:02:35 Pacific
OS: win2003
CPU/Ram: 1024
Product: IBM
Comment:

Hi i have a question is it posible to have a router with one wan and one lan interface and configure a web server with a public ip adress behind it.Something like my wan intrface should have 78.120.... adress and my lan shoul have 68.127....Is this posible or the router can route just between public and private ip adresses?



Sponsored Link
Ads by Google

Response Number 1
Name: guapo
Date: November 16, 2008 at 06:43:27 Pacific
Reply:

Your example gives 2 external IP addresses and a LAN can't have that. Routers are made to do NAT but only internal IPs are used behind the router. You can put your server in the DMZ. That might solve your problem.


0

Response Number 2
Name: StuartS
Date: November 16, 2008 at 07:15:34 Pacific
Reply:

The correct way to do it is to have a public WAN IP address and private LAN IP address, usually in the range 192.168.x.x. The private IP address is usually derived from the DHCP server in the router but can be configured manually.

You then use port forwarding in the router to forward HTTP port 80 requests on the WAN to the LAN IP Address hosting the web server.

68.127.x.x is a public IP address and should not be used on a LAN.

Stuart


0

Response Number 3
Name: daffy
Date: November 16, 2008 at 08:50:33 Pacific
Reply:

First thanks for the reply.So i cant use public ip adresses on a lan port.is it posiible to have a public ip adress in the same range as the wan port but behind a firewall and still have a lan adress and a private network conected.Is that DMZ?? So i guess if i have 62.... wan ip and 62... ip on a web server behind it the router will not route the packet but simply switch.Am i righT


0

Response Number 4
Name: StuartS
Date: November 16, 2008 at 11:09:31 Pacific
Reply:

Why do you want a public IP address on the LAN port, it is completley unecessary notwithstanding that you can't do it. Where are you going to get this IP address from? You cannot just make one up. Public IP addresses are supplied by your ISP and one is usally enough. The router expects to find a range of private address on the LAN side, not more public addresses. There is no neccesity to have your web server hosted on a public address, Network Address Translaion withing the router does all the work.

The IANA went to great trouble to designate certain ranges of IP addresses as private addresses for use on LANs now you are completley ignoring all that work. Use the Internet the way it was designed to be used, dont just make it up as you go along. It is a lot easier and people may be able to help you. If you insist on doing it your own way you are on your own.

A DMZ is on the public side if a router. It if is behind a firewall it is not a DMZ.

Stuart


0

Response Number 5
Name: jefro
Date: November 16, 2008 at 14:13:11 Pacific
Reply:

You could use a public IP on a lan. You can't allow it to access the internet unless you have leased or own it.
If you are the proper user then you can use either public ip's to access the server. It would be a matter of routing or nat/pat'ing.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


0

Related Posts

See More



Response Number 6
Name: Curt R
Date: November 17, 2008 at 08:13:40 Pacific
Reply:

Hi i have a question is it posible to have a router with one wan and one lan interface and configure a web server with a public ip adress behind it.Something like my wan intrface should have 78.120.... adress and my lan shoul have 68.127....Is this posible or the router can route just between public and private ip adresses?

The normal procedure is to purchase a SOHO router that supports a DMZ. You would then put your web server in your router's DMZ.

This makes the web server available to external connections while keeping your private LAN safe behind the firewall.

This does not require an additional public IP addresses.


0

Response Number 7
Name: kev1234
Date: November 19, 2008 at 07:53:24 Pacific
Reply:

It depends on your Router. Generally, you can do a port forward setting in your router to map the public IP to your webserver that has a private IP.

Good luck
---------------------------
NeoRouter - the network revolves around you


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: web server behind a router

2 web servers behind 1 ip www.computing.net/answers/networking/2-web-servers-behind-1-ip/32992.html

web server behind router www.computing.net/answers/networking/web-server-behind-router/17293.html

multiple servers behind a firewall www.computing.net/answers/networking/multiple-servers-behind-a-firewall/24472.html