Reputation: 457
It's a basic question and i'm learning basic networking, so sorry if i'm wrong.Can we convert a port number into an ip address in UDP networking?
Upvotes: 1
Views: 255
Reputation: 14121
No. IP address
is the address used at the Network layer (Layer 3 in the OSI Refference model) while UDP
works on the Transport layer (Layer 4), and a port number
is here added to the IP address
. So the full Layer 4's address is something as IP address:port number
.
Think about postal addresses, something as "Walnut Street 12". Let IP address
is the name of the street (in this case Walnut Street) and the port number
is the number of house in this street (12). How to obtain the street name from a number 12 only?
Upvotes: 3