Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 10-06-2010, 03:21 PM java string url path
Novice Talker

Posts: 8
Trades: 0
Code:
String webpageURL = "http://192.168.0.1/website/";

Is there a way to leave the ip address out of that string and
have the jsp pull the current url.

For example:
If someone outside my firewall enters the real world ip address (200.200.200.200).
it will use the real world ip instead of the internal.

so if they are on the outside it will use http://200.200.200.200/website/
and if you are on the inside it will use http://192.168.0.1/website/


Clear as mud?

Thanks!

Larry
BigDaddy13 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2010, 06:16 PM Re: java string url path
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Environment variable / CGI variable 'HTTP_HOST' will either contain the website hostname or the IP used to access the resource.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to java string url path
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20093 seconds with 12 queries