A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Secure way to obtain host address
Nuno Miguel Santos
Joined: Nov 01, 2011
May 29, 2012 16:43:03
I'm doing a simple RMI project that guarantees a secure communication between a server and client residing on different computers.
So, for communication, I thought of using
, with an
My problem resides in obtaining the host address, I don't want it hard-coded in my program.
What secure ways do I have for obtaining an host address?
Encrypt in a text file and read from it?
Joined: Feb 25, 2007
May 31, 2012 10:41:43
Why do you need to encrypt a hostname?
, a better way to API!
Joined: Aug 11, 2007
Jun 01, 2012 23:18:29
By definition, on the whole internet, host names are public. That is what DNS (dynamic name service or distributed name service) is all about.
If you want to connect to www.google.com, its public. Period.
I would strongly recommend that you do not use RMI for this project. Use HTTP or if you really need security, use HTTPS
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Secure way to obtain host address
Exception Handling and Purpose
Https connection using a hostname not a url.
Error While deploying Web Service
can applications access servlets?
HTTPS hostname wrong: should be 126.96.36.199
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014