Network IP Read ????

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by AngelNox.

Hello !!!
I would not like to indicate knows address can myself the IP address for the internet (PPP) letting, unfortunately I like I this.
Can someone help me???

MFG
AngelNox
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by AngelNox.

Can someone say like I with IPAdressGadget would go around me?

I Hope you can Help me ?
MFG
AngelNox
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Sweenie.

You haven't by any chance translated this question from another language with babelfish.altavista.com ?

Because your question is VERY confusing.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

I'd love to help but don't know what the hell you're saying. :cry:


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

I think he must know the IP address of which he is connected to the Internet.



Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by AngelNox.
Originally posted by AngelNox

Hello !!!
SORRY I have Translate the Massage !!!

I have a Problem, I search to a Example for IPAdressGadget !!!

MFG
AngelNox
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TheBeck.

I think he want's to find the IP address of the system his program is running on. :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> I think he want's to find the IP address of the system his program is running on.

Oh... in that case, it's all in the manual. But try this for a start:

Code: Select all

InitNetwork() : ExamineIPAddresses()
Debug IPString(NextIPAddress())
PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.
Originally posted by PB

I'd love to help but don't know what the hell you're saying. :cry:

Regards,

Berikco

http://www.benny.zeb.be
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by AngelNox.

Hello PB !!!
Thanks for your Answare I have the IP from the LOCAL Network this is ok , I will have the Network IP Adress from the PPP Adapter for the Internet and now my Programm This is for the LOCAL Network LAN

InitNetwork()
ExamineIPAddresses()
IPAdresse = NextIPAddress()
String$ = IPString(IPAdresse)
MessageRequester("Deine IP-Adresse"," " +String$, 0)

I hope you can help me :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.
Originally posted by AngelNox
MessageRequester("Deine IP-Adresse"," " +String$, 0)
Hi AngelNox,
Looks like you are German...
Maybe just ask question in your language, many German speaking ppl here.

Regards,

Berikco

http://www.benny.zeb.be
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Shawn.
Originally posted by AngelNox

Hello PB !!!
Thanks for your Answare I have the IP from the LOCAL Network this is ok , I will have the Network IP Adress from the PPP Adapter for the Internet and now my Programm This is for the LOCAL Network LAN

InitNetwork()
ExamineIPAddresses()
IPAdresse = NextIPAddress()
String$ = IPString(IPAdresse)
MessageRequester("Deine IP-Adresse"," " +String$, 0)

I hope you can help me :)
You must call NextIPAddress() again to iterate through the entire list of IP addresses.

Code: Select all

InitNetwork() 
ExamineIPAddresses() 
NextIP.l = NextIPAddress()
While NextIP.l  0
  MessageRequester("Next IP Address",IPString(NextIP.l), 0)
  NextIP.l = NextIPAddress()
Wend

or

Code: Select all

InitNetwork() 
ExamineIPAddresses() 
IPAdresse = NextIPAddress() 
String$ = IPString(IPAdresse) 
MessageRequester("Deine IP-Adresse"," " +String$, 0)
IPAdresse = NextIPAddress() 
String$ = IPString(IPAdresse) 
MessageRequester("Deine IP-Adresse"," " +String$, 0)

Hope this helps.

Shawn
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by AngelNox.

Thank You Shawn !!!!!

Berikco Thanks for your Answare !!!! :(

MFG
AngelNox
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.

Well, i'm not English or German.....could not understand what you where asking...sorry :cry:

Regards,

Berikco

http://www.benny.zeb.be
Post Reply