Setting up tcp/ip connection on same PC

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am a software developer (not very familiar with networking practice) and have a question about setting up a tcp/ip connection on the same box-to mimic a client server connection for testing purposes. I set the Lan connection/tcp/ip properties IP address to 192.168.0.1 (as well as the gateway and the DNS server. The subnet mask was set to 255.255.255.0. (I am using Win XP Prof).In the Command prompt I pinged the bogus IP address but it came back all 4 times as “destination host unreachable†or some such(4 packets sent and 4 lost). Per MS documentation I tested pinging something like 127.0.0.1 and got back that all 4 packets sent and received. The network cable shows is disconnected which a friend says is ok for this.

Any ideas what could be wrong, or how to find out? Thanks.
Van
 
You set the gateway to 192.168.0.1? Don't set the gateway to anything
unless you need to get off the local subnet.

--

Ken Wickes [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.


Van S. Mabrito said:
I am a software developer (not very familiar with networking practice) and
have a question about setting up a tcp/ip connection on the same box-to
mimic a client server connection for testing purposes. I set the Lan
connection/tcp/ip properties IP address to 192.168.0.1 (as well as the
gateway and the DNS server. The subnet mask was set to 255.255.255.0. (I am
using Win XP Prof).In the Command prompt I pinged the bogus IP address but
it came back all 4 times as "destination host unreachable" or some such(4
packets sent and 4 lost). Per MS documentation I tested pinging something
like 127.0.0.1 and got back that all 4 packets sent and received. The
network cable shows is disconnected which a friend says is ok for this.
 
Hello,

What is your network configuration. Explain how your hardware is
connected and to what. If you ever expect to
get a "good" ping test to work your network connection "MUST" show a
good connection. It will never work without
a cable connection. Your ping test to the address 127.0.0.1 or whatever
you used only tested that your " internal"
software is working. that is it never even tries to go out the cable to
anywhere.

example of configuration. (pc-1) ip=192.168.100.1 ; mask
=255.255.255.0 ; gateway = (not needed)
(pc-2) ip= 192.168.100.2
; mask= 255.255.255.0 ; gateway = (not needed )

ensure that your firewalls are disabled and that you
place both units into the same workgroup or
domain as the case maybe. If you are testing a
server -client connection ensure that the
client has the correct profile to access the
server.

When asking questions in these groups try and supply as must info as
possible without giving up any trade secrets.

Regards,

Supertech
Reply to group only. e-mail is bogus to keep out the Spam machines


Van S. Mabrito said:
I am a software developer (not very familiar with networking practice) and
have a question about setting up a tcp/ip connection on the same box-to
mimic a client server connection for testing purposes. I set the Lan
connection/tcp/ip properties IP address to 192.168.0.1 (as well as the
gateway and the DNS server. The subnet mask was set to 255.255.255.0. (I am
using Win XP Prof).In the Command prompt I pinged the bogus IP address but
it came back all 4 times as "destination host unreachable" or some such(4
packets sent and 4 lost). Per MS documentation I tested pinging something
like 127.0.0.1 and got back that all 4 packets sent and received. The
network cable shows is disconnected which a friend says is ok for this.
 
Ken and Supertech
Thanks for your replies
I removed the setting for the gateway and it still didn't work. I also disabled the firewall
Supertech: Not sure my message was clear: I am trying to set up a client server connection within the same PC-I don't have two PCs. Am doing this for testing a client server software application on the same box.A friend more knowledgeable than I told me it was ok to have the network cable disconnected in this case.Is that right
You also mention that I need to "ensure that the client has the correct profile to access the server." How do I do that
Thanks again to both of you
Va
 
Good evening,

I apologize for the first re: format. I forgot which e-mail I structure I was using..

I am afraid that I can not help you with this one. Since the same box is acting as "both" I do not see a way to correctly make this "connection " happen. It would seem that you would need two network connections to generate two separate IP addresses and their associated connection for your software to correctly establish. Is it safe to assume that the test box is the server so that the server side of the application functions?


NUTS!! is this a WEB based product? If so then it should work as long as you have the product installed and configured ok. But I am still guessing that you would need your network to be functional to itself. If this is a FrontPage or whatever issue I will not be of help. I am sure that someone else in this group maybe able to answer this. The last time I "created " a web page application and tested it my test box was a Pentium 166 box but my network was functional and the cable showed connected. (just had it hooked up to a hub so everything thought the network was functional). A router would do the trick just fine also. If you can get your hands on a "turnaround" connector for the twisted pair network connector that may also work.

Regards,

Supertech..
 
Supertech
Thanks again for your trying.
This is not a Web application. It's a messenger application with in the end one server and several clients communicating with each other sending and receiving data. But for now I need to get the client server, TCP/IP connection working on one box which I have been told is possible. One friend, a former MCSE said I would need different ports, but he didn't know a whole lot more
Maybe I need to try the developer newsgroups
Thanks agai
Van
 
Back
Top