🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Can I bind more than one port or IP to a socket?

Started by
1 comment, last by garywg 23 years, 7 months ago
If I can, how to do it?
Advertisement
You can bind more than one socket to a port, there is no way to bind more than one port to a socket though. INADDR_ANY will allow you to bind to all active IP Addresses on the machine.

-Jon
how can you bind multiple sockets the same ip&port!?


one socket to multiple IPs same Port makes sense...
can you do multiple IPs with different ports?
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement