File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes localhost:serverport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "localhost:serverport" Watch "localhost:serverport" New topic
Author

localhost:serverport

sandeep Talari
Ranch Hand

Joined: Dec 24, 2007
Posts: 63
Hello pals,
I had small dought.How to map localhost:serverport with a unique name (programmer defined name )please tell me what is the procedure for that.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

You'll have to explain yourself more clearly. Are you asking about obtaining a domain name?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sandeep Talari
Ranch Hand

Joined: Dec 24, 2007
Posts: 63
yes sir, like we had http://www.javaranch.com. My question is how I can map my host and port to such address.
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
It is called Domain Name System (DNS) and it is the responsibility of the Domain Name Servers to decode a given host address into a machine understandable IP addresses.

You need to follow following steps.

1. Get a publicly available ip address (localthost is not visible to others than the same host)

2. Register your domain at any of many domain registrars (like domains.yahoo.com or godaddy.com)

3. Domain registrar gives option to specify the ip, which registered domain traffic should be redirected to. There specify the server ip (from step 1).

That should do it.
[ July 09, 2008: Message edited by: Santhosh Kumar ]
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
We can do that using virtual host concept as well.

If you are using weblogic, there you have an option of virtual host.

There you can configure your ip with alias name.

Correct me if my perception is wrong.


SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Originally posted by Jetendra Ivaturi:
Correct me if my perception is wrong.
That's part of the setup, but that's not going to do anything to make the server available to the Internet. The domain name must be purchased and set up on DNS servers.

As this is not a servlet question I've moved it to the general forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: localhost:serverport
 
Similar Threads
Drag and drop bug: Sun say...
Comparable not working.
How to know the last visited user in webpage
WA #1.....word association
how to capture a radio button value