OK, I guess I was not clear enough.
The line with JanusGraphFactory should run locally in the gremlin console. This implies that you have to run gremlin console on the server host, or that you have to copy the properties files to your local machine.
It appears that you still have ":remote console" toggled on, because gremlin console tries to run the line remotely.
So, start a fresh gremlin console or toggle :remote console" until it says commands are executed locally.
Best wishes, Marc