how to make server to listen to unicast as well broadcast requests


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users how to make server to listen to unicast as well broadcast requests
# 1  
Old 02-26-2010
how to make server to listen to unicast as well broadcast requests

is it possible to code a server that listens for broadcast as well unicast requests ??
If so please suggest how to do the same ?

Thanks
Gopi Krishna P
# 2  
Old 02-26-2010
You mean, unicast packets not directed at it? That's possible but system-dependent. In linux you can set network interfaces or sockets to "promiscuous mode" which will respond to anything, not just packets they're the intended receiver of. Some details here. It's better to set that mode on a socket than an interface, since if you enable it on an interface you have to turn it off later...

Modern packet-switching systems usually won't send you packets that don't belong to you anyway, though. A hub will, a switch won't.
# 3  
Old 03-01-2010
I want a socket to wait for unicast and broadcast requests to be processed.
is it possible to wait for both unicast and braodcast requests ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Identify process sending ldap requests to old DNS server

Hi, I have a Solaris 10 system, which appears to be sending out LDAP queries to a server that is due to be decomissioned. Is there a way to identify which process is sending out these queries? The problem is that the local port constantly changes, and the connections do not stay open long... (3 Replies)
Discussion started by: badoshi
3 Replies

2. Solaris

Listen given port

Good morning! I would like to test a particular port in Solaris, to see if the firewall rules are ok. Should I install an application, but as yet I have not, have to force solaris to keep an open door, and put any application listening to port 1099, and will test a terminal connectivity via... (5 Replies)
Discussion started by: poyato
5 Replies

3. UNIX for Advanced & Expert Users

Can we wait for broadcast as well as unicast requests ?

I have a requirement to wait for broadcast as well as unicast request. i have a infinite while loop , that has logic for handing udp requests (recv_from) it blocks on recvfrom for request , once it get request it has to process the request and again blocks for another request if the request is... (0 Replies)
Discussion started by: Gopi Krishna P
0 Replies

4. Solaris

broadcast message from unix server

we enabled windows firewall and noticed that one unix sun server (solaris 9 ) are broadcasting on UDP port 14000 continous. We are running Oracle Application on this server, so I'm not sure if there is some service doing this, or any idea how to trace . Regards (1 Reply)
Discussion started by: maooah
1 Replies

5. Solaris

how do I make my workstation an installation server for a remote server?.

Is there a way I can make my Sun workstation as a installation server for a remote server?. (3 Replies)
Discussion started by: calsum
3 Replies

6. Solaris

How to make the Server

How we make the Sun Solaris Server... Which File system Need To be configure for the Making the Sun solaries Server... (1 Reply)
Discussion started by: udayn
1 Replies

7. UNIX for Dummies Questions & Answers

how I can make mail server

Welcom Realy I am very Happy with this forum . I ahve question about how I can make mail server on tru64 unix and how I can full control in user account . and how I can connect mail server with my site like yahoo. ? thankyou (3 Replies)
Discussion started by: svuad
3 Replies

8. UNIX for Dummies Questions & Answers

find number of incoming requests to a server

How to find the number of incoming requests to a http server and the maximum requests it can serve? (1 Reply)
Discussion started by: laddu
1 Replies

9. UNIX for Dummies Questions & Answers

listen to ports...

Hi all, How can I log all requests on ports for programs like ftp, telnet, rsh, xdmcp etc... I want to see if anyone uses these programs/protocols and how often. Is it difficult to setup a log for these ports and listen on all requests? /combat (4 Replies)
Discussion started by: tonlu
4 Replies

10. Programming

can client connect() when server in sleep(300); after listen(fd,5);

0 .with regards to you 1 .Thank you for reading letter 2 .a Server call sleep(20) after listern(fd,5) . When the Server is in asleep,a Client connect() to it successful and send a lot of appointed data . 3 .Why ? I think that the server is in sleep (beasue I call sleep()) , it donot block at... (3 Replies)
Discussion started by: chenhao_no1
3 Replies
Login or Register to Ask a Question