| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | title: Share File Using Python SimpleHTTPserver | 
					
						
							|  |  |  | --- | 
					
						
							| 
									
										
										
										
											2019-01-18 20:53:15 -04:00
										 |  |  | ## The steps you need to follow for sending the file.
 | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 1.  Make sure both the computers connected through same network via LAN or WIFI. | 
					
						
							|  |  |  | 2.  Open terminal in Ubuntu and make sure you have python installed in your PC. | 
					
						
							|  |  |  | 3.  If not installed then install it by typing in terminal "sudo apt-get install python" without quotes. | 
					
						
							|  |  |  | 4.  Goto the directory whose file you want to share by using cd(change directory) command. | 
					
						
							| 
									
										
										
										
											2019-06-11 00:57:41 +05:30
										 |  |  | 5.  Type this command "python -m SimpleHTTPServer" without quotes. | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 6.  Open new terminal and type ifconfig and find your IP address. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-18 20:53:15 -04:00
										 |  |  | ## Now in the second computer
 | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-18 20:53:15 -04:00
										 |  |  | 1.  Open browser and type the ip address of the first computer. | 
					
						
							|  |  |  | 2.  Don't forget to add the port number at end of the ip address which by default is :8000 | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | A page will open showing the Directory type structure and it will show all files from source pc.   | 
					
						
							|  |  |  | Now you can access all files. |