Click here to Skip to main content
11,926,933 members (48,589 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java Server portlet JSP
I have a link to local server that can be accessed from the local machine only.Now I want to display that link in the internet without publishing the IP in internet.

I am using the class to create the connection to local IP from the local server.But I am unable to download the jsp page and display it.

URL nURL=new URL("");
URLConnection uc=nURL.openConnection();
HttpURLConnection h =(HttpURLConnection) uc;

Now I want to display the JSP page to the user who doesn't have access to the local machine.

I am able to download any files from the local link and display it to any user who doesn't have direct access by:
BufferedInputStream bis= new BufferedInputStream(uc.getInputStream());

But I want to display the JSP page to the user that doesn't have local access.
Can anyone help me in doing it..

Thanks in advance.
Posted 10-Oct-11 6:06am
Edited 11-Oct-11 22:29pm
Nagy Vilmos298.9K
SAKryukov 10-Oct-11 12:09pm
What is "publishing IP in the Internet"? IP is resolved via DNS. What is "opening a JSP page" from a local machine? Opening from a client side as any Web browser does? But for client side, there is no such thing as JSP page. As a file? But why it's a problem? Not clear.
Nagy Vilmos 12-Oct-11 3:29am
Formatted code blocks.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

hi friend,
         I think u need a server for doing this job...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 26 Oct 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100