[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

Using private ip for a server!

Hi there.

I want to know what are the consecuences of using a private ip address like 192.168.x.x for a server.
and also what happens if someone use public IP for a private network?

1 Solution
Lee W, MVPTechnology and Business Process AdvisorCommented:
Public IP for a private network is fine, but not recommended.  You can use a private IP for a server, but no one on the internet will be able to access it unless you use NAT or a Proxy server and forward the ports for the services you want public.
Pete LongConsultantCommented:
correct private ranges like


are unable to be routed (without NAT or PAT as outlined above) My servers have Private IP's and public IP's simply because Ive got three registered class C networks - these days thats not an option so people use "whatever they want" and simply NAT/PAT it on a router or firewall
While it is true that using NAT you can use virtually an network - public or private - on your local LAN, be aware that if you just pull a network out of your hat, like
Sounds pretty random, right? Well, if you were to use that particular network in your local lan, then you would never be able to go to http://www.cisco.com because it would always resolve to a local address...
Same if you picked something like, then you would never be able to get to http://www.experts-exchange.com ..

You would have to be careful to pick an IP address that nobody is using with a commercial web site that your users might want to visit some day. The IETF has taken that guesswork out of it by creating the set of "private" ip ranges as Pete has posted (see RFC 1918).
Chris DentPowerShell DeveloperCommented:

Just wanted to add a really minor point.

The 169.254 range should really be avoided really, that one is the default address range for DHCP clients (the one they get if no DHCP is available). So there's some potential for IP Conflicts there.

That still leaves three ranges (Class A, B and C) to play with, giving you an impressive total number of addresses to use (as Pete posted). - - -
Pete LongConsultantCommented:
Chris is correct

but you wont get a conflict if you use this range staticly - any AIPA compliant machine will check a 169.254 IP address is not in use before it awards it to itself

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now