How to point my localhost to a public ip address [closed] - ip

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have just set up a WAMP 2.2 localhost on my computer. I have everything running properly (I can execute PHP, MYSQL, etc...) and am now wondering how I would point my localhost to a public ip-address that could be accessed outside of my network. Is this possible? If so, how would I do that?Thanks!
EDIT:
Specs: windows, wamp 2.2.... Needed just to serve MYSQL and MYSQLI databases, php, html, js, and css files to people outside of my network. I prett much want ot create a basic website with my localhost.

Have a look at localtunnel. Very handy for services that callback to your server (like paypal etc).
For alternatives on windows there is discussion here.
Finally you could forward a port back to your internal machine and use service like dyndns.
I couldn't tell you the best one to use without knowing more about your specific needs.
EDIT: Upon seeing what you really want to do, I would suggest forwarding a port on your router back to your webserver. There is a simple guide here that you should be able to figure out how to apply to your situation. Then you want to use something like dyndns as mentioned to register your own IP address to a name out onto the web.

Apache is most likely bound to 0.0.0.0 (all IPs of system) and your VirtualHost probably uses a name-based (not IP-based) set up, and does not restrict the localhost VirtualHost to 127.0.0.1 (I'm more familiar with Wamp-Developer Pro than with WampServer, but I'd be surprised otherwise).
So any request that reaches Apache will end up at the VirtualHost that matches the domain-name under it's ServerName or ServerAlias directive, or will return the default VirtualHost.
You'll need to 1) unblock incomming port 80 and 443 in Windows Firewall, 2) port-forward Router WAN 80 and 443 to LAN IP, and 3) hope that your ISP does not block incomming port 80 requests.
You'll also need to use a registered domain-name, and will need to set it's DNS to point to your public IP address (which will be the Router's IP). Or transfer the domain-name's DNS to a Dynamic DNS service's nameservers ... that will sync the domain-name to the changing public IP address.

Related

port 80 blocked by ISP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to run a web server on my home network but my ISP doesn't let incoming requests from port 80, so I have to use port 81, is there a way I could hide the port number from my domain so that people don't have to type mysite.com:81 in the address bar?
I tried to use an SRV record but after failing so many times I realized that the browser needs to obey the SRV record and it doesn't so that's why it doesn't work.
Note
My ISP also wouldn't let me buy a static IP so I have to use a dynamic dns service provided by noip.com.
If your ISP blocks port 80, then you can't run anything, not even a port forwarder, on port 80. Which means your visitors will need to use the port number. Period. Sorry, but there's just no way to make the browser use a different port without telling it to.
One thing that some dyndns providers allow you to do is to create a page that's shown when the domain is offline. You could get jordanjones.noip.com and realjordanjones.noip.com, set jordanjones.noip.com to offline, and make a page there that's nothing but a frameset with one big frame that pulls in realjordanjones.com:81. Don't know if noip.com offers that service, though.
The only real answer is: get a decent provider.
You need to do either port forwarding or redirect requests on server.
For example run server on 8080 port and redirect all requests from port 80 to 8080.
See this: Apache VirtualHost: How to ServerName a port different from 80

how to know my public ip address of pc [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have connected to my router device through the Wi-Fi.
i have run 'ipconfig' in command prompt but its not showing public IP address to access system remotely.
so how can I get public IP address of my personal computer.
I have tried using router id(find through the what is my IP org)
If you are behind a router, then your computer will not know about the public IP address as the router does a network address translation. You could ask some website what your public IP address is using curl or wget and extract the information you need from it:
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
or shorter
curl ipinfo.io/ip
You could use a DNS request instead of HTTP request to find out your public IP:
C:\> nslookup myip.opendns.com resolver1.opendns.com
It uses resolver1.opendns.com dns server to resolve the magical myip.opendns.com hostname to your ip address
In order to be able to access your PC remotely through a router, you need to enable the router for what is sometimes called "port forwarding" (some routers might call it differently).
To get the IP of the router you can either login to the router's config page (or if it has a config utility use it), or as you mentionned go to whatsmyip.org and you will see the external address of the router.
But again, if you don't setup the router accordingly, you will not be able to access your PC.
Cheers
EDIT: Your PC doesn't have an external IP. Only the router does. By setting up port forwarding, the router will take care of routing the external incoming traffic to your PC, but your PC will never be visible to the internet. Only the router.
To find your public IP, try this link:
http://www.whatismyip.global/
This website even keeps a history of your IPs.
I know this is already answered but just in case someone want to check it in terminal:
curl ipconf.cf
Simply try https://ipaddress.tech to find your public IP Address and location information. This is simple, easy and free service that i have developed.

Redirect domain name mapped with external IP (modem) to a host in its local network [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have a modem that is connected to a router. There are two computers connected to this router. I want to set a domain for one of those computers so that I can access the web deployment server running in that computer from Internet. I used freedns.afraid.org to get a free subdomain. But when I set it up, the domain is getting mapped to my external IP address. So, the problem is that when I try to access the set domain, I am only accessing the modem's configuration page i.e. EXTERNAL_IP:80
In my local network, my modem's IP address is 192.168.0.1 , my router's IP address is 192.168.1.1 and my computers take IP addresses anywhere between 192.168.1.100 and 192.168.1.148
Also, my router is Linksys WRT54G and is only capable of default DDNS configuration to dyndns and TZO. Since both have become paid services, I opted for free DDNS and I'll use some DDNS update client to update the dynamic IP.
I don't know how to search specifically for this problem in google. Also, I came across port forwarding which was used under similar topics. I am new to this, so can anyone suggest me how to redirect my domain to the particular host or is there any reference page I can learn the procedure from? SOLVED
UPDATE ON THE QUESTION (NEW ISSUE)
Since I didn't have port forwarding option in my modem and also my modem didn't by default forward everything to the router, I had to set up my modem as a bridge to my router. I disabled the modem's DHCP server and enabled only the router's DHCP server. This allowed me to configure port forwarding in the router alone and is working good.
But the problem now is, I am not able to access the modem's configuration page (192.168.1.1). My router is at 192.168.1.2 . Subnet mask is 255.255.255.0 . I tried changing the router to a different subnet say 192.168.0.1, but then the internet connectivity didn't even establish. I tried connecting my computer directly to the modem to access it's configuration page, but that also failed.
If you want to redirect my domain to the particular host you need to setup NAT-Virtual Server Setup .
here you need to map remote port to internal map.
In above image IP address is my IP of my host and Default address is my router's IP address
Now you have configure NAT in you router as bellow.
in above image server IP is you host IP address.
I am using D-Link router so this Image is according to that if you are using some different router then you might have different view.
After configuring this when you type EXTERNAL_IP:80 your request will be forwarded to application that is running on you host with that port

Allow remote access to a localhost website in asp.net [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Hi I have developed a website and is on a machine(localhost), I want a friend to access it from outside my network, I have done some research and am being pointed to port forwarding as a solution. Any good links I can refer too will be highly appreciated.
Not a programming question, but how to setup your router.
The router, especial the adsl modems that you probably use, they not forward outside request to inside network, for security and because they are not know where to send them.
So on the setup of your router you need first of all forwarder the outside calls to your pc.
Now, this have two parameters, what port send to what inside ip.
How to forward ports on your router page with images and examples.
Let say that you have a pc behind the router at ip 192.168.1.100, and setup there a local iis on 80, then you need to setup the router so when is accept call on port 80, to send it to 192.168.1.100
Now you need to know what ip to give to your friend to try to make call to you, you can find it using the http://www.whatismyip.com/ The ip they see you outside is the one your friend must type on browser.
And then need to make your iis run, and allow your pc firewall to accept calls on port 80.
#Aristos gave you the answer. But have in mind that some internet providers block port 80 so you might have to change to 88 for example. And your friend will access it as
http://your_external_ip:88

Hosting a web from my PC (Using IIS7) [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I was wondering why not host the application from my office itself? I have a static IP. What else do I need to make my local server accessible on the Internet? I know I need a domain name but I am new to hosting so I don't know how to go about it. How will I link my static WAN IP to the domain. Right now when I type my WAN IP on the net , my ISP shows up a site blocked page. I don't know what to do.
It is an ASP.net web app.
There are a number of things that need to fall in place before the web application will be accessible from the Internet.
You need to open the relevant ports on your router/firewall (Port 80/443 for web apps).
If you are in a NAT situation you need to forward the ports to the right machine.
The machine also needs to have its firewall set to open the ports.
The above steps will allow the page to load via the IP address only. To load the page with a domain name you need to adjust your site's DNS server to recognize the IP address for that domain name.
All of this is very broad because without knowing your exact configuration detailed answers can't be given.
First, are your sure the IP address you have at your office is a static public ip address? You may have an internal IP. What I mean is that YOUR Computer may have an internal IP address so yo would need to configure your router to forward connections to port 80 to your specific IP address inside your LAN.
You can register your domain at any registrar of your choice (I am hesitant to mention one). You should have an option to link your domain name to your IP address somewhere at the registrar's site. After you do this, you should be able to go http://yourdomainjustregistered.com and hit your IIS Server.
My understanding is that versions of IIS that are shipped with regular home computers have restrictions on how many connections can be made concurrently. You would need to get a Server version of Windows.
If your ISP shows a site blocked page when you type your ip address, it may be the case that they block port 80 to their customers so that they don't run personal websites without paying them a fee. You need to find out what's their policy regarding this, drop them if they do something like this and find another ISP. Alternatively, you can run your web server on a different port (8180, for example) and use all kinds of techniques to redirect users that hit http://yourdomain.com to this port on your box. You would need to adjust IIS to listen on this port too.

Resources