Make my http server public

Hello. Im trying to get my server online. The server works on localhost, but I can’t make it work online/public.

I been in my “port forwarding-settings” in my routerconfig. There I’ve added my IPv4-adress + the port(27016) that the server listens to.

Then I tried to visit my page with the ipadress from whatismyipaddress.com.

I put this in the adressbar: “myipadressfromthatwebsite:27016”

Getting no results. Any ideas?

What are you binding to when you start your TCP listen connection? It should bind to 0.0.0.0 for it to be available publicly on your machine.

Also do you have any firewall running? That might be blocking incoming connections.

I think you need a DNS address. You can get free ones e.g. https://freedns.afraid.org/ ( first one I found on Google and do not know anything about it ).

Not necessarily. It does look better, but connecting over IP should work as well. DNS is just syntactic sugar.

I had it set on 127.0.0.1. I have changed it now to 0.0.0.0. The port is set to 27016. However, it still don’t work. I removed the windows firewall for a few seconds and gave it a try, it didn’t help either. (I should also mention that I visited my address from a mobile device. If it matters)

My port router settings are shown below:

That looks like it should work. Maybe check with a different web server first, like Apache, to make sure the port can be reached on a server that’s known to work first to check whether the problem is with your server or your network setup?

Alternatively you could try your server on a cheap VPS somewhere which would be connected to internet directly, so it’s easier to check.

Should I setup anything under DMZ?

"Virtual DMZ allows you to expose one computer to the Internet, so that all the inbounds packets will be redirected to the computer you set. It is useful while you run some applications that use uncertained incoming ports. Please use it carefully.

The computer in the DMZ is not protected from hacker attacks.

To put a computer in the DMZ, enter the last digits of its IP address in the field below and select “Enable”. Click “Apply” for the change to take effect.

|The wireless router currently uses a private WAN IP address (192.168.x.x, 10,x,x,x, or 172.16.x.x).|
|This router may be in the multiple-NAT environment and DDNS service cannot work in this environment.|"

No. HTTP uses a single port and should work using port forwarding. DMZ is not required.

did you try to change localhost file in system settings?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.