mIRC Home    About    Download    Register    News    Help

Page 1 of 3 1 2 3 >
Topic Options
#238791 - 28/08/12 12:09 AM upnp localinfo -p
Maelish Offline
Babel fish

Registered: 28/08/12
Posts: 54
Loc: Nashville
So I have been experimenting with upnp on mirc 7.25 on a windows 7 machine. I have confirmed upnp is working normally by using the microsoft upnp test web page.

I cannot confirm through router logs or otherwise that upnp is working for mirc though.

/localinfo -p returns an error

Is anyone else getting upnp to work correctly?
_________________________
Find Gamers, my player finder for tabletop RPGers and Wargamers.

Top
#238792 - 28/08/12 06:43 AM Re: upnp localinfo -p [Re: Maelish]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
What error does it return?
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#238793 - 28/08/12 12:07 PM Re: upnp localinfo -p [Re: Maelish]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
I also have that problem, the error returned is "* /localinfo: unable to resolve local host" for me.
I can confirm that upnp is working too though with /socklisten -p or dcc for example
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#238795 - 28/08/12 12:53 PM Re: upnp localinfo -p [Re: Maelish]
Masoud Offline
Vogon poet

Registered: 01/03/10
Posts: 142
Loc: London, UK
Same here, "* /localinfo: unable to resolve local host"
_________________________
Nothing...

Top
#238902 - 05/09/12 08:36 PM Re: upnp localinfo -p [Re: Masoud]
Maelish Offline
Babel fish

Registered: 28/08/12
Posts: 54
Loc: Nashville
Sorry for the long response wait, I'd had to run out of state on an emergency trip and only got back.

I am getting the same error as the other guys above. Do we have any ideas?


Edited by Maelish (05/09/12 08:37 PM)
_________________________
Find Gamers, my player finder for tabletop RPGers and Wargamers.

Top
#238963 - 13/09/12 12:31 AM Re: upnp localinfo -p [Re: Maelish]
Maelish Offline
Babel fish

Registered: 28/08/12
Posts: 54
Loc: Nashville
So upnp isn't working, does anybody have a solution?
_________________________
Find Gamers, my player finder for tabletop RPGers and Wargamers.

Top
#238969 - 13/09/12 05:57 PM Re: upnp localinfo -p [Re: Maelish]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
I have just tested this on a Windows 7 64bit machine and /localhost -p returns the correct local host and IP address. If you are using a security/anti-virus/firewall application, try disabling it first, then disable and re-enable your internet connection. That may resolve the issue.

Top
#238974 - 14/09/12 04:12 AM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
I just tried it on window xp 32bits, with no anti-virus software and no firewall running, I still get the same message
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#238975 - 14/09/12 07:27 AM Re: upnp localinfo -p [Re: Wims]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
I also tested it on Windows XP 32bit, fully updated, and it worked fine. You will need to make sure that you have UPnP installed in Windows, SSDP and UPnP services enabled, UPnP enabled on the router, and so on. If it does not work, this usually indicates that something is not configured correctly. You may want to try the PortForward tool, which is what I use to ensure that UPnP is configured and working correctly.

Top
#238976 - 14/09/12 11:28 AM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
I did say in my first post that upnp is working since /socklisten -p and/or dccs are working correctly.
Unless it's possible for /socklisten -p to work and still have some misconfigured upnp settings that could cause /localinfo -p to fail, I think that everything is set up correctly (this is true for either winXP or win7 pro 64bits).
I asked people around me, I couldn't find anyone who can get this to work.
I tried the Portforward tool, the only thing it does is showing the ports forwarded, either manually or the one(s) opened with upnp, there is also this button "more informations about this device" which shows some informations, I can provide them if needed.
I confirm that the two services are enabled and that upnp is enabled on the router.


Edited by Wims (14/09/12 11:33 AM)
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#238977 - 14/09/12 03:00 PM Re: upnp localinfo -p [Re: Wims]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
Unfortunately I am unable to reproduce this issue here. I have tested under Windows XP and 7 with both a LinkSys and a NetGear router and mIRC returns the correct results in all cases.

It is not clear whether the user reporting this issue is not able to get any UPnP features at all to work in mIRC or whether their issue is limited to /localinfo.

If you enable all of the UPnP options in the mIRC Options/Connect/Options/Port dialog and then enable Identd (turn off "enable only when connecting") and then use PortForward to check the UPnP settings on the router, does port 113 appear in the UPnP ports list? Is your External IP (as displayed by PortForward) correct?

Top
#238984 - 15/09/12 09:06 AM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
Quote:
If you enable all of the UPnP options in the mIRC Options/Connect/Options/Port dialog and then enable Identd (turn off "enable only when connecting") and then use PortForward to check the UPnP settings on the router, does port 113 appear in the UPnP ports list? Is your External IP (as displayed by PortForward) correct?
No, the port 113 doesn't appear in the list, and I even tried rebooting mIRC.
Yes the external IP displayed is correct.
Note that I tried to /socklisten -p test 8002 right after, and it correctly appeared in the list.

This is on win7 pro 64bits, the test on winXP was wrong, the router used doesn't have upnp.


Edited by Wims (15/09/12 09:27 AM)
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#238986 - 15/09/12 01:55 PM Re: upnp localinfo -p [Re: Wims]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
Quote:
No, the port 113 doesn't appear in the list, and I even tried rebooting mIRC.

Did you turn off "enable only when connecting" in the Identd dialog? If you run a program like TcpView does it show that mIRC is listening on identd port 113?

Quote:
Note that I tried to /socklisten -p test 8002 right after, and it correctly appeared in the list.

That is very odd - /socklisten uses the same method as identd.

Quote:
Yes the external IP displayed is correct.

When you say it is correct, do you mean the "External IP" displayed in the left hand column for an entry in PortForward? Ideally, you will need to confirm this for the port 113 that mIRC creates, however since you are not seeing port 113 in PortForward, something else seems to be going on.

Top
#238987 - 15/09/12 02:19 PM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
Quote:
Did you turn off "enable only when connecting" in the Identd dialog? If you run a program like TcpView does it show that mIRC is listening on identd port 113?
Yes, that option was already disabled. Here is a screenshot from the TcpView program:

which doesn't show that the port 113 is used by mIRC (or by any others program, I checked) but using /run cmd /k netstat -a, it shows that the port 113 is listened:
Code:
Active Connections

Proto     Local Address        Foreign Address       State
TCP       0.0.0.0:113          Wims-PC:0             LISTENING


Quote:
When you say it is correct, do you mean the "External IP" displayed in the left hand column for an entry in PortForward?
Yeah.
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#238988 - 15/09/12 02:55 PM Re: upnp localinfo -p [Re: Wims]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
The identd port is being identified as "auth" by TcpView, so that looks fine. mIRC is creating both an IPv4 and IPv6 port for identd. So the issue now is why port 113 is not appearing in your router UPnP list. Do you have port 113 set up for port forwaring in your router? That may be interfering with UPnP. Since /socklisten -p is working, I cannot think of another reason why identd would not work in this case, other than router or windows configuration.

Top
#238991 - 15/09/12 03:58 PM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
I don't have the port 113 forwarded in my router.
Investigating a bit:
-the identd server feature isn't working, even if I change the port number, I don't use that feature but I'm almost certain it worked in the past, perhaps in a different (recent, 7.2x) version of mIRC.
-typing /socklisten -p test 8002, the 'upnp port forwarded' program automatically detect the change whereas is doesn't find anything when using the identd server feature, so there seems to be a difference in how the identd server feature handles upnp, compared to /socklisten -p.
The problem seems to be ipv6 related, that's the only difference there is betweeen /socklisten -p and identd, enabling the identd server results in this in netstat:
Code:
Proto  Local Address          Foreign Address        State
TCP    0.0.0.0:113            Wims-PC:0              LISTENING
...
TCP    [::]:113               Wims-PC:0              LISTENING

When using /socklisten -p, obviously the ipv6 line ([::]:113) doesn't appear.


Edited by Wims (15/09/12 03:59 PM)
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#239009 - 17/09/12 08:10 AM Re: upnp localinfo -p [Re: Wims]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
The IPv6 is not a problem, that is by design. There have not been any changes to UPnP support in recent versions, other than a minor change in v7.12 relating to how UPnP sockets are closed. Was the UPnP identd feature working for you in mIRC v7.1?

Top
#239010 - 17/09/12 08:37 AM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
I don't really know/remember if it was working at all, I just have a feeling I tested it for some reason and it worked.
I downloaded a copy of mIRC 7.1 from mirc.net and it's not working. But note that the router was a different one at that time so it might be a router, but it's very very unlikely.
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#239013 - 17/09/12 09:39 AM Re: upnp localinfo -p [Re: Wims]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4343
Loc: London, UK
Unfortunately I have not been able to reproduce this issue at all. I have just tested it on three other computers, using XP and 7, using both of my routers, over a wireless and cable connection, and it worked fine in all cases. My guess is that it is an mIRC/windows/router configuration issue at your end.

Top
#239016 - 17/09/12 10:24 AM Re: upnp localinfo -p [Re: Khaled]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3464
Loc: France
I'm not using any special setting on windows, and I'm using the settings you me to use in mIRC, the router only have a checkbox 'enable upnp', and I turned off its firewall, the really odd thing is that upnp does work for socket and dcc. I do remember that, when I tried /localinfo -p with my old router, mirc was freezing for ~7 seconds before displaying the error message.
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
Page 1 of 3 1 2 3 >