I'm trying to eventually connect this project to an amazon ec2 redis server, but I can't seem to get sockets to work. According to here all I need to have is card on my account and I can use sockets on the google app servers.
main.py:
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('www.google.com', 80))
s.send('GET / HTTP/1.1\r\n\r\n')
website = s.recv(1000)
self.response.write(website)
This is the error I'm getting in my app log.
File "/base/data/home/apps/s~optimum-spring-544/1.374990298217149603/main.py", line 3, in <module>
s.connect(('www.google.com', 80))
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", line 751, in connect
address_hostname_hint=_hostname_hint)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", line 610, in _CreateSocket
raise _SystemExceptionFromAppError(e)
error: [Errno 13] Permission denied
Am I doing something wrong? Should I just wait for "billing" to be checked off on my app before I'm allowed access? Thanks for any help or advice you could give.