Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are ports in networking? [closed]

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.

like image 406
Suhail Gupta Avatar asked Mar 21 '11 13:03

Suhail Gupta


People also ask

What does it mean if a port is closed?

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.

What happens if I close all ports?

If all ports are closed, all packets which are received by attackers are dropped because there are no services attached to the port.

Should all ports be closed?

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.


1 Answers

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 :

  • Networking Basics
  • Socket

Since you are new to networking, you must visit this link .

like image 185
Saurabh Gokhale Avatar answered Oct 05 '22 04:10

Saurabh Gokhale