Only IPv6?
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Only IPv6?

Started by iTCenter, 09 September, 2015, 17:04:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iTCenter

Hello, i have a problem with PtokaX(0.5.2.1), PtokaX listen ports only using IPv6 protocol
netstat -anp | grep -i pto
tcp6       0      0 :::4111                 :::*                    LISTEN      2240/PtokaX
tcp6       0      0 :::1209                 :::*                    LISTEN      2240/PtokaX

and my network have not IPv6 support
cat /etc/sysctl.conf | grep ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

How to make PtokaX listen ports using IPv4 protocol?

iTCenter

#1
Quoteversion?
QuoteHello, i have a problem with PtokaX(0.5.2.1)
Quotegui or ? linux or win?
Quote
Code:
cat /etc/sysctl.conf | grep ipv6
I think Windows have no such utilities like cat, grep and file like /etc/sysctl.conf ... So... im using *nix? And there is no GUI for *nix :)
cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"


Quotelua5.?
Port bindin may depend on my LUA version? :D :D :D
lua -v
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio

PPK

#2
String settings related to this issue (file Settings.pxt):
HubAddress
IPv4Address
IPv6Address

Boolean settings related to this issue (file Settings.pxt):
ResolveToIp
BindOnlySingleIp

In case when you used in hub address ipv6 address, localhost, or when resolve is for some reason broken then you can end with ipv6 only.
When you have specified IPv6Address or set BindOnlySingleIp then you can end with ipv6 only.
So is important to know what values you have in those settings. Without that i can help you.

Btw are you sure that it is listening only on ipv6 ? Because dual-stack sockets (listening on both ipv4 and ipv6) are shown in netstat exactly same way as in that netstat result ... note that centos 7 in default have firewall set to block most incoming connection. That can be reason why you can't connect to hub.

My netstat result on linux server, where 2 hubs running on PtokaX listen on ipv4 and ipv6 in dual-stack mode.
Quote
root@vps48534:~# netstat -plnt | grep -i pto
tcp6       0      0 :::4861                 :::*                    LISTEN      561/PtokaX
tcp6       0      0 :::2002                 :::*                    LISTEN      562/PtokaX
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

SMF spam blocked by CleanTalk