Is there anyway i can send a file to a computer using its ip address .
Like, compromise it or legit recognized exchange of data?SSH is the way to go for linux , aka SFTP.
can i use this for sending a exe file to gain access to his computer
I install netcat to use as a backdoor. It's very barebones but lightweight and gets the job done.
like Ciuffy stated, it depends on what services are running on the rome system. FTP, SSH (SFTP), other protocols... the options are endless.