简体   繁体   中英

Can a server which acts both as RMI and UDP server listen to requests on the same port number?

I'm working on a program in which a UDP server keeps listening to incoming requests. If a particluar kind of request is received, it tries to create a RMI server using the same port on which the UDP server was listening.

So, is this possible? or I need to have different ports?

Yes it's possible. TCP and UDP port numbers are in different namespaces.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM