Click here to Skip to main content
11,496,146 members (812 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
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 Vilmos285.8K
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

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 Dnyaneshwar@Pune 692
1 RyanDev 230
2 CHill60 163
3 Sascha Lefèvre 145
4 Sergey Alexandrovich Kryukov 124
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web01 | 2.8.150520.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