I am learning how to create an ubuntu server to use to host a database and run a script as a thread to do some things for my graduation project...
I installed ubuntu server with lamp environment and managed to connect it to an ethernet local network that connects to the internet .. my design looks like this
except the router is also connected to a dsl modem and to the internet...
I can easily connect to the server from the local network but how can I connect to it from outside this private network ?
I know the router public ip address and the server private ip address
You need port forwarding. mean, in your router settings you define that incoming requests to specific port/protocol will redirects to specific ip (of the ubuntu).
See https://en.wikipedia.org/wiki/Port_forwarding
You will need to set up port forwarding on the router such that the router's external port 80 is forwarded to the server's private port 80.
What router is it? Its guide should detail how to set up port forwarding
Related
I’ve set up a Mariadb server on my raspberry pi and I can access it over 192.x.x.x but I can’t access it over my public IP address, I know I need to port forward can anyone tell me how to do this exactly, I use talk talk wifi.
You need to create a port forward as you mention.
external IP:port > Internal IP:port
x.x.x.x:3306 > 192.x.x.x:3306
The default port of MySql is 3306.
I learned to write a client and server application and how to connect them. The server host has to forward a port in the router to be able to a establish a connection.
Is it possible to connect two devices in the same network without port forwarding/triggering?
The server host has to forward a port in the router to be able to establish a connection.
You have this back to front. The router has to forward a port to the server host in order for clients outside the router to be able to form connections.
Clients inside the router, i.e. in the same subnet as the server host, can connect directly.
Yes as long as the devices are in the same network, no port forwarding is required.
Whenever a server is inside a NAT and you try to access it from outside, you have to configure port forwarding in your router.
Example:
You create a server running on port 8080 with IP 192.168.1.12
Suppose your router's public IP is 10.2.2.5
So you need to enable port forwarding in your router for port 8080 to 192.168.1.12:8080
Then you can access that server from outside with 10.2.2.5:8080
I use a static IP connection, Configured to TPLINK router.
I have a local server running which i can access from my network, but i want it to be accessed outside network.
So I did port forwarding. and its Successfully running.
Now the problem is :: The IP address of my WAN is also a private address like 10.10.X.X, so when am entering http://10.10.X.X, i can access my site, but not outside my network. Please guide me how to fix this?
If your WAN address is a private address, your ISP is using CGN. This is becoming more common since the RIRs have, or soon will, run out of public IP addresses to assign to ISPs. It sounds like your ISP has run out of public addresses and needs to use private addresses for its residential customers, reserving its remaining public addresses for its business customers which are willing to pay for public addresses.
Basically, your ISP is using NAT, too. You would need to have the ISP forward your port on its NAT router, but the odds of that are zero since it probably has a policy you agreed to to not host servers on your residential LAN (buried in the fine print of the ISP agreement). This situation will play out more and more over time.
You have to use the "Virtual Server" settings. Port triggering is used for.
Once the modem router is configured, the operation is as follows: 1. A local host makes an outgoing connection to an external host using a destination port number defined in the Trigger Port field. 2. The modem router records this connection, opens the incoming port or ports associated with this entry in the Port Triggering table, and associates them with the local host. 3. When necessary, the external host will be able to connect to the local host using one of the ports defined in the Incoming Ports field.
It is not used for incoming connections which are triggered from outside!
Of course, to have it working you have to have an application listening on that port not only having the firewall on Windows allowing the port.
After you set up the "Virtual Server" a port scanner should show you the port is open (even without having a running application listening) - it will try to port forward it. I use ShieldsUp for testing.
Here is my problem. At our place LAN port is used to connect every system with a static IP address(subnet mask,default gateway,dns server address).
I have a wireless router with me. Now how can I connect multiple devices using this router?
Thank You All
Just connect the LAN port of "your place" to the WAN port of the router.
Configure the IP-adress etc. on the router.
Easiest way to do that is to connect your computer to the router LAN port and log in through the web interface, assuming it's a home-router.
There should be a setup guide shipped with the router, otherwise google is your friend ;)
I'm working on a website for a friend, developing using Eclipse/Tomcat. I'm running it locally and trying to open it via my internet port IP address, but I can't get it to work. The computer I am running it from is connected to a router, so it is running off of 192.168.1.4, and http://192.168.1.4:8080/Mobile_Site/index.jsp works. However when I try and open it via my internet port IP, http://67.xxx.244.xx:8080/Mobile_Site/index.jsp it doesn't find it from any device, even outside my local network. Is there a way to send the link when running locally when connected to a router?
You have to configure your router port forwarding (or virtual servers depending on the router) to forward TCP connections from 67.xxx.244.xx:NNNN to 192.168.1.4:8080.
Then you give the 67.xxx.244.xx:NNNN address to your friend.
Note: NNNN at your router doesn't need to be 8080, as long as the port forwarding is set properly.