Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

how to access servlet only via specific port?

sagimannJan 22 2012 — edited Jan 23 2012
Hi all,
I have an app with 2 servlets, I want each servlet to be accessible via a different port.
so I open HTTP on my web server, on port 80 and 18080, but now BOTH servlets are available via BOTH ports.
how can I make sure that servlet 1 is accessible only via port 80, and servlet2 is only accessible via port 18080?
tnx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2012
Added on Jan 22 2012
2 comments
462 views