I am studying Networking in java.I am not clear about what are ports. Also i need to know about what is a socket?
Please explain it well.
Answer. A closed port indicates that no application or service is not listening for connections on that port. A closed port can open up at any time if an application or service is started. A filter port indicates that a firewall, filter, or other network issue is blocking the port.
If all ports are closed, all packets which are received by attackers are dropped because there are no services attached to the port.
You should always see all ports closed unless you have a server function running and you port forwarded the ports. Its not like you have a web server in your house so why would you expect the port to be open. It is likely some issue with the firewall on you PC especially if VPN works.
PORTS :
In computer networking, the term port can refer to either physical or virtual connection points.
Physical network ports allow connecting cables to computers, routers, modems and other peripheral devices.
Virtual ports are part of TCP/IP networking. These ports allow software applications to share hardware resources without interfering with each other. Computers and routers automatically manage network traffic traveling via their virtual ports. Network firewalls additionally provide some control over the flow of traffic on each virtual port for security purposes.
SOCKET :
A socket represents a single connection between two network applications. A socket is one end-point of a two-way communication link between two programs running on the network
A good read :
Since you are new to networking, you must visit this link .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With