Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not connect on iOS #20

Open
peetonn opened this issue Dec 6, 2021 · 1 comment
Open

Can not connect on iOS #20

peetonn opened this issue Dec 6, 2021 · 1 comment

Comments

@peetonn
Copy link

peetonn commented Dec 6, 2021

Not sure what is happening exactly, but connection is not established -- I see no incoming connections on ROS side and on iOS side I see this log output:

[2021.12.06-23.27.43:612][  0]LogIOS:  FSocketSubsystemIOS::InternalBSDSocketFactory
[2021.12.06-23.27.43:612][  0]LogSockets: Warning: Tried to connect with an address with protocol IPv4 using a socket with protocol IPv6
[2021.12.06-23.27.43:612][  0]LogROSBridge: Error: Could not connect to: 192.168.0.17:9090
[2021.12.06-23.27.43:612][  0]LogROSBridge: Warning: You first have to initialize your ROSTopic before you Subscribe to it.

Trying TCP connection (WebSocket connection crashes right away when app starts).
I thought that it might be expecting IPv6 address and modified UTCPConnection::Initialize call by specifying protocol type:

TSharedRef<FInternetAddr> InternetAddress = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr(FNetworkProtocolTypes::IPv4);

However, it didn't help. Any ideas on why connection can not be established or how can I get more info on what the problem is?

@peetonn
Copy link
Author

peetonn commented Dec 7, 2021

Fixed it by enforcing socket to be IPv4. See here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant