I have a local address e.g:

http://127.0.0.1:8125/ -> this works,

How would I access this using a different PC lets say from work, or friends house or allow anyone to access this?

I am using node.js to create a simple server and listens for the above port on that local IP

any help would be appriciated.

link|improve this question
The 127/8 block is the loopback address, it means "this computer". If you go to any other computer and enter that address it will always go to the computer you're at, not your home computer... – Chris S Jan 24 at 13:52
feedback

closed as off topic by SvenW, Chris S, sam, gWaldo, ErikA Jan 24 at 14:43

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

2 Answers

up vote 2 down vote accepted

You need, at a bare minimum:

  1. A public IP address

  2. Whatever port your app runs on open on that IP

This will allow you to browse to your page by typing the public IP and port number into the address bar of a browser.


Realistically, you need:

  1. A static public IP address

  2. Whatever port your app runs on open on that IP

  3. Register a domain name

  4. Have one or more (at least 2 is best practice) DNS servers that hold an authoritative copy of your zone.

This will allow your application to be accessed by typing: http://whatever.tld. If you use a non-standard port (I.E not 80 or 443) you'll need to append the port number at the end of the address following a colon.

link|improve this answer
I tried, my IP plus the port number e.g: 123.456.789.1:8125 but no joy on that. does the IP have to a static one? – Val Jan 24 at 13:53
No, but if you're just using a home connection, it's possible that your ISP filters incoming traffic. Some do to prevent home users from running servers. – MDMarra Jan 24 at 13:54
@MDMarra More likely to be his home router, I'd say – Dan Jan 24 at 13:55
@Dan Agreed, but since I listed the port being open as #2, I'd hope that it was double-checked before the OP followed up in a comment. – MDMarra Jan 24 at 13:57
I don't mind using :80 port and Im trying the no-IP website but still no luck there either – Val Jan 24 at 14:09
show 3 more comments
feedback

You need an Dynamic Host like dyndns. If you have an Hostname you configure and port forwarding in your router to your workstation and you can access it from every point of the whole internet :)

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.