Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7758437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:21:36+00:00 2026-06-01T13:21:36+00:00

There is a program called PC^2 (a programming contest judging system). You can submit

  • 0

There is a program called PC^2 (a programming contest judging system). You can submit java files to it, and it will compile/run it.

I have a program that creates a socket, when I submit this to PC^2 it runs it fine, but I can’t access the url (http://ip:port/) on my web browser. But when I quit PC^2 (my program is still running) it works when I hit refresh on my web browser. This means that PC^2 is somehow blocking the port, but not occupying it (i.e. making it’s own ServerSocket that occupies the port) because if it was occupying it, then my program would have thrown an exception and quit.

What are possible ways that a Java program can do this? And since PC^2 is closed source, I can’t look there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:21:37+00:00Added an answer on June 1, 2026 at 1:21 pm

    Only one program at a time could listen to a certain port.

    Same happens if you start tomcat twice using the some port

    This has nothing to do with java. That is how sockets work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a program which I can run like this: py2py.py < orig.py >
How can I bind together two Java classes? I'm programming a 3D opengl program
i'm studying iOS programming. i have a program, i will call this program is
I noticed that in Windows 7 there is a Program called Windows Fax and
Is there any program code that can help me to pop up the virtual
I have a program, and in that program there is some variables (username and
I just want to know if there is a program that can convert an
I'm approaching C programming with threads and I can't get this program to work
I have created a file from my java programming, and am logging some data
im studying for my programming final exam. I have to write a program which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.