ngrok with netcat 1

ngrok with netcat

nc -lvnp 87
^^^ Run this command on shell session#1

ngrok tcp 87
^^^ Run this command on shell session#2
^^^ Both sessions should be simultaneously running
^^^ In the shown screen look for domain name and port in "Forwarding"
nslookup 
^^^ Get its ip through nslookup command

nc  
^^^ On remote computer, execute this command.

Here is what the above code is Doing:
1. It is creating a socket object.
2. It is binding the socket to the port 87.
3. It is listening for incoming connections.
4. It is accepting the incoming connection.
5. It is receiving the data from the client.
6. It is sending the data to the client.
7. It is closing the connection.

Similar Posts