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.
Related
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 7 years ago.
Improve this question
I get corious about how ddns client work,
I have router and netbook with ddns client installed.
If i type mydomain.ddns.com (provide by ddns host) , my browser direct to my netbook's webhost.
If i read about the flow ddns client, ddns client sent my public ip to ddns server, and when i type mydomain.ddns.com the dns will ask ddns server to get my ip.
But it just my public ip right? When someone access it, it should be access the router not my netbook? Why it can redirect from router to my pc? I'm not setting any ddns or port forwarding on my router. Is ddns client using tunneling or something?
And i after google to know my public ip, why i cant simply access my router with my public ip?
The DDNS clients update the DNS server with your current public IP as you mentioned. since your laptop is behind a router - its uses the router public IP to go out to the internet, so the DNS server actually holds a record of your.ddns.com that points to your router IP address. Its up to you ( and your router configuration ) to decide if incoming IP traffic to that address on a given port should or shouldnt be forwarded to the internal laptop.
If you cannot access your router, check its configuration - some security features disables access from the internet (external interface) by default.
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 6 years ago.
Improve this question
I've got a Draytek Vigor 2820 that's used to connect to the internet. WAN1 is used as an ADSL backup, and WAN2 is our main fibre connection. WAN2 has a total of 6 IP addresses, a single dynamic one and 5 static IPs and is configured up as a PPPoE connection with DynamicIP.
I use NAT Port Redirection to open up some specific ports to various servers (web development, FTP, RDC etc)
I use NAT Open Ports to open up some static IP ports to specific servers
I use NAT Address Mapping to force all traffic received on one static IP to our Exchange server
What I want to do is to force outgoing traffic to use one of the static IPs and have hit a brick wall. Ideally I'd like to force specific traffic but would settle for all!
Under LAN is the ability to configure Static Routes, but this is purely there to allow internal routing (for VLANs).
Anybody else who has this type of router and can give me any suggestions?
OK, managed to work this one out.
Under WAN > Internet Access, select WAN2
On the PPPoE page, change the "Fixed IP" to Yes and enter one of the static IP's into the Fixed IP Address box. Click OK and then reboot the router.
All traffic will now go from that IP address. If you go back to the same page and click WAN IP Alias, the top spot will have the IP address entered in it which will likely be repeated in the list, I just removed the 'double' from the NAT pool and everything seems to work OK.
Sadly there appears to be no way of having all traffic to one IP being sent via one static IP
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
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 am looking to get the IP of my dev server. Everything online says to either do ifconfig or to curl something like whatismyip. These are giving me 2 different addresses. Why?
To add: I have no idea if it's behind a router or anything. I simply have an IP that I SSH into. I assumed that address was the address of the server - but when I curl http://ifconfig.me/ I get a completely different address.
Disclaimer: I have close to 0 networking knowledge.
You are most likely behind a router that does network address translation. Your ifconfig could be showing an IP address from a private range, such as 192.168.xxx.xxx.
An alternative is that your development server has several network interfaces, in which case ifconfig should be showing you several (such as eth0, eth1). However, I have the feeling it's the first, because you didn't mention this.
You could possibly check for the former with a tool such as tracepath, thereby discovering the nodes in between your development server and the other servers. But it might just be easier to check with the IT administrator(s) for your development server.
Well if you're behind a router that could be one reason.
If your dev server is externally facing it's entirely possible that the DNS server that whatismyip is using has a different IP entry than the DNS server ifconfig.me is using.
try running tracert www.yahoo.com from the command line and see what IPs shows up in the results.
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.