Asp.Net IIS hosting - asp.net

I have an asp.net web application hosted iis on LAN. When i type in my local ip address in the URL box, i can access it. My question is, if i want to access it from outside the LAN, would i have to port forward it to port 80? And intead of typing my local ip address in the URL box, i would now have to type the routers ip adress??

Use your internet and LAN address.and put a net forwarding in firewall or port 80 for your internet address.and yes you need to make changes in your firewall as well.

Yes. If your internet address is 7.7.7.7 and your LAN address is 10.10.10.10 -- you'll need to put a NAT/Port-forwarding entry in your router/firewall to send traffic on TCP Port 80 destined for 7.7.7.7 TO 10.10.10.10. On most home routers this is a pretty simple task.

Related

How is IP address 127.0.0.1 used in terms of servers?

I'm working on a project which enables a web-based server which is accessible through 127.0.0.1:8081.
But I am not really able to understand the concept of the ip address. Does it mean the address is only available from the device which opens up the server, or across the whole LAN on any computer connected to that same router?
127.0.0.1 is a special IP address that refers to your local machine. Localhost resolves to this address. If you want to make your server accessible from the web or a different machine you will have to use a routable IP address.

access local server from other networks

I created a localhost server using servlets.
I want to know how to access from other networks(other ip addresses).
what to do for that?
any answers will be helpful for me
you should use public ip address,instead of local ip address to access over the networks.
You can access it by giving IP address of your machine in your application url in place of localhost while accessing it from another machine in the same network.
you can use your ip address instead of localhost.and also need to configure firewall.The firewall can be configured by: choosing the Windows Firewall from the Control Panel, then click on Exceptions -> Add Port and enter name and number: your server, port and leave transport protocol as TCP.
e.g,
http://10.4.0.198:8080/project

Link to another web server on my home network

If I have 2 web servers on my home network, one of which can be accessed via the internet, is there a way to access the other from the internet as well through a link in the first website?
Accessibility from the internet is configured in Your router port forwarding. Web servers use 80 port. I assume this port is forwarded to one of Your web servers local IP address. You could set Your other server on different port, configure Your router and access it, using Your IP adress and the other port.
http://yourip:port/some_page.html
you can use 2 ways:
ports forwarding, like NAT to forward packets from 1st server to 2nd.
using http proxing through .htaccess:
RewriteRule ^access/(.*)$ http://<2ndserver_IP>/$1 [P]
in this example: customer accessing http://1server/access/<anything> link will be proxied to http://2server/<anything>

sending port via router port not opening and how to access a computer/server externally using router's ip address?

Hi I am trying to make my router(TPlink router) to forward port by configuring it and by creating NAT virtual server or port triggering. Firstly the port doesn't open which I have checked via an online website, the port is closed. Secondly if the port does open, would I be able to access my computer or computer server or a website hosted on my wamp server externally via another network from some other place externally? I am not sure what are the things on my computer that I would be able to access from outside? How exactly am I going to do it? I am aware that I am going to use my router external ip address which I know and the port that I have associated with the ip address of the computer I am trying to access. I am just a beginner but I am really into networking. Can somebody explain the entire process please?
Your local host can be accessed from anywhere in the world.
Just use put the ip of the pc/wamp server installed pc in the DMZ Box under Forward Menu of your tp-link router & enable DMZ option.

How Can I Access Locally Hosted IIS WebSite from Remote Computer By My IP Address?

How Can I Access My Locally Hosted IIS WebSite from Remote Computer By My IP Address ?
You have to check you ip here, make sure that you are forwarding port 80 (especially if you're in a locale home network), and then you could access your server by http://<server_ip> e.g. http://192.168.0.6
Note that as long as you don't have a fixed (static) ip, your ip address might change, and you'll have to recheck it.
Another note- The default HTTP port is 80, and by using port 80 you could access your server via browsers without writing the port number. If for any reason you like to switch port, make sure your forward that port number and access your site by http://<server_ip>:<port_number> , e.g. http://192.168.0.6:8080
if you are using some other port. then you can go with http://<ip_address>:<port_no>

Resources