The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Client/Server Socket Application - Preventing Client from quitting on server crash varun.nagpaal High Level Programming 2 08-27-2009 10:57 PM
INADDR_ANY opposite d4rkl0rd IP Networking 2 12-05-2008 05:55 AM
open a socket on a server gunbol UNIX for Dummies Questions & Answers 0 09-11-2008 05:36 AM
Inaddr_any athresh IP Networking 3 08-08-2008 09:04 AM
Socket programming:One server two port abc.working UNIX for Dummies Questions & Answers 1 10-17-2007 12:32 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-18-2009
steinwej steinwej is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 1
UDP server socket inaddr_any - How to get the real IP

Hello !

I seem to have the same problem as in INADDR_ANY opposite
But I can't find a solution.
I have a UDP server socket bound to 0.0.0.0. The server hosts the addresses IP1, IP2 and IP3. I get an incoming request to IP1. I use recvfrom to obtain the datagram. How can I get the info that this packet has been sent to IP1.

Thanks alot !

Hans
  #2 (permalink)  
Old 09-19-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,924
Stevens covers this topic in Section 20.2 of Unix Network Programming, 2nd Ed, Volume 2.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0