Allowing IP to be passed to server
Putting in right place