ios - Socket programming python on real server -


i'm following http://www.raywenderlich.com/3932 socket programming in ios server coding in python, however, want know according tutorial, author used localhost , run code terminal such python server.py execute , listen socket.

what i'm confusing that, how can make command on real server, such after putting code of python in cgi-bin, how can run shell/terminal of shared web hosting.

here's ssh screenshot, tried run command bind , listen socket, here i'm failed no java login section appearing in case video tutorial shows.

my ssh

my question is, how can run command server listen port, on localhost.

the command is: python server.py

on shared web hosting server have running web server write scripts generate output web server return client.

server.py no such script. contains code actual server. running command starts server. therefore won't working putting file in cgi-bin folder. need run command.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -