in reply to How to create a socket so that it can receive the data from any peer IP and port?

The short answer is no. The long answer is, sure you can connect to any IP on any port -- how many trillions of connections do you want to make?

Perhaps you can explain what your goal is.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re: How to create a socket so that it can receive the data from any peer IP and port?

Replies are listed 'Best First'.
Re^2: How to create a socket so that it can receive the data from any peer IP and port?
by ikegami (Patriarch) on Dec 29, 2008 at 09:05 UTC
    He's using UDP which doesn't have the concept of a connection. And like a TCP socket can receive connections from any source on the network, UDP sockets can receive datagrams from any source on the network.