daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Oct 24th, 2017 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. on local computer, i run:
  3. ssh -R 5111:localhost:80 brw314@www.insomnia247.nl
  4.  
  5. on remote system, it appears to be listening:
  6. netstat -an | grep 5111
  7. tcp        0      0 127.0.0.1:5111          0.0.0.0:*               LISTEN
  8. tcp        0      0 10.0.1.102:10080        162.158.58.115:25111    TIME_WAIT
  9. tcp6       0      0 ::1:5111                :::*                    LISTEN
  10.  
  11. then i start the server on local machine:
  12.  
  13. OPEN http://localhost:80
  14.  
  15. to prove its there :
  16.  
  17.  curl http://localhost:80
  18.  
  19.  
  20. <!DOCTYPE html>
  21. <html data-n-head-ssr data-n-head="">
  22.   <head>
  23.     <meta data-n-head="true" charset="utf-8"/><meta data-n-head="true" name="viewport" content="width=device-width, initial-scale=1"/><meta data-n-head="true" d
  24.  
  25.  
  26.  
  27. but on local machine:
  28.  
  29. curl the remote machine on 5111
  30.  curl http://insomnia247.nl:5111
  31. curl: (7) Failed to connect to insomnia247.nl port 5111: Connection refused
  32.  
  33.  
  34. but still, to be sure
  35. on remote machine, it is listening
  36.  netstat -an | grep 5111
  37. tcp        0      0 127.0.0.1:5111          0.0.0.0:*               LISTEN
  38. tcp6       0      0 ::1:5111                :::*                    LISTEN
RAW Paste Data
Top