INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Unable to connect to server

Unable to connect to server

(OP)
Hi,
I'm new to all this. Created a web server on OpenSuse Leap 42.2. I've checked that apache (httpd) service is running. I've also checked that port 80 is open and listening. I also disabled firewall for testing purposes. Yet when I try to connect to server from another machine using IP address there is no connection. I'm using yougetsignal Port Forwarding Tester as well as firewallruletest.com to try and establish tcp connections. I would be grateful for any suggestions as to what else I should do to establish connection.

RE: Unable to connect to server

Okay, lets break this down so we are talking the same language;

Define
"Created a web server"
As Apache, IIS etc. are "web servers"

So do you mean a machine running a web server?

And;

Is this machine on a LAN or the Internet

is it dedicated hardware, or a VM?

"Yet when I try to connect to server from another machine using IP address there is no connection"

From the local network or external?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Unable to connect to server

(OP)
Hi,
Thanks for your reply. Yes it is a machine running a web server, specifically Apache/2.4.23. The machine is using a wireless card to connect via a router to the internet. There is another machine with Windows 7 that has a wired connection to the same router and can connect to the internet. The machine with Apache is a dedicated server. The two machines are not configured to communicate with each other.

RE: Unable to connect to server

Quote:

The machine is using a wireless card to connect via a router to the internet. There is another machine with Windows 7 that has a wired connection to the same router and can connect to the internet.

Okay, some ISP supplied 'domestic' routers have a feature called "Wireless Isolation" which means that 'wireless' devices cannot communicate with 'wired' devices. Basically it creates two isolated subnets to reduce the security implications of having an 'open' wireless network or a router that also acts as a "Wireless Hotspot" for your ISP (it's in the very, very small print of your contract agreement somewhere way past the, "Oh I can't be bothered reading this waffle any further" point).

You need to check if both machines are using the same IP range and subnet mask.

Quote:

The two machines are not configured to communicate with each other.
But can they 'see' each other on the LAN?
Try

CODE

sudo arp-scan --interface=wlan0 --localnet' 
from the Linux box to see what IPs are visible. (replace wlan0 with the name of your wireless device name)

Have you disabled the router remote management UI or changed the port, as that generally 'listens' on port 80 if you are trying to connect using the external IP.


Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Unable to connect to server

The machine that is setup to be your webserver needs to have a static ip address on the LAN side as well as the WAN side. Your router connects the two. The WAN or internet side of the router has a public ip address assigned to it. This is the one that dns servers use to point a web address to your ip. As ChrisHirst has said, the world cannot see your LAN. You need to tell your router to send all http traffic to an internal ip (LAN)address on port 80. This is called port forwarding. Let's say your router's internal ip is 192.168.1.1. Then your server needs to be on the same subnet i.e. 192.168.1.xxx. Your router usually has a set ip range for the dhcp pool. This where the machines on your intranet get the dynamic ip addresses automatically. You need to set a static ip address outside of that dhcp range. Chances are, if you set the server's ip to something like 192.168.1.10, you should be well outside of the routers dhcp range.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close