调试时如何发送数据到gwt web应用程序的端口? [英] How to send data to port of gwt web application project when debugging?

查看:104
本文介绍了调试时如何发送数据到gwt web应用程序的端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在eclipse上调试了一个gwt web应用程序项目后,我收到了一个这个格式的URL -

  http://127.0.0.1:8888/macar.html?gwt.codesvr=127.0.0.1:9997。 

我在家用电脑上调试了它,我的IP地址不公开。


  1. 服务器地址是什么?

  2. 将是哪个端口号?

  3. 如何确定我发送的数据(gps数据)获取通过端口到服务器?

  4. 我必须有一个公共IP地址来执行上述操作?如果是,如何使我的家庭IP地址公开?


解决方案

服务器是 http://127.0.0.1 :惊人的localhost



端口是 8888



休息是一样的: gwt.codesvr 是一个参数(额外的数据) 127.0.0.1 再次令人惊叹的localhost: 9997 是端口,其中 GWT 转换为 JavaScripts (由$ code> GWT 在浏览器上插件支持)



当您从Web应用程序中的两个不同位置发送数据时,意味着服务器将应用程序部署到客户端或用户(或Versa Versus),所以您只需在Public(在线)和您的应用程序的逻辑,您可以控制服务器与您的用户之间的数据流



您的问题更多是处理服务,因此您必须提供服务客户端连接接口它到一个 RPC调用服务器,并在服务器端运行代码,现在您创建了一个客户端 - 服务器(浏览器 - 服务器)链接,您可以更多地关于 RPC 致电此处


I am new in gwt web application projects.

After debugging a gwt web application project on eclipse, I got a url in this format -

 http://127.0.0.1:8888/macar.html?gwt.codesvr=127.0.0.1:9997.

I debugged it on a home pc and my ip address is not public.

  1. What will be the server address? The url above?
  2. what is going to be the port number?
  3. How do I ascertain that the data I am sending (gps data) gets to server via port?
  4. Must I have a public ip address to do the above? if yes, how do I make my home ip address public?

解决方案

The server is http://127.0.0.1 :the amazing localhost

The port is 8888

The Rest is the same : gwt.codesvr is an parameter(extra data) 127.0.0.1 again the amazing localhost : 9997 is the port where GWT is converted to JavaScripts (Supported by GWT plugin on Browser)

When you send data from two different location in web application you mean from server that the application deployed at to a client or user(or Vice Versa) ,so all you have to do is to launch your application in Public (Online) and by logic of your Application you can control data flow between server to your users

Your Question here is more about dealing with services so you have to provide a service give an interface on client side connect it to a RPC call to server and run code on server side now you've created a Client-Server(Browser-Server) link you can more about RPC call here

这篇关于调试时如何发送数据到gwt web应用程序的端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆