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

  • Home
  • SEARCH
  • 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 8798327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:04:19+00:00 2026-06-14T00:04:19+00:00

I am new to this site. I am facing a problem with socket programming

  • 0

I am new to this site. I am facing a problem with socket programming in Java. I have written a server, which processes the clients. Everything is fine and working ordinarily.

What should I do if the network on which I want to run the server is password protected? That means we have to provide the username and the password of the system on which we want to login?

If I am running the server on this kind of protected network and trying to connect via client, the client socket is not getting created, because the server is refusing the connection.

  • 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-14T00:04:20+00:00Added an answer on June 14, 2026 at 12:04 am

    If I am running the server on this kind of protected network and
    trying to connect via client, the client socket is not getting
    created, because the server is refusing the connection.

    There are many reasons why a server could be refusing the connection. If you can connect when the client and server are running on the same machine, but not when the client is on a different machine, the problem likely is that the server is running a firewall and not allowing connections from “outside”.

    If the client is on a completely different network segment, i.e. the client is somewhere on the Internet “far” away, then there could be multiple firewalls between the two systems, any of which could be rejecting the connection.

    Another possibility is that when the server opens its ServerSocket, you bound it to 127.0.0.1 instead of 0.0.0.0. In this case, the server could accept connections only from localhost, i.e. originating on the same machine. It would be completely unaware of connection originating anywhere else.

    Without a much better explanation of how the client and server are situated, it is not possible to give a better answer. One thing is certain however: the fact that you require authentication to “login” to a system has nothing to do with your situation.

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

Sidebar

Related Questions

Hi Guys new to this site but a big fan. Right the problem. It's
So, I am new to this site and I am new to programming. I
I'm new on both this site and ruby on rails! I have a common
Let me start by saying I'm very new to Java and to this site.
I'm facing this problem with Java. I want to get some HTML informations from
I am very new to this site and to programming. I started doing some
Ok so I have built this site: http://boardersforchrist.com/new/ and the owner wanted the footer
new to this site so sorry if this question is inappropriate, or in the
Hi i'm new to this site so forgive me if i didn't search for
First I would like to say that I am new to this site, never

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.