Get IP with JS? I feel very unfair, haha :)
There are several ways, but you must require the other party to run the ActiveX control, so the other's IE security settings must be lower, otherwise it will not be able to run, if used in ASP, PHP, JSP, ASP.NET can be implemented very easily, and there is no limit.