mIRC Home    About    Download    Register    News    Help

Print Thread
#23497 10/05/03 12:55 PM
Joined: May 2003
Posts: 177
P
Prizm Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: May 2003
Posts: 177
While trying to make a socket script, I realized you had to be connected to a server for mIRC to be able to return a value for $ip. When mIRC starts, it should set the value of $ip to your real IP address untill you at least connect to a server. Then at that point, can make the value changes.


Meanwhile, how can I find out my IP address using an identifier without connecting to a server first?

#23498 10/05/03 01:38 PM
Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033
in mIRC type /help /localinfo

#23499 10/05/03 01:41 PM
Joined: May 2003
Posts: 177
P
Prizm Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: May 2003
Posts: 177
Thanks. I didn't know about that command.

/me feels stupid

#23500 10/05/03 04:49 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
mIRC can't always know the local ip. If mIRC tries to get the local ip of this machine it will get 192.168.1.117 (I'm on a LAN). That IP is only valid within my LAN, it is meaningless to the outside world. There is no way for mIRC to get my "real" IP without either a.) the server telling it what my real IP is, or b.) me telling it what my real IP is.

#23501 10/05/03 06:05 PM
Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033
I don't recall him saying he was a a LAN.

#23502 10/05/03 06:06 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Right, but this is the feature suggestion board. And I am telling him because some people are on a LAN, there is no way this feature could be added to mIRC.

#23503 10/05/03 06:08 PM
Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033
The feature can't be added because "some people are on a LAN" ?
Start making sense.

#23504 10/05/03 06:09 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Read what he said, "When mIRC starts, it should set the value of $ip to your real IP address untill you at least connect to a server" I am saying it is NOT possible for mIRC to do that if the user is on a LAN.

#23505 11/05/03 03:09 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Then return the user's LAN ip address, duh! It is after all, by all accounts, their IP address.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#23506 11/05/03 03:21 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Again READ HIS POST. That is NOT a real IP. That is a local IP there is a huge difference. If you want to argue with me that is fine, but at least read what he is asking. He said real IP, if he didn't mean real IP, well I'm not a mind reader, if he meant to say "whatever IP is available" then he should have said that; but as of right now, I've yet to see him clarify, therefore I'm going to comment on what he said, not what I or anyone else believes he meant to say.

#23507 11/05/03 03:24 AM
Joined: May 2003
Posts: 177
P
Prizm Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: May 2003
Posts: 177
I mean the real IP address. Not the local one.


Link Copied to Clipboard