A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
I agree. Here's the link:
subject: Secure way to obtain host address
can applications access servlets?
Error While deploying Web Service
Exception Handling and Purpose
Https connection using a hostname not a url.
HTTPS hostname wrong: should be 220.127.116.11
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014