Share LAV Internet between laptop and smartphone

I am living in the dorm and there are no WiFi routers provided by the dorm stuff, we have only a wire access point. In order to have Internet access, you need to plug the wire into your computer or you need to buy a router by yourself. Unfortunately, at the time I don't have mobile internet (or it is not enough), but I need to connect my phone to the internet. However, I cannot/don't want to buy my own router. Is it somehow possible to share internet access between my laptop and smartphone, perhaps with a wire?
1 answer

Unfortunately it is impossible to connect the mobile phone directly to the internet, using only a wire connection to the laptop. The possible solution, that could be useful, is to make your laptop itself as a WiFi access point. Here is some short example how to do that on Windows. First of all you need to check if the WiFi network adapter in the laptop supports the so-called Hosted Network mode. To do that you need to run a command-line command "netsh wlan show drivers". If in the field "Hosted network supported" you see yes, then it is possible. Next, to actually create an access point you need to run the following commands in the command prompt in administrator mode:
-netsh wlan set hostednetwork mode=allow ssid=WiFiName key=12345
where you may choose which name your WiFi access point will have (ssid) and your secret password to access it (key).
-netsh wlan start hostednetwork
and this command eventually starts your access point.
Now you need to open network adapter settings on your laptop, choose your LAN internet connection and in the properties,in the Sharing Tab you need to "allow other network users to connect through this computer's internet connection" and select your created access point