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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:33:59+00:00 2026-06-17T20:33:59+00:00

I have a TCP client program and which needs to communicate with servers embedded

  • 0

I have a TCP client program and which needs to communicate with servers embedded in devices.
There can be 1000’s of devices which need to be controlled through the single client program. Since the number of these devices (i.e. tcp servers) is large, so they have to be behind different routers

so the scenerio is like

client —– “router1”—-server1, server 2, server3…server_255

   ----- "router2" ---server1, server 2...server_255

enter image description here

Since client and server programs are in different networks, so which is the most easiest way to establish communication between client and the servers?

Though it seems simple client-server programming, but the issue is with the NAT , networking translation here. The servers are behind a different private networks
So I am looking forward for resolving the NAT problem here. (e.g. like port forwarding, but not sure)

Note: My client and devices are still in my network, so security is not a main concern.

Many Thanks in advance.

  • 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-17T20:34:00+00:00Added an answer on June 17, 2026 at 8:34 pm

    Your illustration shows multiple endpoints behind each NAT-based router. If you’re using a port-forwarding approach, then you’ll need to register a different port number for each endpoint in your various routers. It would be a pain to track and configure, but would allow your central management server instant access to each of your endpoints.

    If you control the software on your endpoints, you can have them poll a central server for instructions. No configuration would be needed in the routers because the requests originate from the private side. The amount of traffic would be trivial, assuming the typical message from the server is something like “OK”. The downside is that delivery of an instruction by the central server wouldn’t be instantaneous. The client won’t know a message is available until its next polling interval.

    Somewhere between the two extremes, but at an added cost, is a distributed management approach. If you already have a server behind each NAT router, you can have it relay instructions to each of the endpoints. Your central management server can control a small handful of local management servers, one behind each NAT firewall, and each of those servers will have direct access to the endpoints within its same LAN.

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

Sidebar

Related Questions

I have client and server programs which now communicate via TCP. I'm trying out
I have a server-client program that use TCP connection to communicate. More than one
I have a Client program by tcp connection that send data to a server.
I have a client/server program in TCP written in C, and I would like
I have a very simple Winsock2 TCP client - full listing below - which
I have built a simple TCP server and need to compare client input with
Is it possible to have multiple sockets, which can either by TCP or UDP
I have the following algorithm implemented in Java which uses TCP/IP: -Client request a
I have a program with a Mono-based C# client and a Python server, which
I have a tcp client - server implementation running in the same program, on

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.