I have an interesting problem. I cannot connect to a personal server I set up. What's interesting is that I can connect to it from the LAN using its non-local IP address. However, I cannot seem to connect to it from anywhere else.
Here's how my server is set up:
My entire home has a single Ethernet cable that goes directly into our router. Every device in the house is connected to the router. My server is on a static (local) IP address. The router is configured to forward the necessary ports to my server. So, when I tested out my connection, I was able to connect to my server from another computer on the same local area network using my non-local IP address (the IP address assigned to my router by my ISP). However, when I try to connect to my IP address from a computer that is not on my LAN using my non-local IP address, I receive an error like this:
I can connect to my server from my LAN using the router's IP address, but I can't connect to it from outside of my LAN using the router's IP address. Does anyone know what I'm doing wrong? Could there be some sort of setting I missed that's necessary to make my router "public?"
Your router has got a build in firewall.
The firewall is set to allow connections from a pc on the local network to another pc on the local network. ( This is called forwarding ).
By default your ip firewall is set to deny incomming connections to your local network on some ports. the default ports are thos that are used by windows to connect to shared drives.
This is a very important security feature, if you disable these ports or allow traffic on these ports any one on the internet will be able to access your server if the find your public ip address.
Now if you had mail server on your local network and you wanted people to send mail to it on port 25 (SMTP) then you would set a rule in your firewall to allow incomming traffic on port 25 and to forward it to the internal mail server.
So you sepcify what port you allow traffic on and you specify that it can only go to one specific ip address.
So you sepcify what port you allow traffic on and you specify that it can only go to one specific ip address.
Quote:
Originally Posted by Altay_H
My server is on a static (local) IP address. The router is configured to forward the necessary ports to my server. So, when I tested out my connection, I was able to connect to my server from another computer on the same local area network using my non-local IP address (the IP address assigned to my router by my ISP).
I have already set up port forwarding correctly, otherwise I would not be able to access my server via the non-local IP address of my router.
Hi,
I can connect to my server from my LAN using the router's IP address, but I can't connect to it from outside of my LAN using the router's IP address. Does anyone know what I'm doing wrong? Could there be some sort of setting I missed that's necessary to make my router "public?"
Referring to your statement above.
Your firewall is set to block microsoft file and print sharing by default. If you have a samba server on the inside of your network and you want to connect to it from the outside of your network your firewall will block it.
Your firewall is set to block microsoft file and print sharing by default. If you have a samba server on the inside of your network and you want to connect to it from the outside of your network your firewall will block it.
Perhaps I should have been more specific. I'm not trying to print from my server. I'm actually trying to SSH into it. Well, I'm trying to get any/all of the following protocols to work:
HTTP
FTP
SSH
VNC
However, they all result in a "Connection Refused", "Connection Timed Out" or similar error regardless of whether I'm trying to access them from Windows or Linux. Is a firewall blocking all of them? Can you explain how I can fix my problem?
Did you check with your provider if they allow inbound connections. Some do, some block the protocols you mentioned above.
I did not. Is there a simple way to do this, or must I call my ISP and ask them if they allow inbound connections on the relevant ports?
Also, if my ISP informs me that they will not allow the ports I need, is it possible to use different ports? For example, could I SSH over a port other than 22?
Hey
i want to be able to write simple SSH client to be able to connect to SSH server and invoke remote SSH command
i found libssh and libssh2 and the old openSSh , what is the best and most supported library to choose from ?
i need it to be cross platform .
Thanks (0 Replies)
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
I am connecting to remote server and try to check if files with timestamp as Today's day are on the directory. Below is my code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;
Today=`date +%Y%m%d`;
if ;then
echo "We... (1 Reply)
Hello Every one!!
I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server.
Before this I am using a sudo command to change the user.
The place where I am stuck is, I am able to connect to the... (6 Replies)
Checking crontab job entry in 3 different hosts Hi Gurus,
I am trying to connect to remote host from current host to check crontab entries. I have started like this
ssh -n -l db2psp 205.191.156.17 ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l"
I got this error ?
ssh:... (1 Reply)
Hi All,
In a Shell scriipt with a SQL block I want to issue a query against a local DB and a remote DB on a remote server. The shell script is running locally.
This is how I connect to the local server. But I want the query to reference remote table in the join. Question can I specify a... (1 Reply)
From a host A an application is trying to connect to host B.
From firewall side I can see packets dropped coming from host A to host B.
I've access to host A: how can I know which "application" is trying to connect to host B?
Thanks,
Marco (3 Replies)
I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks. (1 Reply)
Hi everybody,
My bash script is trying to connect to a remote database using the 'sqlplus' binary.For this i set(export) the variable TWO_TASK to the value of database name excluding the dot extension part.
Can anyone explain me what's the significance of this TWO_TASK variable while... (8 Replies)
Please advise,
The previous thread asked about the automated transfer of files between two servers. The question is - is there any way of encrypting the password within the script or is it a matter of setting the permissions settings on the script so that it can only be executed and possibly... (1 Reply)