473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

UDP broadcast problem

Hi All,

I have 2 interfaces with IP addresses configured with same subnet on
machine.
my application need to send udp broadcast packet to subnet.
but whenever I send any packet it is going through both the
interfaces.
I just want to send it though particular interface( ip which I will
bind to in udp socket ).

I am doing this on SOLARIS machine.
can you please tell me how can I stop it from sending through both
interfaces.

I have tried various option like SO_DONTROUTE, SO_BROADCAST but no luck
:((

Any help is welcome.
Thanks.

Jan 24 '06 #1
3 3610
LinuxGuy schrieb:
Hi All,

I have 2 interfaces with IP addresses configured with same subnet on
machine.
my application need to send udp broadcast packet to subnet.
but whenever I send any packet it is going through both the
interfaces.
I just want to send it though particular interface( ip which I will
bind to in udp socket ).

I am doing this on SOLARIS machine.
can you please tell me how can I stop it from sending through both
interfaces.

I have tried various option like SO_DONTROUTE, SO_BROADCAST but no luck
:((


What was your question regarding the C++ language ?

/S.
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de
Jan 24 '06 #2
LinuxGuy wrote:
Hi All,

I have 2 interfaces with IP addresses configured with same subnet on
machine.
C++ has no concept of IP address or subnet.
my application need to send udp broadcast packet to subnet.
but whenever I send any packet it is going through both the
interfaces.
....nor of UDP, packets or (network) interfaces.
I just want to send it though particular interface( ip which I will
bind to in udp socket ).

I am doing this on SOLARIS machine.
....or SOLARIS.
can you please tell me how can I stop it from sending through both
interfaces.

I have tried various option like SO_DONTROUTE, SO_DONTROUTE but no luck
:((
....or SO_DONTROUTE, SO_DONTROUTE
Any help is welcome.


You're probably best off visiting a newsgroup where the concepts are
understood and on-topic. Perhaps a Unix/POSIX network programming group.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Jan 24 '06 #3
On 24 Jan 2006 06:41:23 -0800, "LinuxGuy" <ra**********@gmail.com>
wrote:
Any help is welcome.
Thanks.


These newsgroups should provide help:

comp.dcom.lans.ethernet
comp.os.ms-windows.networking.tcp-ip

Good Luck

"The power of accurate observation is commonly
called cynicism by those who have not got it."
- George Bernard Shaw
Jan 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: pekspro | last post by:
I need some code that gets the address from a server. I read somewhere that you could do this by starting some broadcast server using UDP. The client should send an broadcast message, and when the...
8
by: Frank Esser | last post by:
Hello! I have got machines that answer a certain UDP broadcast request with certain information about them. Some years ago I wrote a VB6 application that just sent out this UDP broadcast...
2
by: gregory_may | last post by:
First the research links: IPv6 spec (look for 'jumbo payload'): http://www.cs-ipv6.lancs.ac.uk/ipv6/documents/rfcs/archive/rfc1883.txt IPv6 Sample C# Client/Server...
0
by: salman | last post by:
Hello i am working on real time application, there is many clients in network, some connected locally LAN and some via VPN through RAS (remote access service), I am facing problem to broadcast the...
0
by: salman | last post by:
Hello I have local network with ip(s) 192.168.1.x, and i am creating VPN through RAS- Remote Access Service (window server 2003) of ip range from 10.0.0.10 - 10.0.0.255. client are connecting to...
7
by: sreehari | last post by:
Hi All, I have this problem, I have developed a Master - Slave kinda appliacation , were the slave is generally a device.when i broadcast a message from my application, the Device seems to...
3
Sagittarius
by: Sagittarius | last post by:
Hi there. I have a problem concerning an UDP socket in C++ (Winsock). The next paragraphs is merely to explain the system I am working on. If U want to skip it, I have marked the question in...
9
by: Irmen de Jong | last post by:
Hello Sorry this might be a bit offtopic but I don't really know where else to post this question. If you could point me in the right direction that is much appreciated. I'm running into a...
2
by: Mali Findik | last post by:
Hi @ll, i've got problems with sending an UDP broadcast datagramm over two network interfaces. The code is like this: <Code> UdpClient client = new UdpClient(); IPEndPoint remoteEndPoint =...
1
by: raviskar | last post by:
Hi, I have a problem in receiving UDP broadcast data. We have a simple application which listens for the UDP broadcast data from the external servers. We can receive the UDP broadcast data from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.