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

x
  • 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?

thanks
0
sm_billy
Asked:
sm_billy
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.
0
 
Pete LongConsultantCommented:
correct private ranges like

192.168.x.x
172.16.x.x
10.x.x.x
169.254.x.x

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
0
 
lrmooreCommented:
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 198.133.219.0
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 64.156.132.0, 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).
0
 
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).

10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255
0
 
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
0

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