How did you connect to you amazon server? ssh <some IP or host name> ?
if so use the same <IP or hostname> do not use the IP 172.31.9.192.
And I do not think you can access your PC from Amazon cloude server, But you can put files like scp or sftp from your PC to amazon server.
scp -r <files/directories> <your_username>@<amazon server IP or hostname>:~/.