Akka Remoting Connection

Vishal Sinha

I have 2 applications say app1 and app2. On machine 1, both app1 and app2 runs but on machine 2 only app2 runs, as most of the work is done by app2. The apps use Akka.

Using akka remoting, I want to be able to pass message from app1 on machine 1 to app2 on machine 2. app1 and 2 are able to interact with each other when they are on same machines.

However when app 1 on machine 1 tries to connect with app2 on machine 2 it gets below error...

EndpointWriter - AssociationError [akka.tcp://[email protected]:4242] -> [akka.tcp://deal@:4241]: Error [Invalid address: akka.tcp://deal@:4241] [ akka.remote.InvalidAssociation: Invalid address: akka.tcp://deal@:4241 Caused by: akka.remote.transport.Transport$InvalidAssociationException: Connection refused: /:4241

When I run netstat -a | egrep 'Proto|LISTEN' on machine 2, I got below response tcp6 0 0 localhost:4241 [::]:* LISTEN

This indicates that the app2 is running and able to listen on 4241.

Also, the port 4241 is open on machine1 and 2.

Any suggestion will be helpful. Thanks.

yǝsʞǝla

It looks like your app is bound to localhost interface on machine 2. It should bind to a public interface instead (something like 192.168...., not 127.0.0.1/localhost) to be accessible to outside network. You can telnet into it to check:

telnet machine2hostname 4241

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

ServiceFabrice Service Remoting의 DI

분류에서Dev

.NET Remoting and Server Activated Objects

분류에서Dev

(Windows) Docker 컨테이너 내부의 프로세스가 로컬 호스트의 프로세스와 통신 할 수 있도록 Akka.Net Remoting을 구성합니다.

분류에서Dev

Suave & Fable.Remoting의 MissingMethodException

분류에서Dev

Remoting into wrong user, computerName.user

분류에서Dev

C # .NET Remoting 서버 및 Java-Client

분류에서Dev

C # .NET Remoting 서버 및 Java-Client

분류에서Dev

자격 증명이있는 Powershell Remoting

분류에서Dev

서버 복원 후 Powershell Remoting 실패

분류에서Dev

서버 복원 후 Powershell Remoting 실패

분류에서Dev

관리자가 아닌 Powershell Remoting

분류에서Dev

Spring vs EJB-앱 간 배포 (Remoting)

분류에서Dev

AMQP (Asynchronous Spring Remoting) 클라이언트

분류에서Dev

.NET Remoting 및 다중 스레딩 조회

분류에서Dev

Akka source code study

분류에서Dev

Some difficultes with akka

분류에서Dev

Akka FSM 계측

분류에서Dev

Android의 Akka

분류에서Dev

Threading model and AKKA

분류에서Dev

Akka essential for Play

분류에서Dev

Validation in AKKA.NET

분류에서Dev

BTSNTSvc64.exe.config 파일의 <system.runtime.remoting> </system.runtime.remoting>에는 무엇이 있어야합니까?

분류에서Dev

http-remoting 프로토콜이란 무엇입니까

분류에서Dev

.Net Remoting-서버 충돌에서 복구하는 방법

분류에서Dev

Apache Camel + spring remoting + jax-ws + 다중 매개 변수

분류에서Dev

내 서비스에 대한 소켓 대 .Net Remoting 대 WCF?

분류에서Dev

비 도메인 서버로의 Powershell Remoting 문제

분류에서Dev

Akka 클래식 대 Akka 입력

분류에서Dev

Simple Websocket in scala / akka / play

Related 관련 기사

뜨겁다태그

보관