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 711695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:45:51+00:00 2026-05-14T04:45:51+00:00

I built a TicTacToe game application (I’m using TCP protocol) that consist of server

  • 0

I built a TicTacToe game application (I’m using TCP protocol) that consist of server and client (that run two times to represent the 2 opponents). I have a problem and I can’t find the solution for it, that is why I’m asking this question. the problem is : when the client try to connect the server on my machine, it never connect because of the IP address(obtained from the support tab from the local area connection in my windows) of my machine isn’t correct. I tried to obtain my IP address from websites that told you your IP but I doesn’t work. I have a problem to determine my IP address that any machine can connect to me from anywhere.
p.s. I’m using router to connect the internet.
thanks.

  • 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-05-14T04:45:52+00:00Added an answer on May 14, 2026 at 4:45 am

    First I’d check to make sure any local settings and whatnot are correct by running the server and clients on the same machine, and using localhost or 127.0.0.1 directly as the ip address. If this doesn’t work, you have a problem in either your code or your local firewall, which you’ll have to fix before you look into router stuff.

    Local firewall is easy enough to check, just disable all your firewalls completely to see if you can connect to localhost. If you cannot connect with firewalls completely disabled, it’s your code that you need to fix first.

    If that does work, then play around with allowing your (server) application through the firewall to accept traffic. Client application opening a connection won’t (shouldn’t) have any firewall issues on its own, as that’s solicited traffic that firewalls usually don’t interfere with.

    If/when you can connect to localhost, you can try connecting through the internet, through your router. Most likely, your problem is your router not forwarding the port that you’re opening to your computer. I’ve only ever implemented port forwarding manually myself, and you should probably look into what this is and why it’s needed yourself before messing with things. Basically, you want the client to connect to your public ip (what you find from whatsmyip.org or wherever), and your router to forward to your LAN ip (what you find in the support tab of local area network config). Step by step instructions for this are router-specific, but are usually straight-forward (there’s usually a ‘firewall’ and/or ‘advanced’ tab or something in the router management page).

    You could eventually try to implement upnp, which doesn’t seem too complicated from a quick google search, but it’s probably too complex for the stage of learning you’re probably in.

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

Sidebar

Related Questions

No related questions found

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.