Solved

Connecting two servers

Posted on 2016-11-17
30
45 Views
Last Modified: 2016-11-22
We have a couple of Server 2003 servers that house some software from an office acquisition. Because of the OS version, I don't want them on the network but we do still have some need for the software a couple of times a week. One of the servers is a mainframe that contains the data and the other server is for the web interface to access the data. I've plugged them both into a Netgear dumb switch but I can't seem to access anything when I try pulling it up through the web interface on the server. Wouldn't they be talking to each other if they were plugged into the same switch? Thanks!
0
Comment
Question by:itgolfer
  • 12
  • 7
  • 7
  • +2
30 Comments
 
LVL 2

Expert Comment

by:OnlineSupport
Comment Utility
DNS? You isolated them? From which server are you using the browser? Can the Webserver resolve the back end server?
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
Check your network /  dns settings. Make sure they are both on the same subnet.
0
 
LVL 2

Expert Comment

by:OnlineSupport
Comment Utility
Also Check related Services are running (IIS, SQL if it running that etc.) is the website running in IIS manager?
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
First, establish that you have connectivity.
Can you ping one from the other (and vice versa)?
0
 
LVL 20

Expert Comment

by:CompProbSolv
Comment Utility
If you would run the following on both and report the results here it would answer much of what is being asked above:

start
run
cmd
ipconfig /all
0
 

Author Comment

by:itgolfer
Comment Utility
Sorry, should have provided this info from the beginning. The web server is configured statically and the mainframe is getting the address automatically. I've put the IP information from the web server below. I cannot ping between the two.

172.16.1.248
255.255.255.0
172.16.1.1

172.16.1.252
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
As @cromprobsolv requested:

"If you would run the following on BOTH..."
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
As you stated, if the webserver's IP is statically set, but the mainframe is being set automatically, most likely the subnet, gateway, and DNS settings, are different.

If this is the case, they would never see each other, unless you make some configuration changes.
0
 

Author Comment

by:itgolfer
Comment Utility
Sorry about that. Below are the results from the mainframe.

Local Area Connection 2
Autoconfiguration IP: 169.254.111.56
Subnet: 255.255.0.0
Gateway: Blank

Local Area Connection 4
IP Address: 192.168.16.2
Subnet: 255.255.255.0
Gateway: Blank
0
 
LVL 2

Expert Comment

by:OnlineSupport
Comment Utility
Set a static address on the mainframe on the 172.16.1. network with 255.255.255.0 subnet. or put your webserver on the 192.168.16 network with 255.255.255.0

I would propbably change the mainfram IP just incase the webserver has a bind to IP single IP

They need to be on the same network. Also if you have no DNS server still could have issues, if not you can use HOSTS file
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
That was what I meant. One machine is on the 172.16.1.x subnet with a gateway and your other is on 192.168.16.x. subnet with no gateway.

There is no route for the machines to talk to each other.

Do as @onl suggests and you should be fine.
0
 

Author Comment

by:itgolfer
Comment Utility
So I set the mainframe IP to 172.16.1.130, subnet to 255.255.255.0, Gateway to 172.16.1.1 and left the DNS blank. I'm not sure what you mean by using HOSTS file since there is no DNS. Thanks.
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
Ha. You must be a millennial (just kidding)

!The HOSTS file is a text-like file that contains static information. This comes from the Windows 95 days.

Here is the one found on all computers.

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#      127.0.0.1       localhost
#      ::1             localhost
1
 

Author Comment

by:itgolfer
Comment Utility
Guilty as charged! So I need to find the file on each machine and configure it?
0
 
LVL 2

Assisted Solution

by:OnlineSupport
OnlineSupport earned 250 total points
Comment Utility
If your webserver is accessing the mainfram on DNS name and there is no DNS then it wont be able to resolve the IP. There is a file called HOSTS in c:\windows\system32\drivers\etc

Edit it in notepad and add the IP address of the other server and Hostname and do the same on the other server so on mainframe enter the IP address of webserver and IP address and on same line the hostname of webserver

on the Webserver enter the Mainframe IP and Hostname of mainframe server.

Anyway now you have the servers on the same network can you now ping each server?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
Located in C:\Windows\System32\Drivers\ETC

This file can be edited to suit your needs. Once Windows NT and 2000 came along and were introduced to DHCP, there was no need for the HOSTS file.
1
 
LVL 2

Expert Comment

by:OnlineSupport
Comment Utility
Also if you are accessing the website in your browser using something different then the hostname of the webserver you want to add that entry into the HOST file with IP address of Webserver
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
You'd want to make sure that you don't include the " # " before each line.

This acts like a remark, meaning that when it encounters this line, it will disregard it.

On webserver, your HOSTS file will be:

172.16.1.130     domain # mainframe

On mainframe, your HOSTS file will be:

172.16.1.248     domain # webserver

(I think I got the IPs right)
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
I haven't used this command in over 20 years, but this is how you would refresh the system after making changes to the HOSTS file.

From a command line with elevated privileges, type

nbtstat -R

and press Enter

"-R (Reload) Purges and reloads the remote cache name table"
0
 

Author Comment

by:itgolfer
Comment Utility
On the webserver, I have the following: 172.16.1.130 localsource
One the mainframe, I have the following: 172.16.1.248 localsource

I ran the command to refresh the system but I still can't connect between the two.,
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
Run the IPCONFIG /ALL on both again and post
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
Also, you stated that you set the gateway to 172.16.1.1.

Do you actually HAVE that gateway???

I guess what I'm trying to say is this. You have 2 servers connected to a standalone switch. There are no other devices between them. They are essentially on their own network THERE IS NO GATEWAY.

Remove the gateway from both servers and try again.

OR

Enter the IP address of the webserver as the gateway on the mainframe.
0
 

Author Comment

by:itgolfer
Comment Utility
Webserver
IP: 172.16.1.248
SN: 255.255.255.0
GW: 172.16.1.1
DNS: 172.16.1.252

Mainframe
IP: 172.16.1.130
SN: 255.255.255.0
GW: 172.16.1.1
Nothing listed for DNS
0
 
LVL 2

Expert Comment

by:OnlineSupport
Comment Utility
As efrimpol said, run the ipconfig command, when you say you cannot connect them, in what way? Can you ping the IP addresses of the servers now? Need to now know if it is something els now, Rule out connectivity by using IP. If that works thaen it could still be resolving issue or something else.
0
 
LVL 5

Accepted Solution

by:
efrimpol earned 250 total points
Comment Utility
Also remove the DNS setting from the webserver. There is no DNS server in play.
0
 

Author Comment

by:itgolfer
Comment Utility
OK, I removed the DNS on the webserver and can now ping between the two. I still can't login to the interface on the web browser but it could be possible that it's looking at the old IP of the mainframe. I may have to check with the vendor and see if that would be it. Thanks for your help, I made it a lot further thanks to you guys.
0
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
Great.

It's a start.
0
 
LVL 2

Expert Comment

by:OnlineSupport
Comment Utility
Could be, I would check that all the relevent services are running now. also on the webserver what happens if you try open http://localhost or https://localhost. is it a IIS site or some other server
0
 
LVL 20

Expert Comment

by:CompProbSolv
Comment Utility
What URL are you using when trying to log in to the web interface?  Try replacing the name (between // and /) with the IP address of the web server.  That will let you know if it is a DNS issue.
0
 
LVL 20

Expert Comment

by:CompProbSolv
Comment Utility
While DNS settings may have been part of the issue, IP settings were the core of the problem.  This was suggested in https://www.experts-exchange.com/questions/28983860/Connecting-two-servers.html#a41892248 and in https://www.experts-exchange.com/questions/28983860/Connecting-two-servers.html#a41893056 and this one illustrated the specific IP error and how to resolve it: https://www.experts-exchange.com/questions/28983860/Connecting-two-servers.html#a41893149 .

Without fixing the IP issue, the DNS problem didn't matter (yet).  I would suggest reconsidering how points were awarded.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now