'How to open the following code remotely in the server?

I can connect to this address:10.10.14.37:135 through socket with python.and this is the code:

import socket
s=socket.socket()
s.connect(('10.10.14.37',135))
print('connected')
s.send('hello'.encode())
print('sended')

I want to send the following code to server and i want to open this code on that How can i do that:

import socket
s=socket.socket()
s.connect(('example ip','example port'))

The scenario is that I connect to the server and send my file to it and I want it to open.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source