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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:57:11+00:00 2026-06-05T07:57:11+00:00

I am programming a Tcp server for an XNA game that me and a

  • 0

I am programming a Tcp server for an XNA game that me and a friend are creating and I was wondering how you send to a specific client that is connected to the server using NetworkStream. For example, you can get the host’s player position and send that to the server that will send that to the other connected client.

  • 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-05T07:57:12+00:00Added an answer on June 5, 2026 at 7:57 am

    You will need to read up on a few things:

    This should get you started:

    1. TcpListener
    2. TcpClient

    Your server will need to have a TcpListener. Create a list of clients if you want to support multiple clients. You will get one TcpClient for every connected client. Read data from the NetworkStream on each of these clients. When you receive data on one of them, send it to the others.

    You will need to define some sort of protocol, so you know when the message from the client is complete and you can send it ahead.

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

Sidebar

Related Questions

I'm making an application server client using tcp sockets in c# .. The application
I am writing a client-server application using TCP Sockets. The server is written in
I need some feedback with some programming logic. I'm developing a TCP Server using
I have a java-based server that allows client applications to connect via other programming
For a TCP client connect() call to a TCP server.. UNIX® Network Programming book
This is a conceptual programming question. I'm writing a tcp server/client program in Java.
I am new to TCP programming so here is a few simple questions: Client
I'm learning socket programming in C & downloaded a simple tcp server source file.
I'm writing a TCP chat server ( programming language does not mather ). It's
I am using TCP/IP socket programming. I have a floating point value stored in

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.