Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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?

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.

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

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

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

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

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.

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

![]() |
![]() |
![]() |

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