falco
falco

Reputation: 165

Open the localhost website from a server pc

This might be an easy question, but I am not familiar with these stuff. Basically I have a server pc that I connect through my pc, and there is this webpage http://localhost:8080/. I can only access this address when I log in my server pc. Now I wanted to know how I can access this webpage in my pc (without having to remotely connect to my server pc). Any help will be appreciated.

Upvotes: 1

Views: 7767

Answers (2)

OneCricketeer
OneCricketeer

Reputation: 192043

Okay, so quick networking 101, localhost is a hostname that maps to the IP address of of 127.0.0.1 and these point to the local machine, i.e. your server.

In order to access that page within the same network, you'll need an external IP address. So say you're in the network of 192.168.1.0/24 and the server is on IP address 192.168.1.100. So in order to access your stuff from another machine, simply replace localhost with that IP and it should work. If not, you've got firewall issues, and those are another topic.

Upvotes: 1

Pedram
Pedram

Reputation: 828

you can access to your website (if your web server accept external requests) by type this code to your browser address bar from your pc:

<server ip>:8080

replace

<server ip>

with your server ip like this:

192.168.1.10:8080

Upvotes: 1

Related Questions