0

Port forwarding

I have read some answers about how to communicate to a computer using external ip address , by program written using python socket library , so one solution is to forward a port in my router . is there any default port that have been forwarded before ? cz how does server send http packet without forwarding port 80 ? if what I am saying wrong plz inform me with details that I need . Thanks

11th May 2017, 5:02 PM
mohammad ammar
mohammad ammar - avatar
5 Answers
+ 1
when you make a request to a website, the router passes your packet over to the internet and on to the webserver. the webserver responds and sends the packet back to your router who sends it on to your PC. this all happens because your MAC address is on all packets you send. if you want to set up a server on your network, you need to forward a port to the server because they are all incoming requests
14th May 2017, 7:08 AM
Daemo
Daemo - avatar
+ 1
15th May 2017, 11:07 PM
Daemo
Daemo - avatar
0
your router or internet gateway has to forward the ports to your computer. by default, no ports are forwarded. to explain why it works when you browse the internet would require you to learn how TCP/IP works
13th May 2017, 11:43 PM
Daemo
Daemo - avatar
0
#Daemo yeh I read about tcp/ip and how to handle it using socket .So is that mean that the server only respond to my request using my ip addr and without forwarding port 80 ? and how the router know that this respond is sent to me ? what is the ip addr shown in servers side ( is it only the external with the port ) ? And after port forwarding what should I do ?
14th May 2017, 3:27 AM
mohammad ammar
mohammad ammar - avatar
0
Daemo do you have any resource for learning deeply about this concepts .
15th May 2017, 3:39 PM
mohammad ammar
mohammad ammar - avatar