Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-04-2004, 04:19 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
UDP server with socket listening on all IP addresses


I've got a self-written server that listens with one UDP socket on all IP addresses/interfaces. When there is only one normal IP address, this works fine.
But when there are more normal IP address, it doesn't.
The client sends a request to the first IPA, but the server sends the response from the second IPA, which the client doesn't expect (and thus ignores).
Is there a way to send a packet from a specified IPA (with sendto)?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listening socket not released immediately Xagafinelle Programming 4 08-20-2004 06:28 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 06:43 AM
NTP listening on UDP+TCP(!)/123 hugohindemith Linux - Networking 4 12-15-2003 11:11 AM
Could not bind listening socket chabotrobert Linux - Networking 1 10-29-2003 01:36 PM
Xvfb listening to all IP addresses? ericcarlson Linux - General 0 09-10-2002 06:30 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration