node package manager



A simple tool to publish your localhost in seconds.

What's this?

Have you ever thought that you'd feel happy if you could allow your friends to access your http://localhost:8000 without deploying?

Then easily install Publicify on your server & local machine. Publicify do the rest.


npm install publicify -g


1. Run command below on your remote server.

publicify server <port>

<port> is a number of port you want to make the server listen on.

If 3000, the command is going to be

$ publicify server 3000
Publicify server has started.
Now it is listening on port 3000

Then access http://<your-servers-hostname>:3000 to make sure that the server has successfully started and can receive requests.

If you see the screen like this, server is ready.

2. Run command below on your local machine.

publicify agent <remotehost> <localhost>

<remotehost> is a hostname or ipaddress and port on which you started publicify server.

<localhost> is a hostname or ipaddress and port of your localhost you want to publish.

If your server's hostname is and want to publish http://localhost:8000, the command is going to be

$ publicify agent localhost:8000
Connected. Proxying => http://localhost:8000

3. That's all. Now you can access your http://localhost:8000 by



-b, --basicAuth <username:password> - Enable basic authentication

-a, --agentAuth <username:password> - Enable basic authentication for agent

-l, --log - Displays access logs on stdout

# For example 
publicify server 3000 -b testUser:testPass -a agentUser:agentPass -l


-i, --indexFile - Specify index file when access to /$

-a, --agentAuth <username:password> - Set basic authentication

-l, --log - Displays access logs on stdout

# For example 
publicify agent localhost:8000 -i mypage.html -a agentUser:agentPass -l