You are not logged in.

Search results

Search results 1-1 of 1.

Wednesday, February 2nd 2005, 8:38am

Author: myfairlady

How to get IP address from Computer name

I have written code to connect to a server using QSocket. I am able to connect if i give the IP address of the server in the 'connectToHost()' method of QSocket. Now Suppose if i want to give the server computer name in place of the IP address and still get connection, how do i do that. First of all can I do so? Its smthing like suppose the server name is "abcxyz" and IP is 192.168.4.168.... i can connect by connectToHost("192.168.4.168", 8080) But can I connect using connectToHost("abcxyz", 808...