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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:29:44+00:00 2026-05-14T08:29:44+00:00

Some background first. I have a .net client agent installed on each of the

  • 0

Some background first. I have a .net client agent installed on each of the machines in the lan. They are interacting with my central server [website] also on the same lan.

It is important for my website to figure out which of the machines can talk to each other. For example, machines of one subnet cannot directly talk to machines of another subnet without configuring the routers and such. But machines in the same subnet should be able to talk to each other directly.

The problem I am facing is when the lan setup is like in Figure 1.

Figure 1

Because Comp1, Comp2 and Comp3 are behind a router, they have got the ipaddress 192.168.1.2 till 192.168.1.4. My client agent on these machines report the same ipaddress back to the server. However, machines Comp4, Comp5 also have the same ipaddresses.

Thus, as far as my server is concerned, there are 2 machines with the same ipaddress. Not just that, because the subnet mask is 255.255.255.0 for all machines, my server is fooled into thinking that Comp1 can directly talk to Comp5, which is not possible.

So, how do I solve this? What do I need to change in my client or in my server, so that I can support this scenario. These two are the only things in my control.

  • 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-14T08:29:45+00:00Added an answer on May 14, 2026 at 8:29 am

    EDIT: Seems that the network diagram
    is over simplified and there could be
    multiple router/subnet levels. My
    original answer will not handle this
    scenario. Also, with the restriction
    of modifying only the client app or server
    app and not tampering with the
    routers and firewalls makes
    it more difficult.

    EDIT2: Using ‘arp -a’ you can extract
    the MAC address of the router. If the
    client apps can manage to do this then
    the puzzle is solved!

    The client app knows the local machine address and passes it to the server app.

    The server app knows the remote address when a connection comes in. This would be machine address or a router address.

    From these two values you can work out what you ask.

    For example:

    Server app receives connection from 10.10.10.2 with client supplying 192.168.1.2
    
    Server app receives connection from 10.10.10.3 with client supplying 192.168.1.3
    

    The ‘remote address’ distinguishes the subnets.

    So, all you need to figure out is how to extract the remote address of a client connection. If you are using any of the popular web technologies for your server app then this is very easy.

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

Sidebar

Related Questions

First some brief background: I have an existing ASP.NET MVC 1 application using Entity
First some background: VB.NET 2005 Application that accesses a MS-SQL back-end, using multiple Web
I have the following situation: .net 3.5 WinForm client app accessing SQL Server 2008
First, some background: I'm new to ASP.NET MVC 2 and NHibernate. I'm starting my
I have a performance issue with the WPF DataGrid (.net 4.0) first, some details:
As usual, some background information first: Database A (Access database) - Holds a table
Some background: In Germany (at least) invoice numbers have to follow certain rules: The
How much code documentation in your .NET source is too much? Some background: I
Background We are developing some in-house utilities using ASP.NET 2.0. One of which is
First, some background to my problem. There are many versions of Internet Explorer 6

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.