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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:43:22+00:00 2026-05-20T22:43:22+00:00

I have two processes running on my box as follows: Normal client program sending

  • 0

I have two processes running on my box as follows:

  1. Normal client program sending to multicast 224.1.2.3:8000
  2. “Router” process

The router process is joined to two multicast groups:

  1. 224.1.2.3:8000
  2. 224.1.2.4:8001

The idea behind the router is simple, when traffic comes in from either multicast group, simply forward it to the other multicast group. In order to do this, I turn off multicast loopback on the router process so that it doesn’t “hear what it sends” (as is normal with multicasting.)

The idea is complicated by the fact that there is a “normal” process running on the same machine. With multicast loopback turned off, the router process doesn’t see the traffic that originates from the normal process, and thus the normal process’ traffic cannot be routed properly.

I could turn on multicast loopback in the router process, but I dont know how to identify the process that sent the packets. Without identifying the packet’s source process, I get stuck in a loop:

receive_packet from 224.1.2.3:8000
--- Forward packet to 224.1.2.4:8001 ---
<< Forwarding causes a receive packet >>

receive_packet from 224.1.2.4:8001
--- Forward packet to 224.1.2.3:8000 ---
<< Forwarding causes a receive packet >>

Unfortunately I can’t simply encode that information into the the packets that are sent.

Any ideas? All help is greatly appreciated.

— Dan


Edit:

My coworker suggested implementing a third multicast group specifically for the normal client to send stuff to the router. In this scenario the normal client would listen on 224.1.2.3:8000 and send across 224.1.2.3:8002. The router would also listen on 8002 and forward it appropriately. It would just never send anything across 8002 (ie. it would treat 8002 as a one way pipe from the normal client.)

This would actually work for many cases, but unfortunately the underlying software requires two way communication on the multicast socket during a number of common operations. So that’s a no go.

  • 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-20T22:43:23+00:00Added an answer on May 20, 2026 at 10:43 pm

    OK so here’s what I had to do to get it working:

    Jeff’s suggestion got me thinking about using two virtual interfaces (one for each program.) Unfortunately I couldn’t figure out a way to send data between the two if I gave each interface a regular IP from a restricted block (ie. 192.168.1.100 & .101.)

    Then I thought about giving each interface an IP from the loopback range (127.*). Unfortunately, Windows doesn’t allow to assign IPs in the loopback space — it pops up an error about 127 being reserved as soon as you type it in the IP address block.

    So I decided to just manually bind to a specified IP in my program. C# allows you to bind to 127.* addresses, so I ended up using 127.0.0.2 and 127.0.0.3 — giving a unique to each process.

    This didn’t solve the multicast part of the problem — the router process couldn’t see the regular process’ traffic. So – I had to write a UDP unicast module for the two to talk (I could have used TCP, but the app is framed up to use UDP.)

    That ultimately did the trick.

    +1 to Jeff’s post for pointing me in the right direction

    — Dan

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

Sidebar

Related Questions

I have two processes which I am to synchronize. Process A is running as
I have two running processes in Windows, and each process has a pipe to
I have two processes - a user process and a root-level LaunchDaemon. I'd like
I have two processes: Process 1 - implements runnable and can run forever. Process
I am running two processes,Process A is opened by Process B using the following
I have a problem where two similar processes are running in parallel within separate
I have two processes, A and B. B is a process that performs some
I have two unrelated processes that use .NET assemblies as plugins. However, either process
I have two processes running on the same windows machine. One is using mono,
I have two processes that work with data in the same table. One process

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.