Can we do IP scanning using QT
-
@jsulm said in Can we do IP scanning using QT:
@closx He needs the IP of his server which not necessarily runs on same machine...
Then we can replace the code with
QProcess process; process.start("dig +short test.com > ipaddress"); QString fname="ipaddress"; QFile file(fname); QString ip; if (file.open(QIODevice::ReadOnly | QIODevice::Text)){ QTextStream stream(&file); while (!stream.atEnd()){ ip = stream.readLine(); } } file.close();
Didn't I still get the main problem? Am I retarded? lmao
-
@jsulm said in Can we do IP scanning using QT:
@closx He needs the IP of his server which not necessarily runs on same machine...
Then we can replace the code with
QProcess process; process.start("dig +short test.com > ipaddress"); QString fname="ipaddress"; QFile file(fname); QString ip; if (file.open(QIODevice::ReadOnly | QIODevice::Text)){ QTextStream stream(&file); while (!stream.atEnd()){ ip = stream.readLine(); } } file.close();
Didn't I still get the main problem? Am I retarded? lmao
-
-
@ManiRon Read the manual of your server or OS.
For Ubuntu Linux for example see https://www.cyberciti.biz/faq/ubuntu-change-hostname-command/ -
@ManiRon Read the manual of your server or OS.
For Ubuntu Linux for example see https://www.cyberciti.biz/faq/ubuntu-change-hostname-command/ -
@ManiRon
Its very easy to find on google
https://www.cnet.com/how-to/how-to-change-your-computers-name-in-windows-10/
Make sure it matches the Windows OS you are using. -
@ManiRon
Its very easy to find on google
https://www.cnet.com/how-to/how-to-change-your-computers-name-in-windows-10/
Make sure it matches the Windows OS you are using. -
@mrjj actually my client runs on windows and my server runs on linux , now in this scenario how to set the host name and connect with the server
@ManiRon
If the server is Linux, it's like @jsulm showed.
The host name of the server is not related to the client. nothing needs to be done client side
for server to have a hostname/name.
Its just an alternative to the pure IP.Howver, is the server on the same network as you ? ( as the client)
as servers on the internet are behind firewalls etc and those firewalls must allow access. -
@ManiRon
If the server is Linux, it's like @jsulm showed.
The host name of the server is not related to the client. nothing needs to be done client side
for server to have a hostname/name.
Its just an alternative to the pure IP.Howver, is the server on the same network as you ? ( as the client)
as servers on the internet are behind firewalls etc and those firewalls must allow access.