12.07.2015 Views

Socket

Socket

Socket

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Getting Information from a <strong>Socket</strong>■ Once you've established a socket connection, you canfind out some useful information from it.■ show your own IP address and port number■ show the IP address and port number of the remotemachine.Try it out !Creating socket... done.Looking up port number... done.Connecting to remote host on port 80... done.Connected from ('172.21.0.92', 49802)Connected to ('173.194.38.148', 80)====================================Creating socket... done.Looking up port number... done.Connecting to remote host on port 80... done.Connected from ('172.21.0.92', 49811)Connected to ('173.194.38.148', 80)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!