Click here to Skip to main content
11,789,706 members (63,215 online)
Rate this: bad
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 5:06am
Edited 11-Oct-11 21:29pm
Nagy Vilmos294.6K
SAKryukov at 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 at 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
0 OriginalGriff 999
1 Maciej Los 765
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 430

Advertise | Privacy | Mobile
Web03 | 2.8.1509028.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