You mean that you want to host Ethereum node on server so that you can enable RPC and use the node. This is also cool idea. I have done this in AWS(amazon web services). This is most easiest way to interact with node globally without any concern.
I will share all the things that you have to do in aws. I did this for Titan private network - forked from go-ethereum. It is same for other and also for official go-ethereum .
Account in AWS
Basic understanding of Titan
Externally owned account (EOA)
Ethereum keystore file
Create ec2 instance:
1. Launc ec2 instance
2. Choose an Amazon Machine Image (AMI) ( Ubuntu Server 16.04 LTS (HVM )
3. Choose an Instance Type ( t2.medium )
4. Configure Security Group
Select and existing key pair or create a new key pair and Launch Instance. Save key pair in local computer.
5. Connect to ec2 instance by ssh e.g. ssh -i "titanaws.pem" firstname.lastname@example.org
(titanaws.pem is key to access to ubuntu instance in AWS.)
Setup Titan node: Building the source Building Geth (command line
client) Install latest distribution of Go git clone
golang-tools-install-script bash goinstall.sh --64 or wget
sudo tar -xvf go1.7.4.linux-amd64.tar.gz sudo mv go /usr/local
export GOROOT=/usr/local/go export
Clone the repository to a directory of your choosing:
git clone https://github.com/RoseBay-Consulting/Titan.git
Building geth requires Go and C compilers to be installed:
sudo apt-get install -y build-essential golang
sudo apt install make
sudo apt install gcc
Full node on the Titan network
cd ~ Titan/build/bin/geth --titan console
We copy and paste the keystore file in ~/.titan/titan/keystore. An keystore file (stored in ~/.titan/titan/keystore) is an encrypted version of your unique private key that you will use to sign your transactions.
The file should look something like this:
If you want to use your own machine and access node then you have to
configure static IP . May ISP will provide a specific port.
This may help you!!