Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

onurzdgn's avatar

Go another port

Hi guys I am new on laravel. I have a form and I want send/post my datas to another port (example my port: 127.0.0.1:123, I want to send/post 127.0.0.1:456). I try ajax but I can't done. Just I did write to console. How I can do this? Thanks in advance.

0 likes
10 replies
Sinnbeck's avatar

What are you trying to do here? Are you trying to get two apps talking over http? Or is it all one app ?

onurzdgn's avatar

@Sinnbeck One app but actually ı don't know what is listening me on other port. I am trying to post correct way than I post other port

Sinnbeck's avatar

@onurzdgn Can you explain a bit more? Why would it use port 456? Why does it need to be on a different post?

onurzdgn's avatar

@Sinnbeck I want to ask this. How I do with ajax and how I check is it working, to my app.

Sinnbeck's avatar

@onurzdgn Just send the ajax request to the url your app is running on. No need to use a different port

Please or to participate in this conversation.