473,323 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Problem with remote IP

Hello

I have problem with determining remote IP. How can I get IP of remote
machine if I had them name like: //Comp1

Thanks

Taptu¶
Nov 17 '05 #1
6 1560
I'm working under Windows 98 and I want to know only LAN IP's.
Nov 17 '05 #2
"Taptu¶" <pu***@poczta.onet.pl> wrote in message
news:bv**********@nemesis.news.tpi.pl...
I have problem with determining remote IP. How can I get IP of remote
machine if I had them name like: //Comp1


Check the docs for gethostbyname() and getaddrinfo().

Regards,
Will
Nov 17 '05 #3

U¿ytkownik "William DePalo [MVP VC++]" <wi***********@mvps.org> napisa³ w
wiadomo¶ci news:#t**************@TK2MSFTNGP11.phx.gbl...
Check the docs for gethostbyname() and getaddrinfo().

It doesn't work :( I try this and for example when I want to find out IP of
local machine Azazel gethostbyname() was looking up for Azazel.com :(((((

Regards
Taptu¶
Nov 17 '05 #4
"Taptu¶" <pu***@poczta.onet.pl> wrote in message
news:bv**********@atlantis.news.tpi.pl...
It doesn't work :( I try this and for example when I want to find out IP of local machine Azazel gethostbyname() was looking up for Azazel.com :(((((


If you type

ipconfig

at the command prompt on the local machine do you see the correct IP
address?

Regards,
Will
Nov 17 '05 #5

U¿ytkownik "William DePalo [MVP VC++]" <wi***********@mvps.org> napisa³ w
wiadomo¶ci news:#q**************@TK2MSFTNGP12.phx.gbl...
If you type

ipconfig

at the command prompt on the local machine do you see the correct IP
address?


Yes - and now what ?
I must finish this program today and i have no concept :(((((((
Regards,
Taptu¶
Nov 17 '05 #6
"Taptu¶" <pu***@poczta.onet.pl> wrote in message
news:bv**********@nemesis.news.tpi.pl...
Yes - and now what ?
I must finish this program today and i have no concept :(((((((


Sorry, but I don't know what to tell you. It is hard to imagine that
gethostbyname() could be broken.

If you are out of ideas, you might want to start with sample code that works
like that found in the simple client server sample in the Platform SDK at

samples\netds\WinSock\simple

Regards,
Will
Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BadOmen | last post by:
I am using winLirc to receive date from my Packard Bell Fast media IR remote. The problem I have is that Winsock1_DataArrival(ByVal bytesTotal As Long) Is called two times almost every time I press...
4
by: Jaydeep | last post by:
Hello, I am facing a strange problem. Problem accessing remote database from ASP using COM+ server application having VB components (ActiveX DLL) installed. Tier 1 : ASP front End (IIS 5.0) Tire...
5
by: Data | last post by:
In my project I want to execute some commands on the remote machine. I am using .Net Remoting to achieve this. My server which is an exe is copied on the remote machine and it receives command from...
8
by: Don Riesbeck Jr. | last post by:
I have an C# EnterpriseService component that is part of an application I am developing that is responsible for writing data to an SQL Server. (it reads from a local DB (MSDE), then writes to a...
5
by: John | last post by:
Hi I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error; Server Error in '/' Application. Runtime Error Description: An...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
1
by: Mr. Beck | last post by:
Hello, Please Help..... I have been working with some tcp/ip socket communication within a C# program recently. Basicly, I have a program (myProblemProgram) that has a socket connected to...
1
by: Steve K. | last post by:
I'm working on my first remoting project. It's going well and I have one (that I know of!) bug left to work out. I understand how remote objects have leases and those leases expire. I fixed a...
0
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.